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

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

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

Post 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.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

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

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.
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 »

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???
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 »

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).
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 »

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