A Bridge to the Cloud...

Oracle VM VirtualBox 6.1: Fix VM screen resizing on Oracle Linux 8

Simon Coter
Senior Manager, Oracle Linux and Virtualization Product Management

Automated Screen resizing is one of the great features available with Oracle VM VirtualBox; this is related to the option to get the Virtual Machine display resolution and sizing 

To Configure a VM to use VirtualBox 6.1 3D acceleration:

  • Make sure you install the VirtualBox 6.1.[latest] Guest Additions into the Guest Machine (Oracle Linux on this example)
  • Enable 3D acceleration in the VM settings
  • Select "VMSVGA" as "Graphic Controller"

Then simply start-up your Oracle Linux 8 guest (same is valid for Red Hat Enterprise Linux 8 and CentOS 8).

Install VirtualBox Guest Additions (same release of VirtualBox is the best choice):

  • Verify "Kernel Headers" are installed and available on your virtual machine

# dnf install kernel-uek-devel -y

On Red Hat Enterprise Linux 8 / CentOS 8:

# dnf install kernel-devel -y

  • Install "glx-utils" package on the system, required to then run quick 3d test

# dnf install glx-utils -y

  • On the Virtual Machine Menu-Bar select "Devices => Insert Guest Additions CD Image"

and click on "Run" to proceed to install VirtualBox Guest Additions.

  • Edit the GDM configuration file to uncomment "Wayland" parameter and get the same enabled (/etc/gdm/custom.conf); the file should look like:

[root@ol8u1-uek6 ~]# cat /etc/gdm/custom.conf

# GDM configuration storage [daemon]

# Uncoment the line below to force the login screen to use Xorg


  • Reboot your system and test 3d performance with "glxgears" command

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.