Ubuntu – Why can’t I connect ubuntu 19.04 installed on windows 10 Hyper-v to the internet

19.04hyper-vwindows 10

I quick installed ubuntu on windows 10 hyper-v, it has a default virtual network adapter along with the virtual switch but it doesn't want to connect to the internet.

Best Answer

I know this is old but deserves an answer.

  • Go to network adapters and settings
  • Right click the adapter that is giving you internet
  • Click properties
  • Click the tab Sharing
  • Check the box allow other network users to connect through this computers internet connection

Doing this will also give your machine a 192.168 address instead of a 172.17

I am assuming, by default, it will not let you connect to the outside world, unless you choose external. I usually create an internal adapter, apply these settings, give it the IP address range I want through powershell. Then give the vm a static IP address.

Hopefully this helps someone.