A virtual machine with Ubuntu, this system deployed on Hyper-V. And it is impossible to change the screen resolution using standard tools. But the necessary parameters can be set via the console (all commands are executed as root):
- Open grub settings: nano /etc/default/grub
- Search next line: GRUB_CMDLINE_LINUX_DEFAULT and add video=hyperv_fb:1920×1080, where 1920×1080 – resoluton we need. We get: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=hyperv_fb:1920×1080″
- Apply new settings by running the command update-grub
- Reboot system
# sudo nano /etc/default/grub
# sudo update-grub
# sudo reboot