From 5cedb6c7394dc42b1db410710126fb897202c79d Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Wed, 27 Aug 2025 22:41:35 -0700 Subject: [PATCH 01/20] Add VirtualBox 7.2 support Updated WSDL files and vboxServiceWrappers.php from 7.2 SDK. 2D video acceleration setting has been removed from VirtualBox, updated the code to reflect the change in the API. Tested basic functionality with PHP 8.3 (nginx + PHP-FPM). Bump PHP minimum to 8.1 --- endpoints/api.php | 4 +- endpoints/lib/config.php | 2 +- endpoints/lib/vboxServiceWrappers.php | 411 +++++- endpoints/lib/vboxconnector.php | 2 - .../{vboxweb-7.1.wsdl => vboxweb-7.2.wsdl} | 1168 ++++++++++++++++- ...rvice-7.1.wsdl => vboxwebService-7.2.wsdl} | 2 +- panes/settingsDisplay.html | 8 +- 7 files changed, 1523 insertions(+), 74 deletions(-) rename endpoints/lib/{vboxweb-7.1.wsdl => vboxweb-7.2.wsdl} (98%) rename endpoints/lib/{vboxwebService-7.1.wsdl => vboxwebService-7.2.wsdl} (91%) diff --git a/endpoints/api.php b/endpoints/api.php index da5afd01..45f9c696 100644 --- a/endpoints/api.php +++ b/endpoints/api.php @@ -57,8 +57,8 @@ } /* Check for PHP version */ - if (!version_compare(PHP_VERSION, '5.2.0', '>=')) { - throw new Exception('phpVirtualBox requires PHP >= 5.2.0, but this server is running version '. PHP_VERSION .'. Please upgrade PHP.'); + if (!version_compare(PHP_VERSION, '8.1.0', '>=')) { + throw new Exception('phpVirtualBox requires PHP >= 8.1.0, but this server is running version '. PHP_VERSION .'. Please upgrade PHP.'); } # Only valid function chars diff --git a/endpoints/lib/config.php b/endpoints/lib/config.php index 5700d150..b61dcafa 100644 --- a/endpoints/lib/config.php +++ b/endpoints/lib/config.php @@ -14,7 +14,7 @@ /* * This version of phpVirtualBox */ -define('PHPVBOX_VER', '7.1-1'); +define('PHPVBOX_VER', '7.2-1'); class phpVBoxConfigClass { diff --git a/endpoints/lib/vboxServiceWrappers.php b/endpoints/lib/vboxServiceWrappers.php index 08314e94..30a7305a 100644 --- a/endpoints/lib/vboxServiceWrappers.php +++ b/endpoints/lib/vboxServiceWrappers.php @@ -1,7 +1,7 @@ $methodName($value); else - throw new Exception("Attribute does not exist $attr"); + throw new Exception("Attribute does not exist"); } public function __get($attr) @@ -56,7 +56,7 @@ public function __get($attr) if (method_exists($this, $methodName)) return $this->$methodName(); else - throw new Exception("Attribute does not exist $attr"); + throw new Exception("Attribute does not exist"); } public function getHandle() @@ -148,7 +148,7 @@ public function offsetGet($offset): mixed /** Iterator Functions **/ public function rewind(): void { - $_ = reset($this->_objects); + reset($this->_objects); } public function current(): mixed @@ -161,10 +161,9 @@ public function key(): int|null|string return key($this->_objects); } - //#[ReturnTypeWillChange] public function next(): void { - $_ = next($this->_objects); + next($this->_objects); } public function valid(): bool @@ -251,6 +250,44 @@ abstract class VBox_EnumCollection extends VBox_Collection class VirtualBox_COM_result_codes { + const VBOX_E_OBJECT_NOT_FOUND = 0x80BB0001; + + const VBOX_E_INVALID_VM_STATE = 0x80BB0002; + + const VBOX_E_VM_ERROR = 0x80BB0003; + + const VBOX_E_FILE_ERROR = 0x80BB0004; + + const VBOX_E_IPRT_ERROR = 0x80BB0005; + + const VBOX_E_PDM_ERROR = 0x80BB0006; + + const VBOX_E_INVALID_OBJECT_STATE = 0x80BB0007; + + const VBOX_E_HOST_ERROR = 0x80BB0008; + + const VBOX_E_NOT_SUPPORTED = 0x80BB0009; + + const VBOX_E_XML_ERROR = 0x80BB000A; + + const VBOX_E_INVALID_SESSION_STATE = 0x80BB000B; + + const VBOX_E_OBJECT_IN_USE = 0x80BB000C; + + const VBOX_E_PASSWORD_INCORRECT = 0x80BB000D; + + const VBOX_E_MAXIMUM_REACHED = 0x80BB000E; + + const VBOX_E_GSTCTL_GUEST_ERROR = 0x80BB000F; + + const VBOX_E_TIMEOUT = 0x80BB0010; + + const VBOX_E_DND_ERROR = 0x80BB0011; + + const VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED = 0x80BB0012; + + const VBOX_E_RECORDING_ERROR = 0x80BB0013; + } /** @@ -566,6 +603,98 @@ public function getLocalMappings() return (array)$response->returnval; } + public function getLocalhostReachable() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getLocalhostReachable', array((array)$request)); + return (bool)$response->returnval; + } + + public function setLocalhostReachable($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->localhostReachable = $value; + } + else + { + $request->localhostReachable = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setLocalhostReachable', array((array)$request)); + } + + public function getForwardBroadcast() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getForwardBroadcast', array((array)$request)); + return (bool)$response->returnval; + } + + public function setForwardBroadcast($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->forwardBroadcast = $value; + } + else + { + $request->forwardBroadcast = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setForwardBroadcast', array((array)$request)); + } + + public function getNatMTU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getNatMTU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMTU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMTU = $value; + } + else + { + $request->natMTU = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setNatMTU', array((array)$request)); + } + + public function getNatMRU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getNatMRU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMRU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMRU = $value; + } + else + { + $request->natMRU = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setNatMRU', array((array)$request)); + } + public function getLoopbackIp6() { $request = new stdClass(); @@ -1844,6 +1973,24 @@ public function findProgressById($arg_id) return new IProgress ($this->connection, $response->returnval); } + public function getTrackedObject($arg_trObjId) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->trObjId = $arg_trObjId; + $response = $this->connection->__soapCall('IVirtualBox_getTrackedObject', array((array)$request)); + return array(new VBox_ManagedObject ($this->connection, $response->pIface), new TrackedObjectState ($this->connection, $response->state), (float)$response->creationTime, (float)$response->deletionTime); + } + + public function getTrackedObjectIds($arg_name) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->name = $arg_name; + $response = $this->connection->__soapCall('IVirtualBox_getTrackedObjectIds', array((array)$request)); + return (array)$response->returnval; + } + public function getVersion() { $request = new stdClass(); @@ -2838,6 +2985,14 @@ public function setInstallGuestAdditions($value) $this->connection->__soapCall('IUnattended_setInstallGuestAdditions', array((array)$request)); } + public function getProductKeyRequired() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IUnattended_getProductKeyRequired', array((array)$request)); + return (bool)$response->returnval; + } + public function getValidationKitIsoPath() { $request = new stdClass(); @@ -4387,6 +4542,37 @@ public function start() return new IProgress ($this->connection, $response->returnval); } + public function resume() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IRecordingSettings_resume', array((array)$request)); + return ; + } + + public function getPaused() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IRecordingSettings_getPaused', array((array)$request)); + return (bool)$response->returnval; + } + + public function setPaused($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->paused = $value; + } + else + { + $request->paused = $value->handle; + } + $this->connection->__soapCall('IRecordingSettings_setPaused', array((array)$request)); + } + public function getEnabled() { $request = new stdClass(); @@ -5036,13 +5222,24 @@ class IPlatformX86Collection extends VBox_ManagedObjectCollection class IPlatformARM extends VBox_ManagedObject { - public function getMidlDoesNotLikeEmptyInterfaces() + public function getCPUProperty($arg_property) { $request = new stdClass(); $request->_this = $this->handle; - $response = $this->connection->__soapCall('IPlatformARM_getMidlDoesNotLikeEmptyInterfaces', array((array)$request)); + $request->property = $arg_property; + $response = $this->connection->__soapCall('IPlatformARM_getCPUProperty', array((array)$request)); return (bool)$response->returnval; } + + public function setCPUProperty($arg_property, $arg_value) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->property = $arg_property; + $request->value = $arg_value; + $response = $this->connection->__soapCall('IPlatformARM_setCPUProperty', array((array)$request)); + return ; + } } /** @@ -16593,6 +16790,121 @@ public function setLocalhostReachable($value) } $this->connection->__soapCall('INATEngine_setLocalhostReachable', array((array)$request)); } + + public function getForwardBroadcast() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getForwardBroadcast', array((array)$request)); + return (bool)$response->returnval; + } + + public function setForwardBroadcast($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->forwardBroadcast = $value; + } + else + { + $request->forwardBroadcast = $value->handle; + } + $this->connection->__soapCall('INATEngine_setForwardBroadcast', array((array)$request)); + } + + public function getEnableTFTP() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getEnableTFTP', array((array)$request)); + return (bool)$response->returnval; + } + + public function setEnableTFTP($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->enableTFTP = $value; + } + else + { + $request->enableTFTP = $value->handle; + } + $this->connection->__soapCall('INATEngine_setEnableTFTP', array((array)$request)); + } + + public function getNatMRU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getNatMRU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMRU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMRU = $value; + } + else + { + $request->natMRU = $value->handle; + } + $this->connection->__soapCall('INATEngine_setNatMRU', array((array)$request)); + } + + public function getIPv6Enabled() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getIPv6Enabled', array((array)$request)); + return (bool)$response->returnval; + } + + public function setIPv6Enabled($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->IPv6Enabled = $value; + } + else + { + $request->IPv6Enabled = $value->handle; + } + $this->connection->__soapCall('INATEngine_setIPv6Enabled', array((array)$request)); + } + + public function getIPv6Prefix() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getIPv6Prefix', array((array)$request)); + return (string)$response->returnval; + } + + public function setIPv6Prefix($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->IPv6Prefix = $value; + } + else + { + $request->IPv6Prefix = $value->handle; + } + $this->connection->__soapCall('INATEngine_setIPv6Prefix', array((array)$request)); + } } /** @@ -18724,12 +19036,12 @@ class IVRDEServerInfoChangedEventCollection extends VBox_ManagedObjectCollection class IRecordingStateChangedEvent extends IEvent { - public function getEnabled() + public function getState() { $request = new stdClass(); $request->_this = $this->handle; - $response = $this->connection->__soapCall('IRecordingStateChangedEvent_getEnabled', array((array)$request)); - return (bool)$response->returnval; + $response = $this->connection->__soapCall('IRecordingStateChangedEvent_getState', array((array)$request)); + return new RecordingState ($this->connection, $response->returnval); } public function getError() @@ -21921,7 +22233,6 @@ class IGuestOSType extends VBox_Struct protected $recommendedRAM; protected $recommendedGraphicsController; protected $recommendedVRAM; - protected $recommended2DVideoAcceleration; protected $recommended3DAcceleration; protected $recommendedHDD; protected $adapterType; @@ -21965,7 +22276,6 @@ public function __construct($connection, $values) $this->recommendedRAM = $values->recommendedRAM; $this->recommendedGraphicsController = $values->recommendedGraphicsController; $this->recommendedVRAM = $values->recommendedVRAM; - $this->recommended2DVideoAcceleration = $values->recommended2DVideoAcceleration; $this->recommended3DAcceleration = $values->recommended3DAcceleration; $this->recommendedHDD = $values->recommendedHDD; $this->adapterType = $values->adapterType; @@ -22043,10 +22353,6 @@ public function getRecommendedVRAM() { return (float)$this->recommendedVRAM; } - public function getRecommended2DVideoAcceleration() - { - return (bool)$this->recommended2DVideoAcceleration; - } public function getRecommended3DAcceleration() { return (bool)$this->recommended3DAcceleration; @@ -22320,8 +22626,8 @@ class IMediumAttachmentCollection extends VBox_StructCollection */ class SettingsVersion extends VBox_Enum { - public $NameMap = array(0 => 'Null', 1 => 'v1_0', 2 => 'v1_1', 3 => 'v1_2', 4 => 'v1_3pre', 5 => 'v1_3', 6 => 'v1_4', 7 => 'v1_5', 8 => 'v1_6', 9 => 'v1_7', 10 => 'v1_8', 11 => 'v1_9', 12 => 'v1_10', 13 => 'v1_11', 14 => 'v1_12', 15 => 'v1_13', 16 => 'v1_14', 17 => 'v1_15', 18 => 'v1_16', 19 => 'v1_17', 20 => 'v1_18', 21 => 'v1_19', 22 => 'v1_20', 99999 => 'Future'); - public $ValueMap = array('Null' => 0, 'v1_0' => 1, 'v1_1' => 2, 'v1_2' => 3, 'v1_3pre' => 4, 'v1_3' => 5, 'v1_4' => 6, 'v1_5' => 7, 'v1_6' => 8, 'v1_7' => 9, 'v1_8' => 10, 'v1_9' => 11, 'v1_10' => 12, 'v1_11' => 13, 'v1_12' => 14, 'v1_13' => 15, 'v1_14' => 16, 'v1_15' => 17, 'v1_16' => 18, 'v1_17' => 19, 'v1_18' => 20, 'v1_19' => 21, 'v1_20' => 22, 'Future' => 99999); + public $NameMap = array(0 => 'Null', 1 => 'v1_0', 2 => 'v1_1', 3 => 'v1_2', 4 => 'v1_3pre', 5 => 'v1_3', 6 => 'v1_4', 7 => 'v1_5', 8 => 'v1_6', 9 => 'v1_7', 10 => 'v1_8', 11 => 'v1_9', 12 => 'v1_10', 13 => 'v1_11', 14 => 'v1_12', 15 => 'v1_13', 16 => 'v1_14', 17 => 'v1_15', 18 => 'v1_16', 19 => 'v1_17', 20 => 'v1_18', 21 => 'v1_19', 22 => 'v1_20', 23 => 'v1_21', 99999 => 'Future'); + public $ValueMap = array('Null' => 0, 'v1_0' => 1, 'v1_1' => 2, 'v1_2' => 3, 'v1_3pre' => 4, 'v1_3' => 5, 'v1_4' => 6, 'v1_5' => 7, 'v1_6' => 8, 'v1_7' => 9, 'v1_8' => 10, 'v1_9' => 11, 'v1_10' => 12, 'v1_11' => 13, 'v1_12' => 14, 'v1_13' => 15, 'v1_14' => 16, 'v1_15' => 17, 'v1_16' => 18, 'v1_17' => 19, 'v1_18' => 20, 'v1_19' => 21, 'v1_20' => 22, 'v1_21' => 23, 'Future' => 99999); } /** @@ -22434,6 +22740,23 @@ class CPUPropertyTypeX86Collection extends VBox_EnumCollection protected $_interfaceName = "CPUPropertyTypeX86"; } +/** + * Generated VBoxWebService ENUM + */ +class CPUPropertyTypeARM extends VBox_Enum +{ + public $NameMap = array(0 => 'Null', 1 => 'HWVirt', 2 => 'GICITS'); + public $ValueMap = array('Null' => 0, 'HWVirt' => 1, 'GICITS' => 2); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class CPUPropertyTypeARMCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "CPUPropertyTypeARM"; +} + /** * Generated VBoxWebService ENUM */ @@ -22740,6 +23063,23 @@ class PartitionTypeCollection extends VBox_EnumCollection protected $_interfaceName = "PartitionType"; } +/** + * Generated VBoxWebService ENUM + */ +class TrackedObjectState extends VBox_Enum +{ + public $NameMap = array(0 => 'None', 1 => 'Alive', 2 => 'Deleted', 3 => 'Invalid'); + public $ValueMap = array('None' => 0, 'Alive' => 1, 'Deleted' => 2, 'Invalid' => 3); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class TrackedObjectStateCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "TrackedObjectState"; +} + /** * Generated VBoxWebService ENUM */ @@ -22881,8 +23221,8 @@ class CertificateVersionCollection extends VBox_EnumCollection */ class VirtualSystemDescriptionType extends VBox_Enum { - public $NameMap = array(1 => 'Ignore', 2 => 'OS', 3 => 'Name', 4 => 'Product', 5 => 'Vendor', 6 => 'Version', 7 => 'ProductUrl', 8 => 'VendorUrl', 9 => 'Description', 10 => 'License', 11 => 'Miscellaneous', 12 => 'CPU', 13 => 'Memory', 14 => 'HardDiskControllerIDE', 15 => 'HardDiskControllerSATA', 16 => 'HardDiskControllerSCSI', 17 => 'HardDiskControllerSAS', 18 => 'HardDiskImage', 19 => 'Floppy', 20 => 'CDROM', 21 => 'NetworkAdapter', 22 => 'USBController', 23 => 'SoundCard', 24 => 'SettingsFile', 25 => 'BaseFolder', 26 => 'PrimaryGroup', 27 => 'CloudInstanceShape', 28 => 'CloudDomain', 29 => 'CloudBootDiskSize', 30 => 'CloudBucket', 31 => 'CloudOCIVCN', 32 => 'CloudPublicIP', 33 => 'CloudProfileName', 34 => 'CloudOCISubnet', 35 => 'CloudKeepObject', 36 => 'CloudLaunchInstance', 37 => 'CloudInstanceId', 38 => 'CloudImageId', 39 => 'CloudInstanceState', 40 => 'CloudImageState', 41 => 'CloudInstanceDisplayName', 42 => 'CloudImageDisplayName', 43 => 'CloudOCILaunchMode', 44 => 'CloudPrivateIP', 45 => 'CloudBootVolumeId', 46 => 'CloudOCIVCNCompartment', 47 => 'CloudOCISubnetCompartment', 48 => 'CloudPublicSSHKey', 49 => 'BootingFirmware', 50 => 'CloudInitScriptPath', 51 => 'CloudCompartmentId', 52 => 'CloudShapeCpus', 53 => 'CloudShapeMemory', 54 => 'CloudInstanceMetadata', 55 => 'CloudInstanceFreeFormTags', 56 => 'CloudImageFreeFormTags', 60 => 'HardDiskControllerVirtioSCSI', 61 => 'HardDiskControllerNVMe'); - public $ValueMap = array('Ignore' => 1, 'OS' => 2, 'Name' => 3, 'Product' => 4, 'Vendor' => 5, 'Version' => 6, 'ProductUrl' => 7, 'VendorUrl' => 8, 'Description' => 9, 'License' => 10, 'Miscellaneous' => 11, 'CPU' => 12, 'Memory' => 13, 'HardDiskControllerIDE' => 14, 'HardDiskControllerSATA' => 15, 'HardDiskControllerSCSI' => 16, 'HardDiskControllerSAS' => 17, 'HardDiskImage' => 18, 'Floppy' => 19, 'CDROM' => 20, 'NetworkAdapter' => 21, 'USBController' => 22, 'SoundCard' => 23, 'SettingsFile' => 24, 'BaseFolder' => 25, 'PrimaryGroup' => 26, 'CloudInstanceShape' => 27, 'CloudDomain' => 28, 'CloudBootDiskSize' => 29, 'CloudBucket' => 30, 'CloudOCIVCN' => 31, 'CloudPublicIP' => 32, 'CloudProfileName' => 33, 'CloudOCISubnet' => 34, 'CloudKeepObject' => 35, 'CloudLaunchInstance' => 36, 'CloudInstanceId' => 37, 'CloudImageId' => 38, 'CloudInstanceState' => 39, 'CloudImageState' => 40, 'CloudInstanceDisplayName' => 41, 'CloudImageDisplayName' => 42, 'CloudOCILaunchMode' => 43, 'CloudPrivateIP' => 44, 'CloudBootVolumeId' => 45, 'CloudOCIVCNCompartment' => 46, 'CloudOCISubnetCompartment' => 47, 'CloudPublicSSHKey' => 48, 'BootingFirmware' => 49, 'CloudInitScriptPath' => 50, 'CloudCompartmentId' => 51, 'CloudShapeCpus' => 52, 'CloudShapeMemory' => 53, 'CloudInstanceMetadata' => 54, 'CloudInstanceFreeFormTags' => 55, 'CloudImageFreeFormTags' => 56, 'HardDiskControllerVirtioSCSI' => 60, 'HardDiskControllerNVMe' => 61); + public $NameMap = array(1 => 'Ignore', 2 => 'OS', 3 => 'Name', 4 => 'Product', 5 => 'Vendor', 6 => 'Version', 7 => 'ProductUrl', 8 => 'VendorUrl', 9 => 'Description', 10 => 'License', 11 => 'Miscellaneous', 12 => 'CPU', 13 => 'Memory', 14 => 'HardDiskControllerIDE', 15 => 'HardDiskControllerSATA', 16 => 'HardDiskControllerSCSI', 17 => 'HardDiskControllerSAS', 18 => 'HardDiskImage', 19 => 'Floppy', 20 => 'CDROM', 21 => 'NetworkAdapter', 22 => 'USBController', 23 => 'SoundCard', 24 => 'SettingsFile', 25 => 'BaseFolder', 26 => 'PrimaryGroup', 27 => 'CloudInstanceShape', 28 => 'CloudDomain', 29 => 'CloudBootDiskSize', 30 => 'CloudBucket', 31 => 'CloudOCIVCN', 32 => 'CloudPublicIP', 33 => 'CloudProfileName', 34 => 'CloudOCISubnet', 35 => 'CloudKeepObject', 36 => 'CloudLaunchInstance', 37 => 'CloudInstanceId', 38 => 'CloudImageId', 39 => 'CloudInstanceState', 40 => 'CloudImageState', 41 => 'CloudInstanceDisplayName', 42 => 'CloudImageDisplayName', 43 => 'CloudOCILaunchMode', 44 => 'CloudPrivateIP', 45 => 'CloudBootVolumeId', 46 => 'CloudOCIVCNCompartment', 47 => 'CloudOCISubnetCompartment', 48 => 'CloudPublicSSHKey', 49 => 'BootingFirmware', 50 => 'CloudInitScriptPath', 51 => 'CloudCompartmentId', 52 => 'CloudShapeCpus', 53 => 'CloudShapeMemory', 54 => 'CloudInstanceMetadata', 55 => 'CloudInstanceFreeFormTags', 56 => 'CloudImageFreeFormTags', 60 => 'HardDiskControllerVirtioSCSI', 61 => 'HardDiskControllerNVMe', 0x8000 => 'NVRAM'); + public $ValueMap = array('Ignore' => 1, 'OS' => 2, 'Name' => 3, 'Product' => 4, 'Vendor' => 5, 'Version' => 6, 'ProductUrl' => 7, 'VendorUrl' => 8, 'Description' => 9, 'License' => 10, 'Miscellaneous' => 11, 'CPU' => 12, 'Memory' => 13, 'HardDiskControllerIDE' => 14, 'HardDiskControllerSATA' => 15, 'HardDiskControllerSCSI' => 16, 'HardDiskControllerSAS' => 17, 'HardDiskImage' => 18, 'Floppy' => 19, 'CDROM' => 20, 'NetworkAdapter' => 21, 'USBController' => 22, 'SoundCard' => 23, 'SettingsFile' => 24, 'BaseFolder' => 25, 'PrimaryGroup' => 26, 'CloudInstanceShape' => 27, 'CloudDomain' => 28, 'CloudBootDiskSize' => 29, 'CloudBucket' => 30, 'CloudOCIVCN' => 31, 'CloudPublicIP' => 32, 'CloudProfileName' => 33, 'CloudOCISubnet' => 34, 'CloudKeepObject' => 35, 'CloudLaunchInstance' => 36, 'CloudInstanceId' => 37, 'CloudImageId' => 38, 'CloudInstanceState' => 39, 'CloudImageState' => 40, 'CloudInstanceDisplayName' => 41, 'CloudImageDisplayName' => 42, 'CloudOCILaunchMode' => 43, 'CloudPrivateIP' => 44, 'CloudBootVolumeId' => 45, 'CloudOCIVCNCompartment' => 46, 'CloudOCISubnetCompartment' => 47, 'CloudPublicSSHKey' => 48, 'BootingFirmware' => 49, 'CloudInitScriptPath' => 50, 'CloudCompartmentId' => 51, 'CloudShapeCpus' => 52, 'CloudShapeMemory' => 53, 'CloudInstanceMetadata' => 54, 'CloudInstanceFreeFormTags' => 55, 'CloudImageFreeFormTags' => 56, 'HardDiskControllerVirtioSCSI' => 60, 'HardDiskControllerNVMe' => 61, 'NVRAM' => 0x8000); } /** @@ -23046,6 +23386,23 @@ class RecordingRateControlModeCollection extends VBox_EnumCollection protected $_interfaceName = "RecordingRateControlMode"; } +/** + * Generated VBoxWebService ENUM + */ +class RecordingState extends VBox_Enum +{ + public $NameMap = array(0 => 'Unknown', 1 => 'Initializing', 2 => 'Started', 3 => 'Paused', 4 => 'Resumed', 5 => 'Finalizing', 6 => 'Stopped', 7 => 'Canceled', 8 => 'LimitReached', 9 => 'Error'); + public $ValueMap = array('Unknown' => 0, 'Initializing' => 1, 'Started' => 2, 'Paused' => 3, 'Resumed' => 4, 'Finalizing' => 5, 'Stopped' => 6, 'Canceled' => 7, 'LimitReached' => 8, 'Error' => 9); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class RecordingStateCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "RecordingState"; +} + /** * Generated VBoxWebService ENUM */ @@ -23102,8 +23459,8 @@ class GraphicsControllerTypeCollection extends VBox_EnumCollection */ class GraphicsFeature extends VBox_Enum { - public $NameMap = array(0 => 'None', 1 => 'Acceleration2DVideo', 2 => 'Acceleration3D'); - public $ValueMap = array('None' => 0, 'Acceleration2DVideo' => 1, 'Acceleration3D' => 2); + public $NameMap = array(0 => 'None', 2 => 'Acceleration3D'); + public $ValueMap = array('None' => 0, 'Acceleration3D' => 2); } /** @@ -23272,8 +23629,8 @@ class HostNetworkInterfaceStatusCollection extends VBox_EnumCollection */ class HostNetworkInterfaceType extends VBox_Enum { - public $NameMap = array(1 => 'Bridged', 2 => 'HostOnly'); - public $ValueMap = array('Bridged' => 1, 'HostOnly' => 2); + public $NameMap = array(0 => 'Invalid', 1 => 'Bridged', 2 => 'HostOnly'); + public $ValueMap = array('Invalid' => 0, 'Bridged' => 1, 'HostOnly' => 2); } /** @@ -24224,8 +24581,8 @@ class NetworkAttachmentTypeCollection extends VBox_EnumCollection */ class NetworkAdapterType extends VBox_Enum { - public $NameMap = array(0 => 'Null', 1 => 'Am79C970A', 2 => 'Am79C973', 3 => 'I82540EM', 4 => 'I82543GC', 5 => 'I82545EM', 6 => 'Virtio', 7 => 'Am79C960', 8 => 'NE2000', 9 => 'NE1000', 10 => 'WD8013', 11 => 'WD8003', 12 => 'ELNK2', 13 => 'ELNK1'); - public $ValueMap = array('Null' => 0, 'Am79C970A' => 1, 'Am79C973' => 2, 'I82540EM' => 3, 'I82543GC' => 4, 'I82545EM' => 5, 'Virtio' => 6, 'Am79C960' => 7, 'NE2000' => 8, 'NE1000' => 9, 'WD8013' => 10, 'WD8003' => 11, 'ELNK2' => 12, 'ELNK1' => 13); + public $NameMap = array(0 => 'Null', 1 => 'Am79C970A', 2 => 'Am79C973', 3 => 'I82540EM', 4 => 'I82543GC', 5 => 'I82545EM', 6 => 'Virtio', 7 => 'Am79C960', 8 => 'NE2000', 9 => 'NE1000', 10 => 'WD8013', 11 => 'WD8003', 12 => 'ELNK2', 13 => 'ELNK1', 14 => 'UsbNet'); + public $ValueMap = array('Null' => 0, 'Am79C970A' => 1, 'Am79C973' => 2, 'I82540EM' => 3, 'I82543GC' => 4, 'I82545EM' => 5, 'Virtio' => 6, 'Am79C960' => 7, 'NE2000' => 8, 'NE1000' => 9, 'WD8013' => 10, 'WD8003' => 11, 'ELNK2' => 12, 'ELNK1' => 13, 'UsbNet' => 14); } /** diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 3b12ef8e..5d46700b 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -1961,7 +1961,6 @@ public function remote_machineSave($args) { $m->GraphicsAdapter->graphicsControllerType = $args['graphicsControllerType']; // Video - $m->GraphicsAdapter->setFeature("Acceleration2DVideo", $args['accelerate2DVideoEnabled']); $m->GraphicsAdapter->setFeature("Acceleration3D", $args['accelerate3DEnabled']); // VRDE settings @@ -4278,7 +4277,6 @@ private function _machineGetDetails(&$m) { 'graphicsControllerType' => (string)$m->GraphicsAdapter->graphicsControllerType, 'pointingHIDType' => (string)$m->pointingHIDType, 'keyboardHIDType' => (string)$m->keyboardHIDType, - 'accelerate2DVideoEnabled' => $m->GraphicsAdapter->isFeatureEnabled("Acceleration2DVideo"), 'accelerate3DEnabled' => $m->GraphicsAdapter->isFeatureEnabled("Acceleration3D"), 'BIOSSettings' => array( 'ACPIEnabled' => $m->FirmwareSettings->ACPIEnabled, diff --git a/endpoints/lib/vboxweb-7.1.wsdl b/endpoints/lib/vboxweb-7.2.wsdl similarity index 98% rename from endpoints/lib/vboxweb-7.1.wsdl rename to endpoints/lib/vboxweb-7.2.wsdl index 71502fcb..3bacb649 100644 --- a/endpoints/lib/vboxweb-7.1.wsdl +++ b/endpoints/lib/vboxweb-7.2.wsdl @@ -43,6 +43,7 @@ v1_18: 20 - v1_19: 21 - v1_20: 22 - + v1_21: 23 - Future: 99999 - --> @@ -70,6 +71,7 @@ + @@ -225,6 +227,18 @@ + + + + + + + + + + + + + + + + @@ -1163,6 +1192,7 @@ + + + + + + + + + + + + + + + - @@ -1496,11 +1550,13 @@ + @@ -2458,6 +2514,7 @@ WD8003: 11 - ELNK2: 12 - ELNK1: 13 - + UsbNet: 14 - --> @@ -2475,6 +2532,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5852,6 +6021,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6929,6 +7133,21 @@ + + + + + + + + + + + + + + + @@ -8833,6 +9052,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8922,6 +9169,19 @@ + + + + + + + + + + + + + @@ -9680,21 +9940,37 @@ - - + + + - + + + + + + + + + + + + + + + + @@ -21884,8 +22160,6 @@ - - @@ -26203,6 +26477,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -28342,18 +28756,18 @@ - - + + - + - + @@ -32231,6 +32645,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33276,6 +33742,20 @@ + + + + + + + + + + + + + + + + + + + + @@ -34705,6 +35192,19 @@ messages for interface IRecordingSettings ************************************* --> + + + + + + + + + + + + + @@ -34746,6 +35246,13 @@ + + + + + + + - - - + + + + + + - - + + + + + + - @@ -42985,6 +43497,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -44311,12 +44888,12 @@ messages for interface IRecordingStateChangedEvent ************************************* --> - - - + + + - - + + @@ -46440,6 +47017,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -47362,6 +47987,18 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -48689,6 +49344,12 @@ + + + + + + - - - + + + + + + + + + @@ -54066,7 +54733,6 @@ - @@ -55953,6 +56619,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -57146,9 +57872,9 @@ operations in portType for interface IRecordingStateChangedEvent ************************************* --> - - - + + + @@ -59258,6 +59984,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -61494,6 +62340,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -64729,6 +65650,21 @@ + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -77720,7 +78671,6 @@ - @@ -82253,6 +83203,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -84688,7 +85788,7 @@ operations in portType for interface IRecordingStateChangedEvent ************************************* --> - + diff --git a/endpoints/lib/vboxwebService-7.1.wsdl b/endpoints/lib/vboxwebService-7.2.wsdl similarity index 91% rename from endpoints/lib/vboxwebService-7.1.wsdl rename to endpoints/lib/vboxwebService-7.2.wsdl index 0fb308f3..c4543c0e 100644 --- a/endpoints/lib/vboxwebService-7.1.wsdl +++ b/endpoints/lib/vboxwebService-7.2.wsdl @@ -5,7 +5,7 @@ Generator: src/VBox/Main/webservice/websrv-wsdl-service.xsl --> - + diff --git a/panes/settingsDisplay.html b/panes/settingsDisplay.html index f3f27d70..5a7a7a79 100644 --- a/panes/settingsDisplay.html +++ b/panes/settingsDisplay.html @@ -51,10 +51,6 @@ Extended Features: - - - - @@ -120,8 +116,7 @@ $(document.forms['frmVboxSettings'].vboxSettingsGraphicsController).val($('#vboxSettingsDialog').data('vboxMachineData').graphicsControllerType); document.forms['frmVboxSettings'].vboxSettingsDisplay3d.checked = ($('#vboxSettingsDialog').data('vboxMachineData').accelerate3DEnabled); - document.forms['frmVboxSettings'].vboxSettingsDisplay2d.checked = ($('#vboxSettingsDialog').data('vboxMachineData').accelerate2DVideoEnabled); - + var p = $('#vboxSettingsTabDisplayVideo').parent().children('div'); if(!$('#vboxSettingsDialog').data('vboxFullEdit')) { $(p).find('tr:not(.vboxRunningEnabled)').find('span').addClass('disabled'); @@ -192,7 +187,6 @@ $('#vboxSettingsDialog').data('vboxMachineData').graphicsControllerType = $(document.forms['frmVboxSettings'].vboxSettingsGraphicsController).val(); $('#vboxSettingsDialog').data('vboxMachineData').accelerate3DEnabled = document.forms['frmVboxSettings'].vboxSettingsDisplay3d.checked; - $('#vboxSettingsDialog').data('vboxMachineData').accelerate2DVideoEnabled = document.forms['frmVboxSettings'].vboxSettingsDisplay2d.checked; if($('#vboxSettingsDialog').data('vboxMachineData').VRDEServer && $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.VRDEExtPack) { $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.ports = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEPort.value; From 2d806b480c28c4343ceda12ac0f8614713eddaec Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Wed, 3 Sep 2025 12:06:24 -0700 Subject: [PATCH 02/20] Fix missing NVRAM file when creating new VM with EFI When a new VM with EFI set by default was created, NVRAM file was not initialized. As the result, settings became inaccessible, the following error message was displayed: "The UEFI NVRAM file is not existing for this machine". Fixed #364. --- endpoints/lib/vboxconnector.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 5d46700b..5841c6d6 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -3859,6 +3859,9 @@ public function remote_machineCreate($args) { // Save and register $m->saveSettings(); + if((string)$m->FirmwareSettings->firmwareType == 'EFI') { + $m->nonVolatileStore->initUefiVariableStore(0); + } $this->vbox->registerMachine($m->handle); $vm = $m->id; $m->releaseRemote(); From ab759b995472b98bda9e49050dff65c11e0a62b7 Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Wed, 3 Sep 2025 21:41:31 -0700 Subject: [PATCH 03/20] Disable Page Fusion feature, does not work in VirtualBox 7.2 Attempting to save a VM with Page Fusion on or off results in error in VirtualBox 7.2. "Page fusion is only supported on 64-bit hosts". Tested on 64-bit Linux 6.12 and Windows 11. Disable the feature for now, hopefully this prevents the error from getting triggered when saving old VMs. I had no way to test this, but at least disabling this won't trigger the issue in new VMs. Issue #363 --- endpoints/lib/vboxconnector.php | 8 +++++--- panes/settingsSystem.html | 11 ++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 5841c6d6..8ca38ed3 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -1937,12 +1937,13 @@ public function remote_machineSave($args) { * Enables the page sharing code. * @remarks This must match GMMR0Init; currently we only support page fusion on * all 64-bit hosts except Mac OS X */ - + /* Page Fusion does not work properly in VirtualBox 7.2 + * returns "Page fusion is only supported on 64-bit hosts" if($this->vbox->host->getProcessorFeature('LongMode')) { $m->pageFusionEnabled = $args['pageFusionEnabled']; } - + */ $m->Platform->X86->HPETEnabled = $args['HPETEnabled']; $m->setExtraData("VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled", $args['disableHostTimeSync']); $m->keyboardHIDType = $args['keyboardHIDType']; @@ -4294,7 +4295,8 @@ private function _machineGetDetails(&$m) { 'snapshotFolder' => $m->snapshotFolder, 'ClipboardMode' => (string)$m->ClipboardMode, 'monitorCount' => $m->GraphicsAdapter->monitorCount, - 'pageFusionEnabled' => $m->pageFusionEnabled, + // Page Fusion does not work properly in 7.2 + //'pageFusionEnabled' => $m->pageFusionEnabled, 'VRDEServer' => (!$m->VRDEServer ? null : array( 'enabled' => $m->VRDEServer->enabled, 'ports' => $m->VRDEServer->getVRDEProperty('TCP/Ports'), diff --git a/panes/settingsSystem.html b/panes/settingsSystem.html index 00f29d64..cee1d86e 100644 --- a/panes/settingsSystem.html +++ b/panes/settingsSystem.html @@ -40,10 +40,12 @@ + Boot Order: @@ -288,10 +290,11 @@ * Enables the page sharing code. * @remarks This must match GMMR0Init; currently we only support page fusion on * all 64-bit hosts except Mac OS X */ +/* Page Fusion does not work properly in VirtualBox 7.2 if(!$('#vboxSettingsDialog').data('vboxHostDetails').cpuFeatures['Long Mode (64-bit)'] || $('#vboxSettingsDialog').data('vboxHostDetails').operatingSystem.toLowerCase().search("darwin") >-1) { $(document.forms['frmVboxSettings'].vboxSettingsSystemPageFusion).prop({'checked':false,'disabled':true}).siblings().addClass('disabled'); } - +*/ /* * @@ -365,7 +368,8 @@ document.forms['frmVboxSettings'].settingsSystemLargePages.checked = ($('#vboxSettingsDialog').data('vboxMachineData').HWVirtExProperties.LargePages); document.forms['frmVboxSettings'].settingsSystemUnrestrictedExecution.checked = ($('#vboxSettingsDialog').data('vboxMachineData').HWVirtExProperties.UnrestrictedExecution); document.forms['frmVboxSettings'].settingsSystemVPID.checked = ($('#vboxSettingsDialog').data('vboxMachineData').HWVirtExProperties.VPID); - document.forms['frmVboxSettings'].vboxSettingsSystemPageFusion.checked = ($('#vboxSettingsDialog').data('vboxMachineData').pageFusionEnabled); + // Page Fusion does not work properly in VirtualBox 7.2 + //document.forms['frmVboxSettings'].vboxSettingsSystemPageFusion.checked = ($('#vboxSettingsDialog').data('vboxMachineData').pageFusionEnabled); $('#vboxSettingsTabSystemMotherboard').find('tr.vboxSettingsSystemAdvancedOnly').css('display',''); $('#vboxSettingsTabSystemAcceleration').find('tr.vboxSettingsSystemAdvancedOnly').css('display',''); @@ -503,7 +507,8 @@ /* Only if advanced config is enabled */ if($('#vboxPane').data('vboxConfig').enableAdvancedConfig) { - $('#vboxSettingsDialog').data('vboxMachineData').pageFusionEnabled = document.forms['frmVboxSettings'].vboxSettingsSystemPageFusion.checked; + // Page Fusion does not work properly in VirtualBox 7.2 + //$('#vboxSettingsDialog').data('vboxMachineData').pageFusionEnabled = document.forms['frmVboxSettings'].vboxSettingsSystemPageFusion.checked; $('#vboxSettingsDialog').data('vboxMachineData').HPETEnabled = document.forms['frmVboxSettings'].vboxSettingsSystemHPET.checked; $('#vboxSettingsDialog').data('vboxMachineData').disableHostTimeSync = document.forms['frmVboxSettings'].vboxSettingsSystemDisableHostTimeSync.checked; $('#vboxSettingsDialog').data('vboxMachineData').HWVirtExProperties.LargePages = document.forms['frmVboxSettings'].settingsSystemLargePages.checked; From 41d14053c230a9546a0a6f45a3ff1c48bf1154eb Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Sat, 18 Oct 2025 17:57:40 -0700 Subject: [PATCH 04/20] Fix missing NVRAM file when manually checking Enable EFI in System settings NVRAM file is not created for new VMs where EFI is not set by defalut (I guess pretty much anything except Windows 11 and macOS). When manually checking "Enable EFI" in System settings later, the file was not created, and the VM settings became unavailable. I was trying to make the secure boot flag working, but due to the issue with vboxwebsrv always reporting it as enabled, and inability to tell whether it's disabled, I had to turn this off, and carelessly also commented the code creating the NVRAM file. This part is now restored. Fixes #369 --- endpoints/lib/vboxconnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 8ca38ed3..56d81cbf 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -1875,8 +1875,8 @@ public function remote_machineSave($args) { $m->Platform->X86->setCPUProperty('LongMode', ($guestOS->is64Bit ? 1 : 0)); } - /* secureBootEnabled reported incorrectly by vboxwebsrv $oldFirmware = (string)$m->FirmwareSettings->firmwareType; + /* secureBootEnabled reported incorrectly by vboxwebsrv $oldSecureBoot = ($oldFirmware != 'BIOS' && $m->nonVolatileStore->uefiVariableStore != null ? $m->nonVolatileStore->uefiVariableStore->secureBootEnabled : false); */ @@ -1891,12 +1891,12 @@ public function remote_machineSave($args) { $m->Platform->X86->setCPUProperty('LongMode', (strpos($args['OSTypeId'],'_64') > - 1 ? 1 : 0)); $m->trustedPlatformModule->type = $args['trustedPlatformModule']['type']; - /* secureBootEnabled reported incorrectly by vboxwebsrv if($oldFirmware == 'BIOS' && $args['firmwareType'] == 'EFI') { $m->nonVolatileStore->initUefiVariableStore(0); $m->nonVolatileStore->uefiVariableStore->enrollOraclePlatformKey(); $m->nonVolatileStore->uefiVariableStore->enrollDefaultMsSignatures(); } + /* secureBootEnabled reported incorrectly by vboxwebsrv if($args['firmwareType'] != 'BIOS' && $oldSecureBoot != (bool)$args['secureBootEnabled']) { $m->nonVolatileStore->uefiVariableStore->secureBootEnabled = (bool)$args['secureBootEnabled']; } From 2bff743205856ee0a575bc13a3e4d852c7b64179 Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Sun, 19 Oct 2025 21:54:00 -0700 Subject: [PATCH 05/20] Add VRDP Security Method selection to the Remote Display settings When Oracle Extension Pack is installed, VRDP server can be configured to use encryption. This setting was previously missing. When Negotiate (default) or TLS is selected, a private key and a certificate should be auto-generated by VirtualBox in the VM directory. This change does not affect open source distributions using VNC. Taken from https://github.com/thedisbo1125/vboxwebmgr Issue #366 --- endpoints/lib/vboxconnector.php | 4 ++++ panes/settingsDisplay.html | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 56d81cbf..6fa52cb5 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -500,6 +500,7 @@ public function remote_getEvents($args) { 'enabled' => $vrde->enabled, 'ports' => $vrde->getVRDEProperty('TCP/Ports'), 'netAddress' => $vrde->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $vrde->getVRDEProperty('Security/Method'), 'VNCPassword' => $vrde->getVRDEProperty('VNCPassword'), 'authType' => (string)$vrde->authType, 'authTimeout' => $vrde->authTimeout @@ -1971,6 +1972,7 @@ public function remote_machineSave($args) { $m->VRDEServer->setVRDEProperty('TCP/Ports',$args['VRDEServer']['ports']); if(@$this->settings->enableAdvancedConfig) $m->VRDEServer->setVRDEProperty('TCP/Address',$args['VRDEServer']['netAddress']); + $m->VRDEServer->setVRDEProperty('Security/Method',$args['VRDEServer']['SecurityMethod']); $m->VRDEServer->setVRDEProperty('VNCPassword',$args['VRDEServer']['VNCPassword'] ? $args['VRDEServer']['VNCPassword'] : null); $m->VRDEServer->authType = ($args['VRDEServer']['authType'] ? $args['VRDEServer']['authType'] : 'Null'); $m->VRDEServer->authTimeout = $args['VRDEServer']['authTimeout']; @@ -3714,6 +3716,7 @@ public function remote_machineGetRuntimeData($args) { 'enabled' => $vrde->enabled, 'ports' => $vrde->getVRDEProperty('TCP/Ports'), 'netAddress' => $vrde->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $vrde->getVRDEProperty('Security/Method'), 'VNCPassword' => $vrde->getVRDEProperty('VNCPassword'), 'authType' => (string)$vrde->authType, 'authTimeout' => $vrde->authTimeout, @@ -4301,6 +4304,7 @@ private function _machineGetDetails(&$m) { 'enabled' => $m->VRDEServer->enabled, 'ports' => $m->VRDEServer->getVRDEProperty('TCP/Ports'), 'netAddress' => $m->VRDEServer->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $m->VRDEServer->getVRDEProperty('Security/Method'), 'VNCPassword' => $m->VRDEServer->getVRDEProperty('VNCPassword'), 'authType' => (string)$m->VRDEServer->authType, 'authTimeout' => $m->VRDEServer->authTimeout, diff --git a/panes/settingsDisplay.html b/panes/settingsDisplay.html index 5a7a7a79..18c14ac0 100644 --- a/panes/settingsDisplay.html +++ b/panes/settingsDisplay.html @@ -67,7 +67,18 @@ Server Address: - + + + Security Method: + + + + + Authentication Method: @@ -107,7 +118,7 @@ -/* CHange values when data is loaded */ +/* Change values when data is loaded */ $('#vboxSettingsDialog').on('dataLoaded', function(){ @@ -159,6 +170,8 @@ $('#vboxSettingsTabDisplayRemote').find('tr.vboxSettingsDisplayVNC').css({'display':'none'}); } document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEPort.value = $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.ports; + document.forms['frmVboxSettings'].vboxSettingsDisplayVRDESecMethodID.value = + ($('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.SecurityMethod == '' ? "negotiate" : $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.SecurityMethod); document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAuth.value = $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.authType; document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAuthTimeout.value = $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.authTimeout; document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAddr.value = $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.netAddress; @@ -191,6 +204,7 @@ if($('#vboxSettingsDialog').data('vboxMachineData').VRDEServer && $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.VRDEExtPack) { $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.ports = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEPort.value; $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.netAddress = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAddr.value; + $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.SecurityMethod = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDESecMethodID.value; $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.authType = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAuth.value; $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.authTimeout = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEAuthTimeout.value; $('#vboxSettingsDialog').data('vboxMachineData').VRDEServer.enabled = document.forms['frmVboxSettings'].vboxSettingsDisplayVRDEEnabled.checked; From 1fc79babb733d6f8391c1fcbeef0e5f8702e7741 Mon Sep 17 00:00:00 2001 From: Alexander Studnitskiy <25719+studnitskiy@users.noreply.github.com> Date: Fri, 31 Oct 2025 19:13:41 -0700 Subject: [PATCH 06/20] Fix display USB Device Filters list A closing tag was missing which prevented USB Device Filters from being displayed. Issue #371 Minor change in the value generation code in filter details. --- panes/settingsUSB.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panes/settingsUSB.html b/panes/settingsUSB.html index 2ab567b5..edd93a5a 100644 --- a/panes/settingsUSB.html +++ b/panes/settingsUSB.html @@ -30,7 +30,7 @@ -