phpVirtualBox


介紹:

based on the (inactive) vboxweb project
vboxwebsrv (SOAP)
does not directly interact with any files on the VirtualBox host
does not have automatic VM start / stop functionality on system boot / shutdown - this functionality is not provided by the VirtualBox API

License: GPLv3

 

安裝:

http://code.google.com/p/phpvirtualbox/

 

php 要有以下 module

  • json.so
  • soap.so

 

websrvauthlibrary:

VBoxManage setproperty websrvauthlibrary null

 

設定:

config.php-example --> config.php

由於 websrvauthlibrary 是 null 那不用填

var $username = '';
var $password = '';

 

var $authLib = 'Builtin';

 

var $previewUpdateInterval = 30;
var $previewWidth = 180;

 

var $deleteOnRemove = false;           // Delete VM 時不會刪除 vm 的 image

 

var $browserRestrictFolders = array('/vbox');

 

var $vmListMinimal = true;

 

var $disableTabVMSnapshots = true; // Snapshots tab
var $disableTabVMConsole = true; // Console tab

 

var $enableAdvancedConfig = true;

 

var $startStopConfig = true;

 


 

Login:

 

phpvirtualbox default login: admin / admin

 

pw recovery:

recovery.php-disabled ---> recovery.php

 


 

vboxwebService

/etc/init.d/vboxweb-service

 

/etc/default/virtualbox

VBOXWEB_USER     The user as which vboxwebsrv will run.
VBOXWEB_HOST     The host to bind to (localhost).
VBOXWEB_PORT     The port to bind to (18083).
VBOXWEB_TIMEOUT     Session timeout in seconds; 0 = disable timeouts (300).
VBOXWEB_CHECK_INTERVAL     Frequency of timeout checks in seconds (5).
VBOXWEB_THREADS     Maximum number of worker threads to run in parallel (100).
VBOXWEB_KEEPALIVE     Maximum number of requests before a socket will be closed (100).
VBOXWEB_LOGFILE     Name of file to write log to (no file).
INSTALL_DIR     The location of the vboxwebsrv binary (/usr/lib/virtualbox).