How to Change the Screen Resolution on VirtualBox in Debian
- 1). Open VirtualBox, and boot Debian as normal.
- 2). Click "Devices," "Install" and "Guest Additions" from the VirtualBox window. Click "Applications," "Accessories" and "Terminal" in the Debian system to open a terminal.
- 3). Type "sudo /media/cdrom/VBoxLinuxAdditions.run" to install VirtualBox guest additions into Debian. Reboot the virtual machine to activate the drivers.
- 4). Type "sudo gedit /etc/X11/xorg.conf" to open xorg.conf in a text editor with the ability to modify the file.
- 5). Add the following under "Display" "Section "Screen:""
Identifier "Default Screen"
Device "VirtualBox graphics card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
Modify the resolution by changing "Modes" to whatever resolution you need. Click "File" and "Save" to save your changes. Reboot the virtual machine into the new resolution.
Source...