*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

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

VirtualBox, VM config and HDD images.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

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

#1

Post by mrjacobrussell » 14 Aug 2018 01:25

I have already read and tried everyones posts,and here is what I have done so far to try and resolve the issue.

Version 11.2.0.4 - 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     root@dev.xigmanas.com:/usr/obj/xigmanas/usr/src/sys/XIGMANAS-amd64
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 8.8.8.8
00:00:01.160589 nspr-2   NAT: resolv.conf: nameserver 8.8.4.4
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: 8.8.8.8
00:00:01.160781 nspr-2     server 2: 8.8.4.4
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 11.2.0.4 - 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
Last edited by mrjacobrussell on 22 Aug 2018 19:51, edited 2 times in total.
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

Re: unable to connect to host error

#2

Post by mrjacobrussell » 20 Aug 2018 23:34

I know people are busy I figured I would gave this a bump.. anyone ?
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

User avatar
ms49434
Developer
Developer
Posts: 718
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: unable to connect to host error

#3

Post by ms49434 » 21 Aug 2018 00:48

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.
1) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

Re: unable to connect to host error

#4

Post by mrjacobrussell » 21 Aug 2018 00:58

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.
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

Re: unable to connect to host error

#5

Post by mrjacobrussell » 21 Aug 2018 02:43

It was working... I restarted my server , now phpvirtualbox will not connect again. Im not sure what the deal is at this point
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

Re: unable to connect to host error

#6

Post by mrjacobrussell » 21 Aug 2018 20:48

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.

https://github.com/phpvirtualbox/phpvirtualbox/wiki.

Details
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

<?php
/**
 * 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 = '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';

/* 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(
        array(
                'name' => 'London',
                'username' => 'user',
                'password' => 'pass',
                'location' => 'http://192.168.1.1:18083/',
                'authMaster' => true // Use this server for authentication
        ),
        array(
                'name' => 'New York',
                'username' => 'user2',
                'password' => 'pass2',
                'location' => 'http://192.168.1.2:18083/'
        ),
);
*/

// Disable authentication
#var $noAuth = true;

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

// 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. 
// http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios
#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:
 * http://www.virtualbox.org/manual/ch12.html#idp12757424
*/
#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;

/* END SETTINGS  */


}



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

Code: Select all

<?php
class phpVBoxConfig {
var $username = 'vboxusers';
var $password = 'NOTUSE';
var $location = 'http://127.0.0.1:18083/';
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 127.0.0.1 to localhost.

https://sourceforge.net/p/phpvirtualbox ... /cbc7fa4b/

I have tried this and changing it to my servers actual IP and both change back. I am stumped.
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

kenZ71
Advanced User
Advanced User
Posts: 403
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: unable to connect to host error

#7

Post by kenZ71 » 22 Aug 2018 14:03

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.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

User avatar
mrjacobrussell
Starter
Starter
Posts: 60
Joined: 05 Jun 2015 17:57
Status: Offline

Re: Resolved -- unable to connect to host error

#8

Post by mrjacobrussell » 22 Aug 2018 19:50

Resolved

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"

then

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

/usr/local/lib/virtualbox/
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
You do not have the required permissions to view the files attached to this post.
11.2.0.4 - Omnius (revision 6766)
x64-embedded on Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8gb ram

-For SALE x64-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
-For SALE - PM ME - Rackable server w/ - Motherboard ARIMA NM46X - Ram 24GB -2x- 2.4 GHz Opteron 8216 HE boot from SSD

Post Reply

Return to “VM|VirtualBox”