Host Interface Networking with Ubuntu 8.04

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jdwfly
Posts: 3
Joined: 25. Sep 2008, 01:11

Host Interface Networking with Ubuntu 8.04

Post by jdwfly »

First of all let me state that I have searched the forums and google and everywhere else to find solutions. I read through the manual and did the steps exactly as they are written. My bridge is functioning correctly (I can still surf the web and ping other computers over the network on my host) I created vbox0 just as the manual tells how to. I set my VM guest to use vbox0 just as the manual tells how to. When I startup the guest it does not receive an IP address from the dhcp server.

My /etc/network/interfaces file

Code: Select all

auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
    bridge_ports eth0
I assumed this line was to be my username that I log on to the computer with. I run the program using the GUI.

Code: Select all

sudo VBoxAddIF vbox0 jwheaton br0
I have the networking set up to Host Interface Network and I made the interface vbox0. When I run ifconfig I can see vbox0 on my host. When I run ifconfig on the guest I see eth0 without an IP.
I tried to restart networking and that ended without getting a DHCP offer. Route also failed to bring up anything.

Where did I go wrong? I followed the manual as best as I knew how and I have even searched the internet for solutions, but what I found were not as simple as the manual. I want to get this working so I can show it to my company as an alternative to the overpriced commercial solution we use now.

Thanks for any help you are able to provide.[/code]
iansane
Posts: 25
Joined: 24. Aug 2008, 01:22

Post by iansane »

interesting. I'm on ubuntu 8.04 too. I'm having issues with connecting etho to a wireless but now that the vm's boot up without error from VB, I'm getting the same thing. No IP on a windows or linux vm. I tried manually entering the ip and gateway and still nothing.

If you go to terminal and type sudo /etc/init.d/networking restart, you should see error messages when it fails to get IP. I don't know enough to help really but that's where I'm at now. Hope we get some 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 »

Iansane, please see the VirtualBox FAQ for your issue. Wifi bridging is not supported by bridge_utils.

Jdwfly:
Take a look at my post history. I know, it's a long list, but I posted my full bridge config here before and it works just fine. DHCP is possible and both systems can access the whole network and internet.
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.
jdwfly
Posts: 3
Joined: 25. Sep 2008, 01:11

Post by jdwfly »

Do you think that you could narrow down to where you posted it? (what forum, maybe what topic) I really don't have time to read through all of your posts.

I still have the same issue with my br0 bridge working correctly but I can't get vbox0 to connect to it. I even tried restarting /etc/init.d/vboxnet but that does not show any errors. When I check /etc/vbox/interfaces I see vbox0 jwheaton br0 in there which means it should get set up with the vboxnet. Anyway, I don't see why I can follow the manual exactly and still not have it working.
jdwfly
Posts: 3
Joined: 25. Sep 2008, 01:11

Post by jdwfly »

Well I got lucky and found the post in 10 minutes.

The post can be found here...
http://forums.virtualbox.org/viewtopic.php?t=8398

I also uninstalled network manager. I heard that this could cause problems with it, but I don't know if that contributed to the solution. Anyway I have host interface networking working after much blood, sweat and travail. Thanks.
Post Reply