1 Overview
VirtualBox
Installation completeCentOS8
After 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:kernel
、kernel-core
、kernel-modules
、kernel-devel
、gcc
、make
、perl
、elfutils-libelf-devel
:
sudo yum install kernel kernel-core kernel-modules kernel-devel \
gcc make perl elfutils-libelf-devel
inspectkernel
Whether the source code is consistent with the kernel version:
ls /usr/src/kernels
uname -r
Inconsistencies are normal:
Because you need to restart at this time, select a new kernel version:
Then check again:
3 download enhancement tools
After checking, download the corresponding version ofVirtualBox
Here is the link stamp. For example, the author’s is this:
4 installation
After downloading, mount it, and click theDevices
NextInsert Guest Additions CD Images
And then you will be prompted as follows:
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
Then you can adjust the resolution freely.