Page 1 of 1

virtualbox host-only adapter doesn't work anymore

Posted: 16. Jul 2009, 22:51
by jakab
Hi

host os: Debian Lenny
guest os: any
virtualbox version: 3.0.2

I have a vodafone usb stick, ok.
I want to make network for the guest os so it could have internet connection, and can see the other guest operating systems.

So:

1) I set the guest os networking to "host-only adapter (vboxnet0)".

2) I give a few iptables rules, etc:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

3) I boot the guest os, and it get's an ip....but I just can't ping e.g.: google.com.....

Why? It worked fine in VirtualBox 2.2. Is it a bug? Or I'm just missing something?

regards, and thank you: jakab

Re: virtualbox host-only adapter doesn't work anymore

Posted: 17. Jul 2009, 16:53
by Perryg
Setup a second adapter in the guest using NAT.

Re: virtualbox host-only adapter doesn't work anymore

Posted: 17. Jul 2009, 19:42
by Sasquatch
Or just use only NAT. The Guest needs a DNS server and you probably failed to set one. The Host can't resolve DNS names by default, you have to install a DNS server for that function. So either do that, or provide the Guest with the same DNS server the Host gets from the dial-up connection.