Page 1 of 1
windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 13:29
by rabbieburns
Headless Virtual box 2.2.4 - the -bin not the -ose version. Host has 1 NIC, eth0. Virtual XP, 2003 server and 2008 server work fine with NAT.
Trying to change from NAT so I can use the VMs on my internal network, and from internet. But I cant seem to get it working. Ive spent all day searching and posting here as a last resort.
When I do the following, the command is accepted,
Code: Select all
VBoxManage modifyvm "2003Server" -nic1 hostif -hostifdev1 eth0
but then when I try to start the VM I get:
Code: Select all
Error: failed to start machine. Error message: Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED)
This error has cropped up a few places on my search today, but never found a definiive answer to the problem..
Even though I did a fresh install of 2.2.4, I followed the guide
here and modprobe'd anyway, but still didnt make a difference.
I hope Ive included enough information for someone here with more knowledge than me to show me what/where Im going wrong.
Many Thanks.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 13:42
by baf
Try running:
then use the complete name from from the line with eth0 in my case its en0
Name: en0: Ethernet
So in this case I would try:
Code: Select all
VBoxManage modifyvm "2003Server" -nic1 hostif -hostifdev1 "en0: Ethernet"
Then tell us if it helped or not.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 13:50
by rabbieburns
Thanks for the prompt reply.
Code: Select all
oasis ~ # VBoxManage list bridgedifs
VirtualBox Command Line Management Interface Version 2.0.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
Usage:
VBoxManage list vms|runningvms|ostypes|hostdvds|hostfloppies|
hostifs|hostinfo|hdds|dvds|floppies|
usbhost|usbfilters|systemproperties
Syntax error: Invalid parameter 'bridgedifs'
From that, i tried the "hostifs" to see what that would show...
Code: Select all
oasis ~ # VBoxManage list hostifs
VirtualBox Command Line Management Interface Version 2.0.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
[!] FAILED calling host->GetNetworkInterfaces(coll.asOutParam()) at line 2726!
[!] Primary RC = NS_ERROR_NOT_IMPLEMENTED (0x80004001) - Not implemented
[!] Full error info present: false, basic error info present: false
Not sure if that means anything to you?
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 14:38
by baf
Reinstall you still have 2.0.2 installed
See this line:
VirtualBox Command Line Management Interface Version 2.0.2
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 15:14
by rabbieburns
Thanks you're right. I did a search and found a .2.0.2 run file in my home folder, I must have attemtped to use virtualbox at some time in the past... . So I uninstalled that, reninstalled 2.2.4, and now the command gives me:
Code: Select all
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Name: eth0
GUID: 30687465-0000-4000-8000-001e0bc681c9
Dhcp: Disabled
IPAddress: 192.168.2.12
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:021e:0bff:fec6:81c9
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 00:1e:0b:c6:81:c9
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-eth0
Using that new VboxNetworkName, I used
Code: Select all
oasis ~ # /opt/VirtualBox/VBoxManage modifyvm "2003Server" -nic1 hostif -hostifdev1 HostInterfaceNetworking-eth0
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
But when I try to start the VM I get
Code: Select all
oasis ~ # /opt/VirtualBox/VBoxHeadless -startvm "2003Server"
VBoxHeadless: Error -1912 in supR3HardenedMainInitRuntime!
VBoxHeadless: RTR3Init failed with rc=-1912
VBoxHeadless: Tip! It may help to reinstall VirtualBox.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 15:26
by Sasquatch
Damn, not that pesky error again! It's been on this forum a couple of times, and I thought we finally got rid of it, but now you come and bring back the horror.
You now have a different problem than Host Interface. Please search using the tips in the
Forum Posting Guide, there are several ways to get it fixed. There is no one fix to solve them all, so you have to try each and every one you encounter.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 16:01
by rabbieburns
OK, thanks for that, will give a good search.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 16:45
by rabbieburns
sasquatch, I did a search but could only find one single mention of it?
http://www.google.com/search?hl=en&clie ... arch&meta=
Ive tried reinstalling, and complete removal and then install, it always does the same.. ?
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 19:41
by Sasquatch
That's why I hate that error, you can't really search on it, but there are at least 5 other topics about it. One suggests that you need to check if you have Qt4 installed properly. Worth a shot.
Re: windows guest on gentoo host, hostif problems
Posted: 5. Jul 2009, 20:30
by rabbieburns
right I have got it working. I removed virtualbox-bin and virtualbox-modules using emerge --unmerge
then I made sure the system was completely up to date, it installed around 20 updats, probably irrellevent anyway
then I grabbed the 3.0.0 .amd 64 .run file from the homepage
ran that to install the latest version
and it all works as it should now, hostif , everyttihng,..
Thanks to everyone who helped with this.