- Run
sudo vim /etc/default/grub
- Find
GRUB_CMDLINE_LINUX_DEFAULT
- Append
video=hyperv_fb:[the resolution you want]
, for example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
- Write the changes, quit Vim
- Run
sudo update-grub
- Run
sudo reboot
-
-
Save robert-claypool/af8670b8082e1df020f21fdf57244cbf to your computer and use it in GitHub Desktop.
For Debian 12, I had to change
video=hyperv_fb:...
tovideo=Virtual-1:...
and then select the desired resolution in the display settings.
Worked like a charm, thanks!
I my case all this didn't helped with Debian 12 but I found a solution on here:
https://forums.linuxmint.com/viewtopic.php?t=400584
Note: The VM must be turned off to change this setting!
You need the adjust the resolution of the VM in the HyperV VM-Settings with the following command:
set-vmvideo -vmname -horizontalresolution:xxxx -verticalresolution:xxxx -resolutiontype single
After that you can start the VM and first it will be still in 1980x1080 but after that you will find the resolution in your Debian Display Settings and can adjust it there.
Thanks anyway for all the other steps of the solution!
Thanks, I will give that a go and report back.