The process of installing Ubuntu in Hyper-V is like installing any OS. Once the OS is installed you need to add the Hyper-V tools for Linux to get the most out of your Linux guest.
If you are using the non-LTS version of Ubuntu run the following commands:
- sudo apt-get install Linux-virtual
- sudo apt-get install Linux-tools-virtual Linux-cloud-tools-virtual
If you are using the 16.04 LTS version of Ubuntu you will need to run the following commands:
- sudo apt-get install –install-recommends Linux-virtual-lts-xenial
- sudo apt–get install —install–recommends linux–tools–virtual–lts–xenial linux–cloud–tools–virtual–lts–xenial