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

Discussions related to using VirtualBox on Windows hosts.

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

Postby Cooperdale » 9. Apr 2009, 14:26

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.
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?

Postby Sasquatch » 9. Apr 2009, 15:03

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

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

Postby Cooperdale » 9. Apr 2009, 15:07

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?

Postby Cooperdale » 9. Apr 2009, 15:50

NAT doesn't work with Windows XP though, or am I mistaken?
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?

Postby Nazgulled » 9. Apr 2009, 16:19

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...
Nazgulled
 
Posts: 96
Joined: 15. Mar 2009, 06:44

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

Postby Sasquatch » 9. Apr 2009, 17:20

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

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

Postby Cooperdale » 9. Apr 2009, 19:00

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?

Postby Cooperdale » 9. Apr 2009, 19:34

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?

Postby Cooperdale » 9. Apr 2009, 20:45

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?

Postby vbox4me2 » 9. Apr 2009, 21:13

With 2.2 did you do a re-install with repair?
vbox4me2
Volunteer
 
Posts: 5222
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

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

Postby Cooperdale » 9. Apr 2009, 21:59

No, I just installed Virtualbox over the old one. Since it detected the old install folder, I thought no further action was needed.
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?

Postby Sasquatch » 9. Apr 2009, 22:48

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

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

Postby Cooperdale » 10. Apr 2009, 10:28

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.
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?

Postby rctay » 16. May 2009, 11:51

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


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 38 guests