Virtualbox 2.0.2 Host Interface Network on Ubuntu 8.0.4

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jwolach
Posts: 5
Joined: 23. Sep 2008, 17:32

Virtualbox 2.0.2 Host Interface Network on Ubuntu 8.0.4

Post by jwolach »

I recently installed Virtualbox 2.0.2 on my Ubuntu 8.0.4 computer. I configured Host Interface Network according to the on-line help docs. Everything worked just fine until I rebooted my computer.

When I logged into Ubuntu after the reboot, my Wired Ethernet connection stopped working. I took out the entries I put in for the bridge controller from my /etc/interfaces file and the connection was restored. Unfortunately, I can't use HIF anymore.

Has anyone experienced this?

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

I've seen it a couple of times here on the forum. When you create a bridge, you have to make sure that the physical connection is no longer getting an IP. Once you set that straight in your /etc/network/interfaces file, it should be ok. However, reports have been that Network Manager (the applet in the systemtray) can cause some problems with the connection as it can't seem to handle a bridge properly. Solution for that is to remove NM-applet and associated packages. You can manange you network from the interfaces file anyway.
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.
jwolach
Posts: 5
Joined: 23. Sep 2008, 17:32

Post by jwolach »

Thanks Sasquatch for the info. I have also read a couple of posts about creating Start and Stop scripts to have Virtualbox execute when the VM gets launched and shutdown. However, I can seem to get them to work. Do you have any of these scripts that work?

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

I don't need scripts, as everything works just fine for me.

You could try something like the following:

Code: Select all

## script for starting the vm
ifconfig eth0 0.0.0.0 #change eth0 to your physical wired connection)
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 vbox0
#if you use static addresses use the following line
ifconfig br0 <your static IP configuration>
#else, run dhclient for a DHCP address
dhclient br0

Code: Select all

## script for shutdown vm
brctl delif br0 vbox0
brctl delif br0 eth0
brctl delbr br0
#static address use this
ifconfig <static address info>
#DHCP config
dhclient eth0
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.
jwolach
Posts: 5
Joined: 23. Sep 2008, 17:32

Post by jwolach »

I just tried to run the scripts you sent and got this error. This is same error I got when I tried the other similar scripts.

----------------
Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
-----------------

What am I doing wrong?
jwolach
Posts: 5
Joined: 23. Sep 2008, 17:32

Post by jwolach »

Sasquatch,

I went ahead and took your advice and disabled the nm-applet and just created a Permanent Host Interface like in the helps docs. Everything worked great until I reboot. When I rebooted the machine I seemed to have lost my Internet connection. My eth0 & br0 have the same IP address and I can ping other devices on my network. I just can't get out to the Internet.

Can you suggest what I might be doing wrong?

Thanks...
jwolach
Posts: 5
Joined: 23. Sep 2008, 17:32

Post by jwolach »

It looks like I was able to fix my problem. I had to go into my network settings are take my NIC out of Roaming Mode and put in specific DNS IP addresses. It looks like Ubuntu defaulted to my router's IP for DNS.

Thanks
Post Reply