You are not logged in.

#1 2008-09-05 09:26:44

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Virtualbox bridge

hi folks,
I'm reading the Virtualbox page from the archwiki ( http://wiki.archlinux.org/index.php/VirtualBox ), I'm trying to setting up a host interface networking following the instruction in the paragraph "Using host interface networking (the Arch way)" but when I try to start my virtual machine virtualbox hangs on "Spawning session". In the virtual machine configurator I selected  "host interface" and in the host interface name I wrote vbox0, it's right?

EDIT:
"Spawning session" error is due to vboxmodule not loaded, I've already fixed that but the host interface still not working. This is the error "VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED)."
I think the instruction on the paragraph "Using host interface networking (the Arch way)" are wrong becouse following the much more complex instruction of the "Using host interface networking (generic)" I managed to set up a working host interface connection.

Last edited by Foschini (2008-09-05 11:28:31)

Offline

#2 2008-09-06 17:26:40

The Void
Member
Registered: 2008-09-06
Posts: 3

Re: Virtualbox bridge

Did you install bridge-utils?  "The Arch way" wouldn't work for me until I installed bridge-utils, now it's working fine.

Offline

#3 2008-09-08 13:04:00

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Re: Virtualbox bridge

The Void wrote:

Did you install bridge-utils?  "The Arch way" wouldn't work for me until I installed bridge-utils, now it's working fine.

Yeah I've already installed bridge-utils but Virtualbox can't find my connection. In virtualbox net settings what did you write in "interface name"?

Offline

#4 2008-09-08 14:26:55

kett
Member
Registered: 2008-04-21
Posts: 104

Re: Virtualbox bridge

What's the output of running "brctl show" with root priveleges?

Offline

#5 2008-09-08 16:55:32

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Re: Virtualbox bridge

kett wrote:

What's the output of running "brctl show" with root priveleges?

wax@persifae:~$sudo brctl show
bridge name    bridge id        STP enabled    interfaces
br0        8000.0011d85b6fdc    no        eth1

Offline

#6 2008-09-08 17:19:43

kett
Member
Registered: 2008-04-21
Posts: 104

Re: Virtualbox bridge

Now run, "VBoxAddIF vbox0 <user> br0" with root permissions, where "<user>" is replaced with the user that will be using virtualbox.  And then set the host interface in the virtualbox settings to vbox0.

Offline

#7 2008-09-09 06:14:25

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Re: Virtualbox bridge

kett wrote:

Now run, "VBoxAddIF vbox0 <user> br0" with root permissions, where "<user>" is replaced with the user that will be using virtualbox.  And then set the host interface in the virtualbox settings to vbox0.

$sudo VBoxAddIF vbox0 wax br0
VirtualBox host networking interface creation utility, version 2.0.0
(C) 2005-2007 Sun Microsystems, Inc.
All rights reserved.

Creating the permanent host networking interface "vbox0" for user wax.

Failed to take down the old interface in order to replace it with the new one.
The interface may still be in use, or you may not currently have sufficient
permissions to do this.  You can replace the interface manually using the
VBoxTunctl command, or alternatively, the new interface will be created
automatically next time you restart the host system.

Offline

#8 2008-09-09 15:37:52

kett
Member
Registered: 2008-04-21
Posts: 104

Re: Virtualbox bridge

Oh, you have to make sure /etc/rc.d/vboxnet is running, so "/etc/rc.d/vboxnet start".  That should do the trick.  I hope.

If you are going to be using virtualbox with bridging often, I would put that in the daemons array in /etc/rc.conf.

Offline

#9 2008-09-09 18:31:17

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Re: Virtualbox bridge

kett wrote:

Oh, you have to make sure /etc/rc.d/vboxnet is running, so "/etc/rc.d/vboxnet start".  That should do the trick.  I hope.

If you are going to be using virtualbox with bridging often, I would put that in the daemons array in /etc/rc.conf.

yeah! It works! Thank you very much yikes
I've also updated the wiki page wink

Offline

#10 2008-11-18 16:59:51

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Virtualbox bridge

Sorry for the cross post (http://bbs.archlinux.org/viewtopic.php?id=58340) but this thread is more accurate.  I am did exactly as Foschini as done with the same error.

I'm using virtualbox-ose 2.0.4.  I do not have the script /etc/rc.d/vboxnet.  I searched through the {core,extra,community}.files.tar.gz tar files and didn't find a match.  I noticed the vboxnet script comes with the PUBE *snicker* version.  Are you guys using the binary version or the OSS version?  If the binary version, then why did you choose it?

Offline

#11 2008-11-19 11:25:09

gejr
Member
Registered: 2007-05-23
Posts: 92

Re: Virtualbox bridge

The binary version has a Remote Desktop server running. It makes installation of an OS on the vbox session a breeze. Just rdesktop host.ip.here. smile There's probably more benefits, but that's the one that made me turn.

Offline

#12 2008-11-19 13:02:42

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Virtualbox bridge

Hi gejr,
Can you pastebin you /etc/rc.d/vboxnet file?

Thanks,
-steve

Offline

Board footer

Powered by FluxBB