Update 2023
virtualbox-guest-dkms
is no longer required.
I noticed a lot of the answers here are from 2010 and haven't been updated.
As @Julian Wagner pointed out:
If you run sudo apt install virtualbox-guest-dkms
, you will get the error
Unable to locate package virtualbox-guest-dkms.
The correct solution for this is to ensure scaled mode is disabled on VirtualBox (View > Scaled Mode
).
Then, after installation is completed, it's as simple as right-clicking on the desktop, going into Display Settings
and selecting your preferred resolution.