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

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post by Sasquatch »

The easiest is NAT. Else Host Interface, or Bridged now, is what you need.
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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post by Cooperdale »

Thanks.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post by Cooperdale »

NAT doesn't work with Windows XP though, or am I mistaken?
Nazgulled
Posts: 96
Joined: 15. Mar 2009, 06:44

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

Post 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...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
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.
Cooperdale
Posts: 19
Joined: 9. Apr 2009, 14:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8

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

Post 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.
rctay
Posts: 3
Joined: 2. May 2009, 07:12
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Ubuntu, openSUSE, Fedora

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

Post 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.
Post Reply