Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
Created October 30, 2024 11:54
Show Gist options
  • Save JurrianFahner/6197bbe4c33750b7e80a1092b0ec7030 to your computer and use it in GitHub Desktop.
Save JurrianFahner/6197bbe4c33750b7e80a1092b0ec7030 to your computer and use it in GitHub Desktop.
Ubuntu host on hyper-v

Found on superuser.com: https://superuser.com/a/1680613

prerequisites

sudo apt install linux-image-extra-virtual

change grub boot

Open grub configuraiton first:

sudo vi /etc/default/grub

Change line with GRUB_CMDLINE_LINUX_DEFAULT to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

Update grub:

sudo update-grub

Shutdown the linux virtual machine.

continue in powershell

set-vmvideo -vmname ubuntu -horizontalresolution 1920  -verticalresolution 1080 -resolutiontype single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment