https://decatec.de/home-server/ubuntu-server-18-04-lts-als-hyper-v-gastsystem-installieren-und-optimal-einrichten/
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get autoremove
reboot now
apt-get update
apt-get install --install-recommends linux-virtual
apt-get install linux-tools-virtual linux-cloud-tools-virtual
reboot now
Edit bootloader ...
nano /etc/default/grub
And change to ...
GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop"
... to prevent Linux to use parallel I/O control instead of Hyper-V.
update-grub
reboot now
add-apt-repository main universe restricted multiverse
If you install Linux Mint inside a Hyper-V virtual machine, you automatically get all the integration components and virtualized drivers, including the Hyper-V video driver.
However, if you try to change the screen resolution inside your virtual machine you will notice something odd: There is only one choice!
Luckily, you can change the screen resolution. Just not here. What you need to do is:
Type: sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT
, and add video=hyperv_fb:[the resolution you want]
. The resolution I want is 1280x720. So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1280x720"
sudo update-grub
modinfo hv netvsc
modinfo hv storevsc
apt-get update
apt-get install linux-azure
Edit sources.list ...
nano /etc/apt/sources.list
Add following lines ...
# Backports repository
deb http://deb.debian.org/debian buster-backports main contrib non-free # available after buster release
#deb http://deb.debian.org/debian buster-backports-sloppy main contrib non-free # available after bullseye release
Update repository ...
aptitude update
rm -f /etc/apt/trusted.gpg
apt-get install debian-keyring
apt-get install debian-archive-keyring
gpg --recv-keys 8B48AD6..........
gpg --export 8B48AD6........... | apt-key add --
apt-get update
http://kiele.de/blog-post/debian-9-stretch-public-key-fehler-bei-apt-get-update/