- 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.
This no longer seems to work on Windows 10 using Client Hyper-V and Debian 12 guest.
For Debian 12, I had to change video=hyperv_fb:...
to video=Virtual-1:...
Thanks, I will give that a go and report back.
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!
Good job!!! But not all Debian distributions can do it without these lines and commands.
Add these lines to this file:
sudo nano /etc/initramfs-tools/modules
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
In terminal enter:
sudo apt-get install hyperv-daemons
sudo update-initramfs -u
Make a reboot:
reboot