well its installed and as far as I can tel configured correctly.
I have installed virtualbox version 4.0.4 with the latest version of version phpvirtualbob
my config for /etc/default/virtualbox is
VBOXWEB_USER=vbox
VBOXWEB_HOST=localhost
VBOXWEB_PORT=18038
VBOXWEB_TIMEOUT=300
VBOXWEB_CHECK_INTERVAL=5
VBOXWEB_THREADS=100
VBOXWEB_KEEPALIVE=100
VBOXWEB_LOGFILE=
INSTALL_DIR=/usr/lib/virtualbox
and my config.php is
<?php
/*
* phpVirtualBox example configuration. $Id$
*
* rename to config.php and edit as needed.
*
*/
class phpVBoxConfig {
/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'vbox';
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';
/* Default language. See languages folder for more language options.
* Can also be changed in File -> Preferences -> Language in
* phpVirtualBox.
*/
var $language = 'en_us';
/*
*
* Not-so-common options / tweeking
*
*/
// Multiple servers example config. Uncomment (remove /* and */) to use.
// Add ALL the servers you want to use. Even if you have the server set
// above. The default server will be the first one in the list.
/*
var $servers = array(
array(
'name' => 'home',
'username' => 'vbox',
'password' => 'vbox',
'location' => 'http://192.168.0.16:18083/',
'authMaster' => true // Use this server for authentication
),
);
*/
// Disable authentication
#var $noAuth = true;
// Host / ip to use for console connections
#var $consoleHost = '192.168.0.16';
// Disable "preview" box
#var $noPreview = true;
// Default preview box update interval in seconds
#var $previewUpdateInterval = 30;
// Preview box pixel width
#var $previewWidth = 180;
// Change default preview aspect ratio to 1.
// http://www.wikipedia.org/wiki/Aspect_ratio_(image)#Previous_and_presently_used_aspect_ratios
#var $previewAspectRatio = 1.6;
/*
Allow to prompt deletion harddisk files on removal from Virtual Media Manager.
If this is not set, files are always kept. If this is set, you will be PROMPTED
to decide whether or not you would like to delete the harddisk file(s) when you
remove a harddisk from virtual media manager. You may still choose not to delete
the file when prompted.
*/
#var $deleteOnRemove = true;
/*
* File / Folder browser settings
*/
// Restrict file types
#var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
// Restrict locations / folders
#var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like '/home/vbox','/var/ISOs')
// Force use of local, webserver based file browser instead of going through vboxwebsrv
#var $browserLocal = true;
// Disable file / folder browser.
#var $browserDisable = true;
/*
* Misc
*/
/* Session Security Level
The following options are valid:
0 - Use only Browser's User-Agent string
1 - Use first octet of client IP
2 - Use second octet of client IP
3 - Use third octet of client IP
4 - Use entire client IP
Each option stacks with previous options. For example, the default setting of 2 uses:
Browser's User-Agent string + first octet of client IP + second octet of client IP
Do not change / set unless you have a good reason.
*/
#var $sessionSecurityLevel = 2;
/* Disable any of phpVirtualBox's main tabs */
#var $disableTabVMSnapshots = true; // Snapshots tab
#var $disableTabVMConsole = true; // Console tab
/* Screen resolutions for console tab */
#var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
/* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */
#var $nicMax = 4;
/* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
* Note that some of these items may not be translated to languages other than english.
*/
#var $enableAdvancedConfig = true;
/*
Sorting VM List options
var $vmListSort = 'name'; // Default. Sort VM list by VM name
var $vmListSort = 'running'; // Place running VMs at the top of the list
var $vmListSort = 'gui'; // Use drag-and-drop / manual vm ordering
var $vmListSort = 'stateChange'; // Order by VMs' last state change
var $vmListSort = 'os'; // Sort by OS type
var $vmListSort = 'function(..){...}' // uses custom javascript function. Example follows:
// This places running VMs at the top of the list, then orders by
// the last VM state change, then by name.
var $vmListSort = 'function(a,b) {
if(a.state == "Running" && b.state != "Running") return -1;
if(b.state == "Running" && a.state != "Running") return 1;
if(a.lastStateChange < b.lastStateChange) return 1;
if(b.lastStateChange < a.lastStateChange) return -1;
return strnatcasecmp(a.name,b.name);
}';
NOTE: In a multi-user situation, 'gui' is probably a bad idea.
*/
#var $vmListSort = 'name';
// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
#var $enableVDE = true;
// Disable setting SATA controllers port count to the max port number found when saving VMs.
#var $disableSataPortCount = true;
/* Enable Parallel Port configuration - EXPERIMENTAL
LPT support may or may not work for you.
!!! VirtualBox LPT support only works in Linux. !!!
*/
#var $enableLPTConfig = true;
/*
* Cache tweeking.
*
*/
// Refresh VM cache when VM Settings window is loaded. Default is true. Set to false to disable.
#var $vmConfigRefresh = true;
// Path
#var $cachePath = '/tmp';
/* END SETTINGS */
}
the error I get after loggin in is :-
Exception Object
(
[messagerotected] => Could not connect to host
[string:Exceptionrivate] =>
[coderotected] => 64
[filerotected] => /var/www/phpvirtualbox/lib/vboxconnector.php
[linerotected] => 107
[trace:Exceptionrivate] => Array
(
[0] => Array
(
[file] => /var/www/phpvirtualbox/lib/vboxconnector.php
[line] => 238
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /var/www/phpvirtualbox/lib/ajax.php
[line] => 109
[function] => connect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)
)
)
[previous:Exceptionrivate] =>
)
I've also run
VBoxManage setproperty vrdeauthlibrary default
VBoxManage setproperty websrvauthlibrary default
and this has not changed anything
any thoughts?
thanks
I have installed virtualbox version 4.0.4 with the latest version of version phpvirtualbob
my config for /etc/default/virtualbox is
VBOXWEB_USER=vbox
VBOXWEB_HOST=localhost
VBOXWEB_PORT=18038
VBOXWEB_TIMEOUT=300
VBOXWEB_CHECK_INTERVAL=5
VBOXWEB_THREADS=100
VBOXWEB_KEEPALIVE=100
VBOXWEB_LOGFILE=
INSTALL_DIR=/usr/lib/virtualbox
and my config.php is
<?php
/*
* phpVirtualBox example configuration. $Id$
*
* rename to config.php and edit as needed.
*
*/
class phpVBoxConfig {
/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'vbox';
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';
/* Default language. See languages folder for more language options.
* Can also be changed in File -> Preferences -> Language in
* phpVirtualBox.
*/
var $language = 'en_us';
/*
*
* Not-so-common options / tweeking
*
*/
// Multiple servers example config. Uncomment (remove /* and */) to use.
// Add ALL the servers you want to use. Even if you have the server set
// above. The default server will be the first one in the list.
/*
var $servers = array(
array(
'name' => 'home',
'username' => 'vbox',
'password' => 'vbox',
'location' => 'http://192.168.0.16:18083/',
'authMaster' => true // Use this server for authentication
),
);
*/
// Disable authentication
#var $noAuth = true;
// Host / ip to use for console connections
#var $consoleHost = '192.168.0.16';
// Disable "preview" box
#var $noPreview = true;
// Default preview box update interval in seconds
#var $previewUpdateInterval = 30;
// Preview box pixel width
#var $previewWidth = 180;
// Change default preview aspect ratio to 1.
// http://www.wikipedia.org/wiki/Aspect_ratio_(image)#Previous_and_presently_used_aspect_ratios
#var $previewAspectRatio = 1.6;
/*
Allow to prompt deletion harddisk files on removal from Virtual Media Manager.
If this is not set, files are always kept. If this is set, you will be PROMPTED
to decide whether or not you would like to delete the harddisk file(s) when you
remove a harddisk from virtual media manager. You may still choose not to delete
the file when prompted.
*/
#var $deleteOnRemove = true;
/*
* File / Folder browser settings
*/
// Restrict file types
#var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
// Restrict locations / folders
#var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like '/home/vbox','/var/ISOs')
// Force use of local, webserver based file browser instead of going through vboxwebsrv
#var $browserLocal = true;
// Disable file / folder browser.
#var $browserDisable = true;
/*
* Misc
*/
/* Session Security Level
The following options are valid:
0 - Use only Browser's User-Agent string
1 - Use first octet of client IP
2 - Use second octet of client IP
3 - Use third octet of client IP
4 - Use entire client IP
Each option stacks with previous options. For example, the default setting of 2 uses:
Browser's User-Agent string + first octet of client IP + second octet of client IP
Do not change / set unless you have a good reason.
*/
#var $sessionSecurityLevel = 2;
/* Disable any of phpVirtualBox's main tabs */
#var $disableTabVMSnapshots = true; // Snapshots tab
#var $disableTabVMConsole = true; // Console tab
/* Screen resolutions for console tab */
#var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
/* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */
#var $nicMax = 4;
/* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
* Note that some of these items may not be translated to languages other than english.
*/
#var $enableAdvancedConfig = true;
/*
Sorting VM List options
var $vmListSort = 'name'; // Default. Sort VM list by VM name
var $vmListSort = 'running'; // Place running VMs at the top of the list
var $vmListSort = 'gui'; // Use drag-and-drop / manual vm ordering
var $vmListSort = 'stateChange'; // Order by VMs' last state change
var $vmListSort = 'os'; // Sort by OS type
var $vmListSort = 'function(..){...}' // uses custom javascript function. Example follows:
// This places running VMs at the top of the list, then orders by
// the last VM state change, then by name.
var $vmListSort = 'function(a,b) {
if(a.state == "Running" && b.state != "Running") return -1;
if(b.state == "Running" && a.state != "Running") return 1;
if(a.lastStateChange < b.lastStateChange) return 1;
if(b.lastStateChange < a.lastStateChange) return -1;
return strnatcasecmp(a.name,b.name);
}';
NOTE: In a multi-user situation, 'gui' is probably a bad idea.
*/
#var $vmListSort = 'name';
// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
#var $enableVDE = true;
// Disable setting SATA controllers port count to the max port number found when saving VMs.
#var $disableSataPortCount = true;
/* Enable Parallel Port configuration - EXPERIMENTAL
LPT support may or may not work for you.
!!! VirtualBox LPT support only works in Linux. !!!
*/
#var $enableLPTConfig = true;
/*
* Cache tweeking.
*
*/
// Refresh VM cache when VM Settings window is loaded. Default is true. Set to false to disable.
#var $vmConfigRefresh = true;
// Path
#var $cachePath = '/tmp';
/* END SETTINGS */
}
the error I get after loggin in is :-
Exception Object
(
[messagerotected] => Could not connect to host
[string:Exceptionrivate] =>
[coderotected] => 64
[filerotected] => /var/www/phpvirtualbox/lib/vboxconnector.php
[linerotected] => 107
[trace:Exceptionrivate] => Array
(
[0] => Array
(
[file] => /var/www/phpvirtualbox/lib/vboxconnector.php
[line] => 238
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /var/www/phpvirtualbox/lib/ajax.php
[line] => 109
[function] => connect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)
)
)
[previous:Exceptionrivate] =>
)
I've also run
VBoxManage setproperty vrdeauthlibrary default
VBoxManage setproperty websrvauthlibrary default
and this has not changed anything
any thoughts?
thanks