Support for Virtualbox 6.1 #210

This commit is contained in:
cesium147 2019-12-15 04:00:35 +03:00
parent 3c981d4df1
commit a84a1ea251
5 changed files with 78754 additions and 908 deletions

View File

@ -14,7 +14,7 @@
/*
* This version of phpVirtualBox
*/
define('PHPVBOX_VER', '6.0-0');
define('PHPVBOX_VER', '6.1-0');
class phpVBoxConfigClass {

File diff suppressed because it is too large Load Diff

View File

@ -1912,11 +1912,11 @@ class vboxconnector {
if(@$this->settings->enableCustomIcons)
$m->setExtraData('phpvb/icon', $args['customIcon']);
$m->VRAMSize = $args['VRAMSize'];
$m->GraphicsAdapter->VRAMSize = $args['VRAMSize'];
// Video
$m->accelerate3DEnabled = $args['accelerate3DEnabled'];
$m->accelerate2DVideoEnabled = $args['accelerate2DVideoEnabled'];
$m->GraphicsAdapter->accelerate3DEnabled = $args['accelerate3DEnabled'];
$m->GraphicsAdapter->accelerate2DVideoEnabled = $args['accelerate2DVideoEnabled'];
// VRDE settings
try {
@ -3253,7 +3253,7 @@ class vboxconnector {
}
/* @var $progress IProgress */
$progress = $machine->launchVMProcess($this->session->handle, "headless", "");
$progress = $machine->launchVMProcess($this->session->handle, "headless", NULL);
} catch (Exception $e) {
// Error opening session
@ -3850,7 +3850,7 @@ class vboxconnector {
$this->session->machine->firmwareType = (string)$defaults->recommendedFirmware;
$this->session->machine->chipsetType = (string)$defaults->recommendedChipset;
$this->session->machine->ClipboardMode = 'Disabled';
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->VRAMSize = intval($defaults->recommendedVRAM);
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->GraphicsAdapter->setVRAMSize(intval($defaults->recommendedVRAM));
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
// USB input devices
@ -4218,11 +4218,11 @@ class vboxconnector {
'CPUCount' => $m->CPUCount,
'HPETEnabled' => $m->HPETEnabled,
'memorySize' => $m->memorySize,
'VRAMSize' => $m->VRAMSize,
'VRAMSize' => $m->GraphicsAdapter->VRAMSize,
'pointingHIDType' => (string)$m->pointingHIDType,
'keyboardHIDType' => (string)$m->keyboardHIDType,
'accelerate3DEnabled' => $m->accelerate3DEnabled,
'accelerate2DVideoEnabled' => $m->accelerate2DVideoEnabled,
'accelerate3DEnabled' => $m->GraphicsAdapter->accelerate3DEnabled,
'accelerate2DVideoEnabled' => $m->GraphicsAdapter->accelerate2DVideoEnabled,
'BIOSSettings' => array(
'ACPIEnabled' => $m->BIOSSettings->ACPIEnabled,
'IOAPICEnabled' => $m->BIOSSettings->IOAPICEnabled,
@ -4231,7 +4231,7 @@ class vboxconnector {
'firmwareType' => (string)$m->firmwareType,
'snapshotFolder' => $m->snapshotFolder,
'ClipboardMode' => (string)$m->ClipboardMode,
'monitorCount' => $m->monitorCount,
'monitorCount' => $m->GraphicsAdapter->monitorCount,
'pageFusionEnabled' => $m->pageFusionEnabled,
'VRDEServer' => (!$m->VRDEServer ? null : array(
'enabled' => $m->VRDEServer->enabled,

73805
endpoints/lib/vboxweb-6.1.wsdl Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
DO NOT EDIT! This is a generated file.
Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's generic pseudo-IDL file)
Generator: src/VBox/Main/webservice/websrv-wsdl-service.xsl
-->
<definitions xmlns:interface="urn:vbox" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:vbox="http://www.virtualbox.org/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="VirtualBox" targetNamespace="http://www.virtualbox.org/Service">
<import location="vboxweb-6.1.wsdl" namespace="http://www.virtualbox.org/"/>
<service name="vboxService">
<port binding="vbox:vboxBinding" name="vboxServicePort">
<soap:address location="http://localhost:18083/"/>
</port>
</service>
</definitions>