Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set up Ubuntu 14.04 on hyper-v in Windows 8.1. I also have an external network switch linked to Ethernet. The internet and LAN works fine on my host windows 8.1 PC. But I am not able to use internet on Ubuntu hyper-v, although I am able to use LAN(internal network of my organization) on Ubuntu hyper-v.

Please help me resolving the issue.

share|improve this question
up vote 3 down vote accepted

I've read a lot of articles about this issues, and many claim to share the internet connection of the wifi adapter to solve the issue. This did not work in my case. What did work for me, and it should answer your question:

  1. Created an internal virtual switch under Hyper-V.

    1. Open "Hyper V Manager"
    2. Select "Virtual Switch Manager"
    3. Under New Virtual Switch, select "Internal"
    4. Select "Create Virtual Switch"
  2. Shutdown the Ubuntu VM

  3. Add a legacy adapter with the internal virtual switch that was just created in step 1.

  4. Open "Network and Sharing Center"

  5. Select "Change Adapter Settings".

  6. Select your Wifi Adapter and the Virtual Switch you just made, right click menu option "Create Bridge"

  7. Start the Ubuntu VM

  8. Login to Ubuntu

  9. Wait a minute, the connection should connect...

share|improve this answer
It works, Thank you – asitis Jan 29 at 13:14
What does step 3 mean? Add a legacy adapter? – CornSmith May 13 at 4:41
Step 3 really needs more information... – DeadPassive Jun 7 at 8:22

After following above steps you should be able to connect but if you are seeing that your host (Windows) and guest (Ubuntu) have same IP Addresses, you may not be able to connect Internet from guest machine:

You can follow below steps to switch to manual IP settings to make it work, as that helped me :)

  1. Run ipconfig /all on windows command prompt and note: a) IPv4 Address (may also found it suffixed preferred) b) DNS Server IP Address c) Subnet Mask d) Default Gateway
  2. Open "Network and Sharing Center" and select "Change Adapter Settings"
  3. Take your virtual switch vEthernet adapter out of the bridge (if found bridged)
  4. Go to properties of virtual switch
  5. You will found option Internet Protocol Version 4 (TCP/IPv4) under listbox
  6. Go to properties of IPv4 option it will open another dialog box
  7. Go to Alternate Configuration
  8. Select User configured option
  9. You can put an IP address of your choice here. Easier way is to change last portion of IP address (with some higher number) noted at step 1-a and put here. e.g. if my IPv4 IP address at step 1-a is, I will put here.
  10. Put address noted at step 1-c in field Subnet Mask
  11. Put address noted at step 1-d in field Default gateway
  12. Put address noted at step 1-b in field Preferred DNS server
  13. You can leave other fields
  14. Click ok and come out of IPv4 properties and vEthernet properties dialog box.
  15. Bridge it again
  16. Log into Ubuntu hyper-v machine
  17. Go to Network via Unity
  18. You should see Wired network connected otherwise wait for couple of minutes. (If no wired option is visible there please select Auto Ethernet once from top right desktop menu option)
  19. Click-on Options button that will open dialog box
  20. Go to IPv4 Settings tab
  21. Select Method as Manual
  22. Put IP Address that you have configured in virtual switch (vEthernet) adapter. As per example it should be
  23. Put subnet mask (step 1-c) & default gateway (step 1-d) under Netmask and Gateway field respectively.
  24. Put DNS Server IP Address in DNS servers field.
  25. Check Require IPv4 addressing..... option
  26. Save and close the dialog boxes
  27. This has given a fixed IP Address to your Ubuntu machine. You should be able to ping Default gateway from Ubuntu machine and connect the internet.
share|improve this answer
Welcome to Ask Ubuntu! ;-) You are allowed to edit existing answers and improve them! A reviewer like me will then review your edits and approve them if deemed valuable! Please don't add partial answers as answers here! ;-) – Fabby Apr 3 at 23:10
Configuring a static IP worked for me when the DHCP wouldn't work. – John Atwood Apr 20 at 20:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.