Host Only Networking Simple/Broken Vista/Ubuntu

Discussions related to using VirtualBox on Windows hosts.
Post Reply
bramankp
Posts: 3
Joined: 2. Aug 2009, 02:39
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu Linux

Host Only Networking Simple/Broken Vista/Ubuntu

Post by bramankp »

Running VirtualBox 3.0.2 on host Windows Vista 64 with guest Ubuntu Linux 64.

Setup: Adapter 1 is NAT. Adapter 2 is Host Only with configured static IP 192.168.2.1/24 (no DHCP). In Ubtuntu, eth0 is DHCP 10.0.2.15 and works to access the internet, as intended. The second interface, eth1, is configured static 192.168.2.2/24. For some reason, I can't ping between Vista and Ubuntu.

Quick background: I had actually set up Adapter 2 with some default IP address and DHCP then configured guest's second adapter as DHCP and it worked! I was able to ping back and forth and traffic worked fine. After leaving the OS for a while shopping I came back and networking was broken. Went to simple setup described above to see if that fixes things. It hasn't.

Is there something I'm missing here? It seems like it should be real simple.

Paul Braman


P.S. From VirtualBox, configuration of Host Only adapter is address: 192.168.2.1 mask 255.255.255.0. From /etc/network/interfaces, configuration of eth1 is static 192.168.2.2 mask 255.255.255.0.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Host Only Networking Simple/Broken Vista/Ubuntu

Post by Perryg »

I have not tested this out in my Ubuntu but did in XP and it works fine. I do know that in XP you only set the IP and subnet and not the gateway or DNS. At least for me and it all works as expected. I will test this on Ubuntu later and see what happens.
Post Reply