Windows 8 and 8.1 Forums


Cannot connect to Internet in Virtual Machine

  1. #1

    Cannot connect to Internet in Virtual Machine


    In Windows 8 Pro I have created a virtual machine using Win XPSP3. I've tried everything I can to get an internet connection for my VM. I'm not on a network so I've created an external virtual switch. I've tried using both the legacy adapter and a network adapter. I've tried changing the IP address -even tried a DNS address but the best I've achieved so far is "limited or no Connectivity". I also tried Win 7 Home Premium VM with the same result - no internet connection.
    The virtual manager should set this up automatically but doesn't so if anyone has any ideas, I'd like to hear them.

      My System SpecsSystem Spec

  2. #2


    A Finnish ex-pat in Leipzig, Germany
    Posts : 1,452
    Windows 8.1 Pro with Media Center


    Hi Gramcam, welcome to the Eight Forums.

    That sounds like if your virtual switch is connected to a NIC which is offline:

    Click image for larger version
    (Click to enlarge.)

    Check this tutorial to see how to connect a host NIC to a virtual switch, screenshot in Part 2 step 3: https://www.eightforums.com/attachmen..._switch_03.png

    Kari
      My System SpecsSystem Spec

  3. #3


    Hi Kari,

    Thanks for the advice. I followed the tutorial to the letter but it didn't work, I still havee little or no connectivity.
    I'll keep looking.

    Quote Originally Posted by Kari View Post
    Hi Gramcam, welcome to the Eight Forums.

    That sounds like if your virtual switch is connected to a NIC which is offline:

    Click image for larger version
    (Click to enlarge.)

    Check this tutorial to see how to connect a host NIC to a virtual switch, screenshot in Part 2 step 3: https://www.eightforums.com/attachmen..._switch_03.png

    Kari
      My System SpecsSystem Spec

  4. #4


    A Finnish ex-pat in Leipzig, Germany
    Posts : 1,452
    Windows 8.1 Pro with Media Center


    Can you access internet normally from your host?

    Hyper-V and its virtual switches are quite straight forward: if properly set up, they will work.

    Most common errors for no network connection are:
    - Virtual Switch is not connected to a physical network adapter on host
    - Host NIC which virtual switch is using is offline, not connected to network
    - External switch accidentally set as private or internal

    You could try deleting your switch and the XP vm's network adapter. Then create a new external switch, connect it to a NIC which is not already used by another switch. Now go to vm's settings and create a new legacy network adapter, connect your new switch to it.

    It should work.

    Kari
      My System SpecsSystem Spec

  5. #5


    Thanks Kari,

    I can connect to the internet with no problems. I have a dual boot (two HD's) and both connect fine through the same on board adapter.
    I will try your recommendation and let you know. Have to leave my computer just now. I'm sure it's something relatively simple that I'm doing wrong but I'll get there.
      My System SpecsSystem Spec

  6. #6


    Hi Kari,
    I decided to start from scratch. Deleted my VM and it's folders and rebuilt it following the tutorial and your advice.
    Again limited or no connectivity. Using CMD and ipconfig, I noticed that the IP address started with 94 when my ISP stsrts with 96. I changed the IP settings manually including DNS, which I use on my normal OS's. Again Limited or no etc. I rebooted but this time it showed "trying to connect" which went on for a long time so I clicked repair. A message came back that windows could not finish repairing the IP address but at the same time my internet connection showed "connected".
    My sudden elation was short lived because when I treid to get to Google using Internet Explorer it came back that the page could not be displayed, so I tried Bing, MSN etc with the same result. Looking at the connection status, packets were being sent but none were being received.
    I tried another repair but this time I got a warning symbol stating that "There is an IP address conflict with another system on the network" and I was back to limited or no connectivity. Curiouser and curiouser!

    Well I'm close to solving my problem but it appears that the IP address that my VM wants to use isn't the IP address of my ISP.
    I have only one NIC in my computer which is an onboard Realtek gigabit family PCIe ethrenet controller and it has worked flawlessly since I built this machine.

    Any new external virtual switch I've created finds it immediately and it connects to my virtual Legacy controller with no problem. sharing is enabled and as far as I can tell everything is as it should be.

    Any other thoughts would be appreciated.

    Gramcam
      My System SpecsSystem Spec

  7. #7


    A Finnish ex-pat in Leipzig, Germany
    Posts : 1,452
    Windows 8.1 Pro with Media Center


    Sorry the delay, life has been quit busy lately.

    Delete your external switch and then follow instructions in this post to create a new one: hyper-v - error in creating external virtual switch

    in case of any error messages following the above mentioned instructions, please post the exact messages here or post the PowerShell command window showing error message as screenshot.

    Kari
      My System SpecsSystem Spec

  8. #8


    Hafnarfjörður IS
    Posts : 4,376
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Hi there
    I've found some generic REALTEK GIGABIT controllers just don't work properly when the HOST is a 64 bit system and the guest is a 32 bit system.

    The Virtual NIC just plain gives problems. As a test if you have a USB Wireless adapter can you try that and then see if your VM can connect to the internet.

    Another test -- although it will take a little time - convert the VM to VMware format and try and see if using the FREE VMware player if the vm can connect -- try NAT first and then Bridged connection.

    If either or both these tests work then your gigabit Ethernet controller isn't compatible when creating the virtual switch.

    I've always found that an INTEL cheap 1000 pro NIC works in every case. Onboard generic Ethernet controllers are really problematic to debug especially the REALTEK gigabite generic set. -- they all have different chipsets in them so getting the correct driver is a pure lottery.

    A decent NIC card only costs a few dollars these days so I'd go for a new one if you are going to use Virtual machines with HYPER-V. (If you build a new rig you can swap the card too).

    I had a similar problem when trying to use ESXi on a "White Box". I couldn't get the switch to work until I replaced the NIC with the INTEL one - and it worked first go --mind you ESXi is a lot more hardware "picky".

    Another suggestion -- do you have any Firewalls / settings on your Router which prohibits traffic from anything other than specific machines / addresses etc.

    I'm not quite sure of your set up here when you say you have "No network". Presumably the GUEST and HOST are linked in some way via the LAN. I assume the HOST connected to your Router and is the Internet Gateway.

    I've also assumed you are using HYPER-V for the VM -- otherwise if not what is your Virtualisation software.

    Any chance of posting your physical hardware configuration layout

    Cheers
    jimbo
    Last edited by jimbo45; 15 Mar 2013 at 04:51.
      My System SpecsSystem Spec

  9. #9


    A Finnish ex-pat in Leipzig, Germany
    Posts : 1,452
    Windows 8.1 Pro with Media Center


    Quote Originally Posted by jimbo45 View Post
    Another test -- although it will take a little time - convert the VM to VMware format and try and see if using the FREE VMware player if the vm can connect -- try NAT first and then Bridged connection.

    If either or both these tests work then your gigabit Ethernet controller isn't compatible when creating the virtual switch.
    If OP wants to test using VMware Player, the Hyper-V must be first completely uninstalled. VMware Player cannot be installed on systems running Hyper-V.

    Kari
      My System SpecsSystem Spec

  10. #10


    Hafnarfjörður IS
    Posts : 4,376
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Quote Originally Posted by Kari View Post
    Quote Originally Posted by jimbo45 View Post
    Another test -- although it will take a little time - convert the VM to VMware format and try and see if using the FREE VMware player if the vm can connect -- try NAT first and then Bridged connection.

    If either or both these tests work then your gigabit Ethernet controller isn't compatible when creating the virtual switch.
    If OP wants to test using VMware Player, the Hyper-V must be first completely uninstalled. VMware Player cannot be installed on systems running Hyper-V.

    Kari
    Hi there
    True -- but you can do this from Control panel Programs and features --it's a relatively easy process to uninstall HYPER-V, install VMware player / workstation and then reverse the process. You don't lose any og your HOST windows applications.

    Cheers
    jimbo
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Cannot connect to Internet in Virtual Machine
Related Threads
Virtual machine in Virtualization
I have a laptop which is my main computer with Windows 8.1. My desktop has Windows 7. I was thinking about putting the beta version of 10 on a virtual machine on my desktop. But I read somewhere that it should not go on a virtual machine and that I should just install it over Windows 7 on my...
How do you remove a virtual machine from VMware player? When I looked in the help menu, It says that you can remove the title from the Library list, But the machine is still there. Do you just delete the folder that it's in? That doesn't seem the correct way to do it. I want to redo my Windows 10...
Virtual Machine Issues in Virtualization
Hi Folks: In the near future, I'm hoping to run the Consumer Preview of Threshold, so I'm attempting to get Windows 8.1 installed now to ensure that I'm ready and working. Plus I'd like to play around a bit with Windows 8.1. I've realized that my system and my processor in particular won't...
Hi Iam using Windows Virtual PC which was a 64-Bit version I installed, I got XP Home 32-Bit installed via it perfectly and tried to install Windows 8 x64 AND THEN Windows 8.1 x64 but on both I got the BSOD (in the Virtual Machine) almost straight away saying 64-bit CPU is not supported? ive...
Solved Virtual Machine Questions in Virtualization
My current computer’s OS is Windows 8 64bit. I’ve been doing a little reading about virtual machine software. I’m not a computer geek but know just enough to be dangerous. Basically what I would like to do is install the hard drive from my old computer into my new one. I have some old rare and...
Hello, I've created a Virtual Machine in HyperV. When trying to connect to the virtual machine from the HyperV Manager after 1 minute I receive an error message: "Cannot connect to the virtual machine. Try to connect again. If the problem persists, contact your system administrator". I dont...
Virtual Machine Experiment in Chillout Room
I'v been messing with Linux virtual machines lately, and decided to experiment a bit : Windows 7 x64 HOST ---> LinuxMint x64 Virtual machine ---> Windows 8 CP x86 Virtual Machine This is a VMWARE Player + Virtual Box combination. Looks like I have a way to go yet.....:D 3959
Eight Forums Android App Eight Forums IOS App Follow us on Facebook