Page 1 of 1

Resolved -- unable to connect to host error multiple issues problems

Posted: 14 Aug 2018 01:25
by mrjacobrussell
I have already read and tried everyones posts,and here is what I have done so far to try and resolve the issue.

Version - Omnius (revision 5774)

I was unable to add a user for vboxusers in the users page it was blank, but I was still getting an error that the user exists .
I deleted the user in shell using command line pw
then in GUI i created vboxusers and connected to the group vboxusers

I created a folder in my mnt called /mnt/home/vbox and a sub folder called "VirtualBox VMs'
I chmod the folder vbox recursively to 755

I am still unable to connect and not sure where to look for a vbox log

here is the phpvirtualbox log

Code: Select all

VirtualBox XPCOM Server 5.2.16 r123745 freebsd.amd64 (Jul 29 2018 18:35:01) release log
00:00:00.002280 main     Log opened 2018-08-13T23:14:39.478627000Z
00:00:00.002286 main     Build Type: release
00:00:00.002314 main     OS Product: FreeBSD
00:00:00.002332 main     OS Release: 11.2-RELEASE
00:00:00.002349 main     OS Version: FreeBSD 11.2-RELEASE #0 r336868M: Sun Jul 29 15:48:17 CEST 2018
00:00:00.002398 main     Host RAM: 3819MB (3.7GB) total, 2084MB (2.0GB) available
00:00:00.002411 main     Executable: /usr/local/lib/virtualbox/VBoxSVC
00:00:00.002414 main     Process ID: 15250
00:00:00.002416 main     Package type: BSD_64BITS_GENERIC (OSE)
00:00:00.007534 main     IPC socket path: /tmp/.vbox-vboxusers-ipc/ipcd
00:00:00.120238 nspr-2   VirtualBox: object creation starts
00:00:00.120464 nspr-2   Home directory: '/mnt/mediaone/home/vbox/.config/VirtualBox'
00:00:00.121099 nspr-2   Loading settings file "/mnt/mediaone/home/vbox/.config/VirtualBox/VirtualBox.xml" with version "1.12-freebsd"
00:00:01.160504 nspr-2   NAT: resolv.conf: domain line without value
00:00:01.160543 nspr-2   NAT: resolv.conf: nameserver
00:00:01.160589 nspr-2   NAT: resolv.conf: nameserver
00:00:01.160689 nspr-2   HostDnsMonitor: old information
00:00:01.160708 nspr-2     no server entries
00:00:01.160723 nspr-2     no domain set
00:00:01.160736 nspr-2     no search string entries
00:00:01.160751 nspr-2   HostDnsMonitor: new information
00:00:01.160765 nspr-2     server 1:
00:00:01.160781 nspr-2     server 2:
00:00:01.160796 nspr-2     no domain set
00:00:01.160809 nspr-2     no search string entries
00:00:01.160875 nspr-2   HostDnsMonitorProxy::notify
00:00:01.176265 nspr-2   VD: VDInit finished with VINF_SUCCESS
00:00:01.176644 nspr-2   
OR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={0eb668d2-495e-5a36-8890-29999b5f030c} aComponent={SystemPropertiesWrap} aText={Cannot determine default Guest Additions ISO location. Most likely they are not available}, preserve=false aResultDetail=0
00:00:01.178123 nspr-2   VirtualBox: object created
00:00:01.189815 nspr-2   Saving settings file "/mnt/mediaone/home/vbox/.config/VirtualBox/VirtualBox.xml" with version "1.12-freebsd"
00:00:06.213719 main     VirtualBox: object deletion starts
00:00:06.219836 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={9570b9d5-f1a1-448a-10c5-e12f5285adad} aComponent={VirtualBoxWrap} aText={The object is not ready}, preserve=false aResultDetail=0
00:00:06.223381 main     VirtualBox: object deleted
Version - Omnius (revision 5774)

Can anyone help point me in the right direction? maybe we can make a sticky thread once we find all the steps to try lol

Re: unable to connect to host error

Posted: 20 Aug 2018 23:34
by mrjacobrussell
I know people are busy I figured I would gave this a bump.. anyone ?

Re: unable to connect to host error

Posted: 21 Aug 2018 00:48
by ms49434
There's no need to create a user vboxusers and a group vboxusers, XigmaNAS is creating them automatically.
Please delete user vboxusers you created under Access > Users & Groups to undo the mess, disable vbox and reboot.
Create a new folder for your virtual machines but this time choose a folder name without blanks, then enable and configure vbox.

Re: unable to connect to host error

Posted: 21 Aug 2018 00:58
by mrjacobrussell
Thank you for the reply, I tried this too first. so far if I reset to defaults I can get vbox to work but there is something wrong with the upgrade, maybe its due to the upgrade from nas4free to xigmanas ?

I am having to completely reset the server hopefully I can get my subsonic jail to import and do not have to start from scratch.

Re: unable to connect to host error

Posted: 21 Aug 2018 02:43
by mrjacobrussell
It was working... I restarted my server , now phpvirtualbox will not connect again. Im not sure what the deal is at this point

Re: unable to connect to host error

Posted: 21 Aug 2018 20:48
by mrjacobrussell
If I deleted the config or delete everything in it I get this error

Code: Select all

No configuration found. Rename the file config.php-example in phpVirtualBox's folder to config.php and edit as needed.

For more detailed instructions, please see the installation wiki on phpVirtualBox's web site.

Note: the password and username is wrong so I changed them to vboxusers and NOTUSE

If I save the sample config in place of the config and reboot the server changes it back from this

Code: Select all

 * phpVirtualBox example configuration. 
 * @version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $
 * rename to config.php and edit as needed.
class phpVBoxConfig {

/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'pass';

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = '';

/* Default language. See languages folder for more language options.
 * Can also be changed in File -> Preferences -> Language in
 * phpVirtualBox.
var $language = 'en';

/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
var $vrdeports = '9000-9100';

 * Not-so-common options / tweaking

// 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(
                'name' => 'London',
                'username' => 'user',
                'password' => 'pass',
                'location' => '',
                'authMaster' => true // Use this server for authentication
                'name' => 'New York',
                'username' => 'user2',
                'password' => 'pass2',
                'location' => ''

// Disable authentication
#var $noAuth = true;

// Host / ip to use for console connections
#var $consoleHost = '';

// Disable "preview" box
#var $noPreview = true;

// Default preview box update interval in seconds
#var $previewUpdateInterval = 30;

// Preview box pixel width
#var $previewWidth = 180;

// Max number of progress operations to keep in list
var $maxProgressList = 5;

// Change default preview aspect ratio to 1. 
#var $previewAspectRatio = 1.6;

// Enable custom VM icons
#var $enableCustomIcons = true;

Exclusively use phpVirtualBox's groups configuration rather than VirtualBox groups.
This has the following effects:

*) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as
	VirtualBox and VBoxManage
*) Group changes will not affect which folder a VM is placed in
*) You can rename groups that contain running VMs and move / copy running VMs to groups
#var $phpVboxGroups = true;

Allow to prompt deletion hard disk 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 hard disk file(s) when you
remove a hard disk 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 array('/home/vbox','/var/ISOs')

// Force use of local, web server based file browser instead of going through vboxwebsrv
#var $browserLocal = true;

// Disable file / folder browser.
#var $browserDisable = true;

// Disable Windows drive detection
#var $noWindowsDriveList = true;

// Just list all drives from C:\ - Z:\ without checking if they exist or not.
// This may be required on older Windows systems with more than one drive.
#var $forceWindowsAllDriveList = true;

 * Misc
 * Auto-refresh interval in seconds for VirtualBox host memory usage information.
 * Any value below 3 will be ignored.
var $hostMemInfoRefreshInterval = 5;

/* Show % of free host memory instead of % used */
#var $hostMemInfoShowFreePct = true;

 * VM Memory warnings.
 * If $vmMemoryStartLimitWarn is enabled, each time a VM is started through
 * phpVirtualBox, it will check that the available host memory is greater than
 * the base and video memory of the VM + 50MB (a little bit of overhead). If it
 * is not, a confirmation dialog will be presented to confirm that you want to
 * start the VM.
 * If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset
 * megabytes is subtracted from the available host memory before the check is
 * performed by $vmMemoryStartLimitWarn logic. For instance it may be a good
 * idea to always have VM memory requirements + 100MB free. 100 is the default.
#var $vmMemoryStartLimitWarn = true;
#var $vmMemoryOffset = 100;

 * Display guest additions version of a running VM on its Details tab
#var $enableGuestAdditionsVersionDisplay = true;

/* 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');

/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */
var $consoleKeyboardLayout = 'EN';

/* 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;

/* Enable startup / shutdown configuration.
 * This only works in linux and you must add the vboxinit file to
 * your startup scripts list.
#var $startStopConfig = true;

// Authentication library.
// var $authLib = 'Builtin';

// VM ownership
#var $enforceVMOwnership = true;

// Per-user VM quota
#var $vmQuotaPerUser = 2;

// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
// If you do not know what VDE networking is - you do not need it, it is probably not supported by your
// VirtualBox installation and will cause errors if enabled.
#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;

/* Enable HardDisk IgnoreFlush configuration. This controls the "ExtraData" setting
 * in "VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush". See
 * Responding to guest IDE/SATA flush requests at:
#var $enableHDFlushConfig = true;

 * Event listener timeout in seconds. This is an advanced option that most people will
 * probably not need to change.
#var $eventListenerTimeout = 20;



The server changes it to this after restarting Phpvirtualbox or the server.

Code: Select all

class phpVBoxConfig {
var $username = 'vboxusers';
var $password = 'NOTUSE';
var $location = '';
var $language = 'en';
var $vrdeports = '9000-9100';
var $maxProgressList = 5;
var $deleteOnRemove = true;
var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
var $hostMemInfoRefreshInterval = 5;
var $disableTabVMConsole = true;
var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
var $consoleKeyboardLayout = 'EN';
var $nicMax = 4;
var $startStopConfig = true;
var $enableAdvancedConfig = true;

further here is my directory permissions and ownership
drwxr-xr-x 4 vboxusers vboxusers 512 Aug 20 18:00 vbox

drwx------ 3 vboxusers vboxusers 512 Aug 20 17:40 .config
drwxr-xr-x 2 vboxusers vboxusers 512 Aug 20 18:00 VirtualBox VMs

lastly this page references changing the servers address from to localhost. ... /cbc7fa4b/

I have tried this and changing it to my servers actual IP and both change back. I am stumped.

Re: unable to connect to host error

Posted: 22 Aug 2018 14:03
by kenZ71
I had trouble with Vbox in the begining - setting the permissions on the VBox folders to 777 fixed it. Not the best solution and probably a better one exists but that got me moving.

Re: Resolved -- unable to connect to host error

Posted: 22 Aug 2018 19:50
by mrjacobrussell

I am sure this is a one off for me but someone else might do this to themselves :) so here is the resolution and cause.

I remembered I took out the domain "local" and left it blank on the general settings page so that Ubuntu
could see my nas4free / XigmaNas server through the network option instead of windows share (i think that why i did it).

Well, when i did a factory reset of XgmaNas I changed this before my first restart.
I did another factory Reset and changed one thing at a time until I broke it again.

What I had to do to fix it was follow "raulfg3" instructions for the missing folder:
create a "VirtualBox VMs" folder
chmod -r 755 "virtualbox_folder"
chown -r vboxusers:vboxusers "virtualbox_folder"


set Domain back to local.
Settings > General >
scroll down
Domain = "local"

Once fixed reset XigmaNas or uncheck enable / save / check enable and save to restart phpvirtualbox

Also poking around I found a nifty tool called webtest located at

Code: Select all

Screenshot from 2018-08-22 10-43-31.png
I used this webtest command to test the connection

Code: Select all

./webtest -c http://localhost:18083 logon username password
Screenshot from 2018-08-22 10-53-32.png