VirtualBox centos8 adjust resolution

Time:2021-2-23

1 Overview

VirtualBoxInstallation completeCentOS8After that, the resolution cannot be adjusted and additional tools need to be installed.

2. Install dependency package

First, make sure that the virtual machine is connected to the network, and then install:kernelkernel-corekernel-moduleskernel-develgccmakeperlelfutils-libelf-devel

sudo yum install kernel kernel-core kernel-modules kernel-devel \
gcc make perl elfutils-libelf-devel 

inspectkernelWhether the source code is consistent with the kernel version:

ls /usr/src/kernels
uname -r

Inconsistencies are normal:

VirtualBox centos8 adjust resolution

Because you need to restart at this time, select a new kernel version:

VirtualBox centos8 adjust resolution

Then check again:

VirtualBox centos8 adjust resolution

3 download enhancement tools

After checking, download the corresponding version ofVirtualBoxHere is the link stamp. For example, the author’s is this:

VirtualBox centos8 adjust resolution

4 installation

After downloading, mount it, and click theDevicesNextInsert Guest Additions CD ImagesAnd then you will be prompted as follows:

VirtualBox centos8 adjust resolution

Run it, and the output in the figure below indicates success (if it fails, please refer to the log file)(/var/log/vboxadd-setup.log)Locate the problem and solve it yourself

VirtualBox centos8 adjust resolution

Then you can adjust the resolution freely.