Skip to content

Instantly share code, notes, and snippets.

@geraldurbas
Created November 16, 2022 17:57
Show Gist options
  • Save geraldurbas/b3a13f0de668d1cf5bac2137fe76991a to your computer and use it in GitHub Desktop.
Save geraldurbas/b3a13f0de668d1cf5bac2137fe76991a to your computer and use it in GitHub Desktop.
Set Screen Resolution for Ubuntu in Hyper V Machines
nano /etc/default/grub
Change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160" ### use practical resolution
GRUB_CMDLINE_LINUX="quiet splash video=hyperv_fb:3840x2160" ### use practical resolution
update-grub
apt install linux-image-extra-virtual
Powershell as Admin
set-vmvideo -vmname ubuntu -horizontalresolution:3840 -verticalresolution:2160 -resolutiontype single
set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment