Created
November 16, 2022 17:57
-
-
Save geraldurbas/b3a13f0de668d1cf5bac2137fe76991a to your computer and use it in GitHub Desktop.
Set Screen Resolution for Ubuntu in Hyper V Machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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