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
o.k. but what does this let me do?
It allows you to properly integrate the guest OS (linux) with Hyper-V so you can do production checkpoints etc.
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.
Sure, I will try my best to write a new updated article on how to do it when I get a chance!
Jeff, would also love something like that. Microsoft preached good Hyper-V support for Ubuntu 18.04 and did not deliver!
If you `apt install linux-tools-virtual linux-cloud-tools-virtual` instead of the above recommendation, the package manager should automatically pick the correct version for you.