Failed to add the interface "vbox0" to the bridge

Discussions related to using VirtualBox on Linux hosts.
Post Reply
inoumba
Posts: 7
Joined: 5. Jul 2008, 11:55

Failed to add the interface "vbox0" to the bridge

Post by inoumba »

Hi to All.
I running Fedora8 and Virtualbox 1.5
I receive this message when I run the "sudo /usr/bin/VBoxAddIF vbox0 workshop br0" command :

"VirtualBox host networking interface creation utility, version 1.5.6
(C) 2005-2007 innotek GmbH
All rights reserved.

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

Failed to add the interface "vbox0" to the bridge "br0".
Make sure that the bridge exists and that you currently have sufficient
permissions to do this."


I run my computer with the "Workshop" session who is a member of "vboxusers" and I have check to permission of the /dev/net/tun file and everything seems correct :


[root@localhost workshop]# ls -l /dev/net/tun
crw-rw---- 1 root vboxusers 10, 200 2008-07-29 08:32 /dev/net/tun


So I don't understand why I've this error message.
Any help will be welcome.
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

Post by Sasquatch »

As the error states, do you have a bridge? Install bridge_utils and create a bridge, after that you can create the virtual interface.
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.
inoumba
Posts: 7
Joined: 5. Jul 2008, 11:55

Post by inoumba »

I've installed bridge-utils.

[root@localhost workshop]# /sbin/ifconfig
br0 Link encap:Ethernet HWaddr 00:00:39:00:BA:C7
inet addr:10.0.0.164 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::200:39ff:fe00:bac7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3835 errors:0 dropped:0 overruns:0 frame:0
TX packets:994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1130756 (1.0 MiB) TX bytes:184413 (180.0 KiB)

eth0 Link encap:Ethernet HWaddr 00:00:39:00:BA:C7
inet6 addr: fe80::200:39ff:fe00:bac7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9152 errors:0 dropped:0 overruns:0 frame:0
TX packets:1030 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1805640 (1.7 MiB) TX bytes:187687 (183.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1291 errors:0 dropped:0 overruns:0 frame:0
TX packets:1291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2500200 (2.3 MiB) TX bytes:2500200 (2.3 MiB)

vbox0 Link encap:Ethernet HWaddr 00:FF:93:62:24:56
inet6 addr: fe80::2ff:93ff:fe62:2456/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Any other help?????????????????
pdr
Posts: 5
Joined: 2. Aug 2008, 01:31

Post by pdr »

i have the same error. vboxusers group and any other utilities things are okay but the problem still there.

Anybody know the solution?
inoumba
Posts: 7
Joined: 5. Jul 2008, 11:55

I found the solution

Post by inoumba »

The problem is the position of the user bash.

What I did, I modify the VBoxAddIF script by remplacing each instance of "brctl" by "/usr/sbin/brctl".

"ifconfig" by "/sbin/ifconfig"

"VBoxTunctl" by "/usr/bin/VBoxTunctl".
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Isn't this why they invented the path/PATH environment variable?
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
inoumba
Posts: 7
Joined: 5. Jul 2008, 11:55

Post by inoumba »

for me I fail to fix me path environmental variable but what I did and it's working fine.

I locate the "brctl" whith the "locate brctl" command and I replace with the correct path in the VBoxAddIF.

I did the same thing for "ifconfig" and now my bridge and my host interface are working properly
Post Reply