If you are using Hyper-V and running a Ubuntu 16.04 guest, you may not be aware that Microsoft provides Linux Integration Services (LIS), which are basically Microsoft’s version of VMware Tools. In this article we will detail how to enable LIS on our Ubuntu 16.04 virtual machine. The first step is to edit the “modules” file located in /etc/initramfs-tools using the below command:

nano /etc/initramfs-tools/modules

Once in nano, navigate to the last line in the file and enter the following lines:

hv_vmbus hv_storvsc hv_blkvsc hv_netvsc

Save the file by hitting the ctrl + x and then issuing “y” for yes and then enter. Next, run the following commands to re-initialize the “modules” file, install the virtual tools and reboot the machine:

apt-get install --install-recommends linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial update-initramfs -u reboot