networking - Windows 8 Hyper-V Guest VM Internet Access

04
2013-08
  • Cory Plastek

    I'm running Windows 8 Pro, and I've enabled Hyper-V in order to run a few Windows virtual machines on my workstation. For the guest VMs, I'd like them to be able to have access to network resources outside of the host network, including the internet.

    Here's what I've tried so far:

    1. I've set up an Internal network in the Hyper-V Switch Manager, and shared the NIC that has internet access with the new virtual switch via Internet Connection Sharing

    2. Then, I created a VM and assigned the Internal virtual switch to that VM's network adapter. The VM then gets an IP address in the 192.168.137.x range, with the gateway, DHCP server and DNS server set to 192.168.137.1.

    The Windows Server 2012 VM says it's not connected to the internet, and I'm not able to open any webpages on the guest. The host OS has internet access via Ethernet during this time (not trying to use a Wi-Fi connection with this setup), and the switch is configured to allow the guest and host OS to use it simultaneously.

    I've followed closely to the steps lined out in three related questions, but I don't see anything I should change:

    Any suggestions on what I should try or change next?

  • Answers
  • Cory Plastek

    It's working, although I'm not exactly sure which of the below steps actually fixed my issue:

    1. Before creating an internal network, I had created an external network. I deleted this network and re-created the internal network.
    2. Disabled and re-enabled both the physical NIC and virtual NIC.
    3. Removed and then re-enabled Internet Connection Sharing.

    I was trying quite a few things to get this to work, and somehow I've stumbled upon it now.


  • Related Question

    networking - Networks of Guest OS in Hyper-V
  • ziyuang

    My host system is connected to a network where the IP addresses are static and need users to apply for them. Further, one IP (in use) is binded with one mac-address. On the other hand, I found that Hyper-V directly change my ethernet card into a virtual one, not like the case in VirtualBox, where there will be an extra card. Now I don't know how to configure the network in the guest OS, since there is no DHCP and no applicable static IPs (as in VirtualBox, I usually set the new virtual card as the gateway for guest OS). I've tried to configure the two OS with the same IP and mac-address, as well as set my IP address as the gateway of guest OS, but both do not work. Can anyone cast light on how to setup the network properly? Thank you~


  • Related Answers
  • Joe Internet

    Microsoft has a whitepaper titled Understanding Networking with Hyper-V.