none
Windows 8 Hyper-V: XP Virtual Machine loses default gateway when using a VPN client.

    Question

  • Hi All.

    I am having some frustrating issues. I am running Windows 8 and have hyper-v installed. I have a Windows XP virtual machine which works great for the most part. I have a virtual switch setup that uses the NIC on the Windows 8 machine and is set to External.

    Sometimes for my job I need to use a VPN client such as Cisco VPN client. When I use the VPN client on my Windows XP virtual machine it usually works for random intervals. Sometimes I can be working an hour, other times 10 minutes, and then the virtual machine seems to lose network connectivity. I am unable to connect to the internet on the virtual machine and the VPN connection obviously drops. During this time I notice the default gateway on the virtual machine is listed as blank, there is nothing there when doing ipconfig. If I wait a few minutes and run a repair on the adapter it eventually comes back.

    Does anyone have any experience with this? I love the virtual machines otherwise, I just cant seem to solve this issue. I have tried upgrading my drivers to the latest and it doesn't have any effect, and it only seems to happen when using VPN connections.

    Tuesday, October 08, 2013 3:04 AM

All replies

  • That is pretty much the expected behavior as the VPN client will take over your network connection and route everything through the VPN.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Milton Goh

    Tuesday, October 08, 2013 3:11 AM
  • Sorry I don't really follow. The virtual machine will just lose its connectivity to everything, including the VPN. Even though those host can still browse the internet fine. It does work as desired 80 percent of the time but as mentioned these random dropouts keep happening forcing me to lose time constantly reconnecting. The only thing I have found is the virtual adapter loses its gateway during this time. When everything is working fine that gateway is filled in, even when connected to a VPN.
    Tuesday, October 08, 2013 3:25 AM
  • Hi, 

    I experience the same issue as you before. It is because once you are connected through the VPN, all traffic is being forced to go through the VPN tunnel. 

    Although I may not simulate the exact situation as you, what I did was as workaround will be,-

    Create another Virtual Machine and make the VPN connection within the newly created VM. 

    Cheers.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Milton Goh

    Tuesday, October 08, 2013 3:27 AM
  • But then what would be stopping the new virtual machine from experiencing the same issue if I just simply create a new one?
    Tuesday, October 08, 2013 3:31 AM
  • The reason why I did that was,-

    To connect the VPN only within the Virtual Machine and not through the Host.

    Just my 2 cents.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Milton Goh

    Tuesday, October 08, 2013 3:32 AM
  • This is the reason I have my current machine, to use these VPN's. I don't use the VPN on the host
    Tuesday, October 08, 2013 3:53 AM
  • Sorry, I think I misunderstood. Are you trying to say,-

    1) You have a Windows 8 computer, you run Hyper-V

    2) You load a Virtual Machine running Windows XP using Hyper-V

    3) You connect to the VPN via the Windows XP computer 

    4) Assuming you are running Bridge mode on Hyper-V for both the Virtual Machines, right?

    -

    Then you experience problem even on your host?



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Milton Goh
    MCSE, MCSA, MCITP, MOF, ITIL, AIIM SharePoint Specialist

    Blog | Twitter

    Tuesday, October 08, 2013 5:24 AM
  • The host is Windows 8. I have a Windows XP virtual machine. Occasionally when on the Windows XP machine and using a VPN connection the windows XP machine will become unable to connect to the internet and the internet will drop and so does the VPN obviously. It then takes me resetting the XP adapter to get it responsive again. The Windows 8 machine stays working during this time.
    Tuesday, October 08, 2013 10:29 AM