windows guest on gentoo host, hostif problems

Discussions related to using VirtualBox on Linux hosts.
Post Reply
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

windows guest on gentoo host, hostif problems

Post 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.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: windows guest on gentoo host, hostif problems

Post by baf »

Try running:

Code: Select all

VBoxManage list bridgedifs
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.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

Re: windows guest on gentoo host, hostif problems

Post 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?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: windows guest on gentoo host, hostif problems

Post by baf »

Reinstall you still have 2.0.2 installed

See this line:
VirtualBox Command Line Management Interface Version 2.0.2
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

Re: windows guest on gentoo host, hostif problems

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: windows guest on gentoo host, hostif problems

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

Re: windows guest on gentoo host, hostif problems

Post by rabbieburns »

OK, thanks for that, will give a good search.
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

Re: windows guest on gentoo host, hostif problems

Post 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.. ?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: windows guest on gentoo host, hostif problems

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
rabbieburns
Posts: 6
Joined: 5. Jul 2009, 12:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: 2003 Server, 2008 Server

Re: windows guest on gentoo host, hostif problems

Post 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.
Post Reply