Windows 7 Forums


Windows 7: VirtualBox Host-Only Network Not connecting to the Internet

20 Mar 2012   #1

Windows 7 Home Premium 64bit
 
 
VirtualBox Host-Only Network Not connecting to the Internet

Hey guys,

I'm having a little trouble setting up two virtual machines connecting to the internet. I've setup a Windows Server 2008 R2, and Windows 7 virtual machine with host-only networking on their own subnet.

I'm having issues with getting them to connect to the outside network for internet access. Both machines are on their own subnet 192.168.2.0/24 and the host machine on subnet 192.168.1.0/24.

Both vm's are on Internal Network Mode and the Windows Server 2008 machine has a static ip of 192.168.2.2, but no default gateway or dns because i have no idea what to put in there. Do i put in the IP of the VirtualBox Host-only adapter as the default gateway?



This is where im having trouble with. I have DHCP setup on the Server VM and the Windows 7 VM can get an ip from the Server but neither can communicate out to the internet.

I'm lost and i need your help to set this up. I have included a network diagram to for clarity.

http://i.imgur.com/wGmtY.jpg
My System SpecsSystem Spec

21 Mar 2012   #2

Windows 7 Pro x86
 
 

The behaviour you are experiencing is due to the fact that there is no routing happening between the VBox HO adapter and the physical NIC that is connected to the internet. That is the nature of host-only networking and the routing will not happen by accident.

You can establish routing with your current configuration by using Internet Connection Sharing to share your real network adapter to the HO adapter, but the ICS default settings will mean that your VM static IPs will be wrong. Changing the default ICS settings requires editing the registry and instructions for that can easily be found elsewhere.

> Do i put in the IP of the VirtualBox Host-only adapter as the default gateway?

Yes, but it won't achieve anything until such times as there is a route from the HO adapter.

To be honest you'd probably be better off using NAT or Bridged networking.
My System SpecsSystem Spec
22 Mar 2012   #3

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
Hertfordshire
 
 

There is quite a good description of what each type of networking does in the VirtualBox Help->help Contents. Chapter 6 is what you want.
My System SpecsSystem Spec
.


22 Mar 2012   #4

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by emiljan View Post
I'm having a little trouble setting up two virtual machines connecting to the internet. I've setup a Windows Server 2008 R2, and Windows 7 virtual machine with host-only networking on their own subnet.
The networking is host only, meaning that the VM's will ONLY be able to talk to each other. They won't be able to talk to the Internet. Sounds like you really wanted bridged or NAT instead of Host only.
My System SpecsSystem Spec
23 Mar 2012   #5

Windows 7 Home Premium 64bit
 
 

Thank You for the replies. But i decided to use VmWare Workstation instead because it supports multiple subnets and it seems to run much better than VirtualBox did.
My System SpecsSystem Spec
23 Mar 2012   #6

Windows 7 Ultimate x64
 
 

Well, I would expect VMWare Workstation to run better and offer more benefits, as it's a $200 application and VirtualBox is free. Honestly, I really like VMWare Workstation 8. I'm the VM guy at work, and I just recently purchased VMWare Workstation 8 and am happy with my decision. Helps me to more easily build more complex labs and try some tricky stuff.
My System SpecsSystem Spec
Reply

 VirtualBox Host-Only Network Not connecting to the Internet problems?



Thread Tools



Similar help and support threads for: VirtualBox Host-Only Network Not connecting to the Internet
Thread Forum
Virtualbox on windows7 host xp guest can not connect to the internet Virtualization
Laptop connecting to network but not internet Network & Sharing
Solved Virtualbox Host-Only Network Virtualization
PC keeps Identifying network and not connecting to the internet, HELP! Network & Sharing
PC keeps Identifying network and not connecting to the internet, HELP! Network & Sharing


All times are GMT -5. The time now is 09:33 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32