Software & AppsOperating SystemLinux

How To Fix Ubuntu 20.04 VM Screen Resizing Issue in VirtualBox

Ubuntu 8

If you’re using Ubuntu 20.04 on VirtualBox and are experiencing issues with screen resizing, this article is for you. We will cover three potential solutions to this problem: changing the graphics controller, reinstalling Guest Additions, and upgrading VirtualBox.

Quick Answer

To fix the Ubuntu 20.04 VM screen resizing issue in VirtualBox, you can try changing the graphics controller to VBoxSVGA and disabling 3D acceleration. If that doesn’t work, reinstalling Guest Additions or upgrading VirtualBox may solve the problem.

Changing Graphics Controller

The first solution involves changing the graphics controller in VirtualBox. Here’s how you do it:

  1. Open VirtualBox and select the Ubuntu 20.04 VM.
  2. Click on Settings and then on the Display section.
  3. In the Graphics Controller dropdown menu, select VBoxSVGA.
  4. Make sure the Enable 3D Acceleration option is unchecked.
  5. Click OK to confirm the changes.

The VBoxSVGA controller is known to handle screen resizing better than the default VMSVGA controller. Disabling 3D acceleration can also help prevent screen resizing issues.

Reinstalling Guest Additions

If changing the graphics controller doesn’t solve the problem, try reinstalling Guest Additions. Here’s the step-by-step process:

  1. Start your Ubuntu VM and uninstall the current Guest Additions. You can do this by running the following command in the terminal:
sudo apt-get remove virtualbox-guest-utils

This command removes the virtualbox-guest-utils package, which includes the Guest Additions.

  1. Power off your VM.
  2. Download an older version of Guest Additions, such as version 6.1.2, from the Oracle website.
  3. Start your VM and mount the Guest Additions CD image.
  4. Open the terminal and navigate to the root of the CD image by running:
cd /media/cdrom
  1. Run the install script with the following command:
sudo ./

This command runs the script, which installs the Guest Additions.

  1. If your VM Graphics Controller is set to VBoxSVGA, power off the VM and select VMSVGA as the Graphics Controller in the Display settings. Enable 3D Acceleration and confirm the changes.
  2. Restart the VM and automatic screen resizing should work now.

Upgrading VirtualBox

If the previous solutions don’t work, consider upgrading VirtualBox. Using an outdated version of VirtualBox can sometimes cause screen resizing issues. Here’s how to upgrade:

  1. Open your host machine’s terminal or command prompt.
  2. Run the following command to add the Oracle VirtualBox repository to your system:
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) contrib"
  1. Update your system’s package list with:
sudo apt-get update
  1. Finally, upgrade VirtualBox with:
sudo apt-get install virtualbox-6.1

This command installs VirtualBox version 6.1, which is the latest stable version at the time of writing.

Remember to always back up your VM before making any changes. Also, ensure you have the latest updates and patches installed. If you’re still experiencing issues after trying these solutions, consider seeking help from the VirtualBox forums.

We hope this guide was helpful. If you have any questions or suggestions, feel free to leave a comment below. Happy virtualizing!

What is VirtualBox?

VirtualBox is a virtualization software that allows you to run multiple operating systems on a single host machine.

How do I install VirtualBox?

To install VirtualBox, you can visit the official VirtualBox website and download the installer for your operating system. Once downloaded, run the installer and follow the on-screen instructions to complete the installation.

Can I run Ubuntu 20.04 on VirtualBox?

Yes, you can run Ubuntu 20.04 on VirtualBox. VirtualBox supports a wide range of operating systems, including various versions of Ubuntu.

What are Guest Additions?

Guest Additions are a set of drivers and utilities that enhance the performance and usability of the guest operating system running inside a VirtualBox VM. It provides features like automatic screen resizing, shared folders, and seamless mouse integration.

How do I install Guest Additions?

To install Guest Additions, start your VirtualBox VM and go to the "Devices" menu. Select "Insert Guest Additions CD image" option. This will mount the Guest Additions CD image inside your VM. From there, you can navigate to the mounted CD image and run the install script to install Guest Additions.

How can I check the version of VirtualBox I am using?

You can check the version of VirtualBox by opening VirtualBox and going to the "Help" menu. From there, select "About VirtualBox" and a dialog box will appear displaying the version information.

Can I upgrade VirtualBox without losing my VMs?

Yes, upgrading VirtualBox should not affect your VMs. However, it is always recommended to back up your VMs before performing any major updates or upgrades.

Where can I find more help or support for VirtualBox?

If you need further assistance or have specific questions about VirtualBox, you can visit the official VirtualBox website or join the VirtualBox forums where you can find a community of users and experts who can help you with your queries.

Leave a Comment

Your email address will not be published. Required fields are marked *