Page 1 of 1

/usr/bin/VBoxAddIF: line 220: ifconfig: command not found

Posted: 5. Jul 2008, 12:19
by inoumba
I have installed VirtualBox 1.6 on Fedora8.

I want to configure a bridge network interface.
I have followed all the instruction so far in the manual but I receive this message when I try to create and add a vbox0 interface to the bridge as root.:

[root@localhost workshop]# VBoxAddIF vbox0 workshop br0
VirtualBox host networking interface creation utility, version 1.6.2
(C) 2005-2007 Sun Microsystems, Inc.
All rights reserved.

Creating the permanent host networking interface "vbox0" for user workshop.
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found
/usr/bin/VBoxAddIF: line 220: ifconfig: command not found

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 have disable NetworkManager.
-I have check the permission and everything seems correct.
-The bridge br0 exist :
/usr/sbin/brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00003900bac7 no eth0

So Plz someone can help me???
I've spend 2 days on that issue.

Posted: 5. Jul 2008, 13:43
by stefan.becker
Under Fedora ifconfig is in the directory /sbin.

Check if there is this command. If no: install the package with this command.

For search: rpmseek.com, advanced search, package contains file.

Posted: 5. Jul 2008, 14:19
by Sasquatch
Try to run the VBoxAddIF command as root. By default, not all distributions include the sbin folders (/sbin, /usr/sbin) in the PATH enviroment for normal users. Run it as root will give you these paths too.

Posted: 7. Jul 2008, 07:52
by inoumba
ifconfig is locate at /sbin:

[workshop@localhost ~]$ locate ifconfig
/sbin/ifconfig
/usr/share/man/de/man8/ifconfig.8.gz
/usr/share/man/fr/man8/ifconfig.8.gz
/usr/share/man/man8/ifconfig.8.gz
/usr/share/man/pt/man8/ifconfig.8.gz

And I ran the VBoxAddIF command as root.

But I still have the same problem.
Any other help???

Posted: 7. Jul 2008, 08:43
by Sasquatch
Run 'su -', then use 'echo $PATH' to see if /sbin is in your path variable. If it is, then you can run it, else you need to manually add it (export PATH=$PATH;/sbin).

Posted: 7. Jul 2008, 10:27
by inoumba
Ok what I did,

I went in the VBoxAddIF script in /usr/bin/VBoxAddIF and I edit the script by remplacing "ifconfig" by "/sbin/ifconfig" and "brctl" by "/usr/sbin/brctl".
And I was able to run the VBoxAddIF command with no error.

Now my problem is that I'm not able to ping other computer from my virtual(Win_2003) machine in VirtualBox.

I configured the guest host with host Interface and vbox0 but the network card of my guest host shows a limited connectivity.

When I try a manual configuration I also fail.

My Network configuration:
-Dhcp enable
-Network range: 10.0.0.0
-Subnet Mask: 255.255.255.0
-Gateway: 10.0.0.90


Any other help?