Page 1 of 1

Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 14:26
by Cooperdale
I have a Windows XP guest on a Vista 64 host and I was wondering if it is possible to have internet connectivity on the guest using the new host-only adapter.

My host is connecting to the internet with a router by the way. I've tried configuring the new host-only virtualbox network in the host so that the internet connection is shared, but since the host doesn't have his own connection but is using the router's, this doesn't work and actually blocks internet traffic on the host too.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 15:03
by Sasquatch
The easiest is NAT. Else Host Interface, or Bridged now, is what you need.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 15:07
by Cooperdale
Thanks.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 15:50
by Cooperdale
NAT doesn't work with Windows XP though, or am I mistaken?

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 16:19
by Nazgulled
You can use host-only interface to have internet the same way as I do it... Have a local proxy server installed in the host computer and then just use the proxy server in the guest. I use 3proxy for this...

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 17:20
by Sasquatch
If NAT fails, you run a firewall that blocks it. See the VirtualBox FAQ for problematic programs.

With HIF, you can install the MS Loopback adapter (also in the FAQ) and use Internet Connection Sharing on it. Might work, might be blocked by your firewall.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 19:00
by Cooperdale
Sasquatch wrote:If NAT fails, you run a firewall that blocks it. See the VirtualBox FAQ for problematic programs.

With HIF, you can install the MS Loopback adapter (also in the FAQ) and use Internet Connection Sharing on it. Might work, might be blocked by your firewall.
Actually, I'm not using any of the firewalls listed on the faq, just the vista firewall. But I am using my router's firewall too, I guess it might be that.
I will try out the MS Loopback.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 19:34
by Cooperdale
Nothing, I can't seem to get a web connection working on the XP guest, bridged networking doesn't work at all for me with the latest version. The host's connections to be bridged aren't listed, there's no connection in the list.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 20:45
by Cooperdale
Can someone help? There are many changes in the new version and I can't get internet working on the xp guest anymore.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 21:13
by vbox4me2
With 2.2 did you do a re-install with repair?

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 21:59
by Cooperdale
No, I just installed Virtualbox over the old one. Since it detected the old install folder, I thought no further action was needed.

Re: Is it possible to have internet with host-only adapter?

Posted: 9. Apr 2009, 22:48
by Sasquatch
As you can read in the other topics, there are some issues with Host interface installing correctly. A repair fixes that. Please do that, then reboot and see how it goes. Should work.

Re: Is it possible to have internet with host-only adapter?

Posted: 10. Apr 2009, 10:28
by Cooperdale
Sasquatch wrote:As you can read in the other topics, there are some issues with Host interface installing correctly. A repair fixes that. Please do that, then reboot and see how it goes. Should work.
I have done that, and now I can select the physical net interfaces on the host when I choose bridged networking. But still I have no internet access on the XP guest, while it's there on the host. I also tried to bridge the host-only interface with my internet lan connection, I configured the bridge and I have internet on the host but still no internet on the guest.

Re: Is it possible to have internet with host-only adapter?

Posted: 16. May 2009, 11:51
by rctay
Hi,

I'm using VirtualBox 2.2.2, and I've tried bridged networking on a XP host, with Internet access and DHCP-assigned IP addresses for virtual guests. I don't work behind a router. This may or may not work on Vista for you.

1. Install Microsoft Loopback Adapter, and install the VirtualBox Bridged Networking Driver for that device.

2. Configure your "real" physical connection to allow Internet Connection Sharing, and select the loopback adapter you installed earlier.

3. Configure your firewall. It might block DHCP, DNS and other traffic from your virtual guests.

You're all set. Configure the guest virtual settings to use Bridged networking, and choose the loopback adapter. The guest should use DHCP to get its IP address automatically. On my XP box, ICS provides a DHCP server, and all addresses are *only* on 192.168.0.*.

PS. If I'm not wrong, this is what the user manual describes as Host-only networking. When I do use that adapter, it doesn't work.