Auto-resize screen in Virtualbox guest Linux system

To enable auto-resizing screen resolution for Linux guest you should use VBoxVGA virtual graphics controller(Machine Settings - Display - Graphics Controller).

This is tricky part, because “Create Virtual Machine” dialog by default chooses VMSVGA controler for new Linux machines.

Documentation says that VBoxSVGA is best controller type with improved performane, but for me screen auto-resize doesn’t work with it either.

And of course, you should install virtualbox-guest utils and video drivers on the guest host. For Ubuntu/Debian they are in this packages:

sudo apt install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

Or, if you use HWE kernel:

sudo apt install virtualbox-guest-dkms-hwe virtualbox-guest-utils-hwe virtualbox-guest-x11-hwe

Now reboot the guest and screen auto-resizing(View - Auto-resize guest display) will work fine.



License: This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License Share: share on reddit share on hacker news share on facebook share on twitter share on linkedin share on slashdot

No comments

You today

Comments are closed