Change VirtualBox VM Screen Size – Quick Guide
In this article
Yes, you can change the screen size of a VirtualBox virtual machine by installing Guest Additions and adjusting the display settings inside the guest OS.
What You’ll Need
- Oracle VirtualBox installed on your host computer (Windows, macOS, or Linux).
- The virtual machine you want to resize, powered off or running.
- VirtualBox Guest Additions ISO (included with VirtualBox; you do not need to download anything extra).
- Administrative rights inside the guest operating system (e.g., sudo on Linux or Administrator on Windows).
Step‑By‑Step
- Start the virtual machine. If you are working with a fresh install, you can begin with the VM powered off; the steps work either way.
- Insert the Guest Additions CD image. In the VirtualBox window, choose Devices > Insert Guest Additions CD image…. The exact wording may vary slightly by version, but the menu path remains the same.
- Inside the guest OS, open the CD drive.
- Windows guest: Open File Explorer, double‑click the VirtualBox Guest Additions drive, then run VBoxWindowsAdditions.exe. Accept the prompts and let the installer finish.
- Linux guest: Open a terminal, mount the CD if it is not auto‑mounted (e.g.,
sudo mount /dev/cdrom /mnt), then runsudo sh /mnt/VBoxLinuxAdditions.run. The script will compile the necessary kernel modules.
- Reboot the guest OS after the installation completes. This ensures the new drivers and services are loaded.
- Enable automatic resizing. In the VirtualBox menu, select View > Auto‑Resize Guest Display. When this option is checked, the guest OS will automatically adjust its resolution to match the size of the VirtualBox window.
- Manually set a custom resolution if you need a specific size.
- Windows guest: Right‑click the desktop, choose Display settings, and select the desired resolution from the dropdown. The new resolution list will include options provided by Guest Additions.
- Linux guest (X11): Open a terminal and run
xrandr --output VBOX0 --mode 1920x1080, replacing VBOX0 with the actual output name shown byxrandr. For persistent settings, add the command to your desktop environment’s startup scripts.
- If you prefer a fixed window size, disable auto‑resize (View > Auto‑Resize Guest Display) and then drag the VirtualBox window to the exact dimensions you want. The guest OS will keep the resolution you set in step 6.
- Save the configuration. In the VirtualBox Manager, select the VM, click Settings > Display, and adjust the Video Memory slider to at least 128 MB for high‑resolution displays. Also ensure Scale Factor is set to 100 % unless you need UI scaling.
- Test the new size. Open a few applications inside the guest to verify that windows and fonts render correctly at the chosen resolution.
Common Mistakes
Skipping the Guest Additions installation is the most frequent error; without it the VM cannot change resolution dynamically. Another pitfall is forgetting to allocate enough video memory, which leads to a black screen or flickering when you select a high resolution. Users also sometimes enable HiDPI scaling in the host OS while leaving the guest at a low DPI, resulting in blurry text.
Tips
- Use the VirtualBox Extension Pack if you need additional display features such as USB‑3.0 or RDP support; it does not affect screen size directly but improves overall performance.
- For Linux guests running Wayland, Guest Additions may not provide full resolution control. In that case, switch to an X11 session or use the
VBoxManage setextradatacommand to define custom video modes. - When you need a non‑standard resolution (e.g., 1440×900), add it manually with
VBoxManage setextradata "VM name" "CustomVideoMode1" "1440x900x32"before starting the VM. - If you frequently switch between monitors with different DPI settings, keep the Scale Factor at 100 % and let the guest OS handle DPI scaling.
Troubleshooting
If the screen stays at the default 800×600 resolution:
- Confirm Guest Additions are installed. In Windows, check Control Panel > Programs and Features for "VirtualBox Guest Additions". In Linux, run
lsmod | grep vboxguestto see if the module is loaded. - Make sure the Auto‑Resize Guest Display menu item is checked. If the option is grayed out, the VM may be running in Safe Mode or the display driver is not loaded.
- Increase video memory in the VM settings (minimum 128 MB). Low video memory prevents the guest from accepting larger modes.
- Update VirtualBox to the latest stable version. Older versions sometimes have bugs with high‑resolution displays.
- On Linux guests, verify that the
vboxvideoorvboxsfmodules are active. If they are missing, reinstall Guest Additions and reboot. - If you added a custom video mode with
VBoxManage setextradata, double‑check the syntax and that the mode number matches the one you use withxrandr.
If the VM window becomes black after resizing:
- Reduce the selected resolution to a lower value and apply it again.
- Disable 3‑D acceleration under Settings > Display > Acceleration. Some guest OSes have compatibility issues with VirtualBox’s 3‑D implementation.
- Check the host’s graphics driver for updates; an outdated driver can cause rendering glitches in VirtualBox.
Frequently Asked Questions
Do I need to reinstall Guest Additions after every Windows update?
Usually no. Guest Additions remain functional across Windows updates, but if you notice resolution loss after a major update, reinstalling the latest Guest Additions can restore full functionality.
Can I change the screen size while the VM is paused?
Auto‑resize works only when the VM is running. You can adjust the window size while paused, but the guest OS will not receive a new resolution until you resume.
Why does the Linux guest show a "VMSVGA" driver instead of "VBoxVGA"?
Recent VirtualBox versions default to the VMSVGA graphics controller for better compatibility with modern Linux distributions. It still supports Guest Additions, but you may need to install the virtualbox-guest-x11 package for optimal performance.
Is it possible to set a resolution larger than my host monitor?
Yes, you can define virtual resolutions larger than the host screen. The VM will display a scrollable virtual desktop, or you can use the VirtualBox "Scale Mode" (View > Scale Mode) to view the oversized desktop on the host.
How do I make the VM remember the custom resolution after a reboot?
On Windows, set the desired resolution in Display Settings and click "Apply"; Windows stores it. On Linux, add the xrandr command to your desktop environment’s startup script or use a persistent .xprofile file.
Does enabling "Auto‑Resize Guest Display" affect performance?
Performance impact is minimal. The feature only changes the video mode when the window size changes; it does not continuously redraw the screen.