Page 1 of 1

Virtualbox - Windows Host - Bridging

Posted: 12. Sep 2008, 16:00
by j0natz
Hi,

First I'd like to introduce myself. My name is Jonas, I'm 26 years old and was born in Germany.

I'm having a Dell Latitude D420 which is running Ubuntu Linux 8.0.4.1.

I was using VMWare before but was told that VirtualBox is way more better.

So I uninstalled VMWare and got the VirtualBox.

I'm connecting the main OS with the following devices to a network:

eth0 and wlan0 both needs to be configured with DHCP.
I also have a 3G flat which is ppp0.

Right now I'm at work connected with eth0 and dhcp.

Ip is: 10.120.3.xxx
Subnetmask is: 255.255.0.0
Gatway is: 10.120.0.1
Dns is: 10.120.2.220

How do I get the guest OS to the same IP range with the same DNS and Gateway?

Do I have to use Brdiging? (Which is I assume Hostinterface?)

Hope somebody can help me as I have only to options:
Get back to VMWare or install Windows again as main OS.

Thanks and best regards!

Jonas
:roll:

Posted: 12. Sep 2008, 16:49
by TerryE
Hello and welcome to our forum.

Network setup is one area where VBox is a lot less user friendly and somewhat less functional than VMware. If you only need outbound services then by far the easiest choice is to use NAT and in this case configuration is easy. You can also do filesharing from the host using NAT. You csan also do explicit portmapping to allow limited connection into guest services.

However if you want to use inbound services you must bridge. You have to bridge to a specific host port. Bridging to a wired Enet port is straight forward and described in the manual. AFAIK, bridging to wireless ports just doesn't work with the current VBox versions.

Posted: 12. Sep 2008, 19:06
by j0natz
Hello again!

What I did was from the following thread: http://forums.virtualbox.org/viewtopic.php?t=4413.

It worked fine for me at work with a ethernet connection. I didn't tried wlan or the 3g connection as I thought it would be okay :)

Sadly It isn't. Now I'm at home and trying to connect with the laptop and I have no wlan0 and ppp0 anymore :)
tunctl -t tap1 -u axel&&brctl addbr br0&&ifconfig eth0 0.0.0.0 promisc&&brctl addif br0 eth0&&ifconfig br0 up&&dhclient br0&&brctl addif br0 tap1&&ifconfig tap1 up
I did it all one by one command and with sudo in front. Not sure if this was right but it worked after I have noticed to change the username :)

I'll surely check this forum in future before going nuts on linux...

Thanks again!

Kind regards

Jonas

Posted: 13. Sep 2008, 15:32
by j0natz
Hi,

sorry I found the error. During setup of Virtualbox I had to install a diffrent kernel.

Switching from the newly installed 2.6.25-19-386 kernel to the 2.6.24-19-generic ones everything works fine again but Virtualbox :)

Thanks again!

Jonas