Hyper-V Linux Integration Service on Ubuntu 16.04 LTS

H

If you are running a hyper-v server with an Ubuntu 16.04 guest, it is beneficial to install the Linux Integration Services (LIS). This is comparable to VMware tools which provides a connection between the host and the VM for proper reboots etc.

To enable this on your guest operating system we need to edit the module files located in:

nano /etc/initramfs-tools/modules

Once you are in nano add the following to the end of the file:

hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

Save the file.

Next we are going to install the linux virtual tools and reinitialize the modules file.

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

Once the machine has rebooted the LIS drivers will be enabled on the system.


 

Update:

All that has to be done now is this one apt-get command:

 

apt-get install linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial

About the author

5 comments

  • Surprised at how much on the web indicates this is useful, but how little gives details of how to do it… Looking to handle this on 18.04 server, but finding no references. If you are able to update this for 18.04, it would be very helpful.

By Nick

Recent Posts