https://decatec.de/home-server/ubuntu-server-18-04-lts-als-hyper-v-gastsystem-installieren-und-optimal-einrichten/apt-get updateapt-get upgradeapt-get dist-upgradeapt-get autoremovereboot nowapt-get updateapt-get install --install-recommends linux-virtualapt-get install linux-tools-virtual linux-cloud-tools-virtualreboot nowEdit 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-grubreboot nowadd-apt-repository main universe restricted multiverseIf 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-grubmodinfo hv netvscmodinfo hv storevscapt-get updateapt-get install linux-azureEdit sources.list ...
nano /etc/apt/sources.listAdd following lines ...
# Backports repositorydeb 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 releaseUpdate repository ...
aptitude updaterm -f /etc/apt/trusted.gpgapt-get install debian-keyringapt-get install debian-archive-keyringgpg --recv-keys 8B48AD6..........gpg --export 8B48AD6........... | apt-key add --apt-get updatehttp://kiele.de/blog-post/debian-9-stretch-public-key-fehler-bei-apt-get-update/