If you enable ** Guest Additions ** in VirtualBox, the mouse cursor can move seamlessly inside and outside the virtual machine window (default is to press the right Ctrl key to get out), and the window size can be changed. If you change it, the resolution will change automatically. In this article, I will explain how to install the ** Guest Additions ** (in the case of CentOS7).
--Environment - VirtualBox6.1 --Host OS (the one running VirtualBox): Windows10 --Guest OS (the one running on VirtualBox): CentOS7 (GUI environment)
Outline
procedure | |
---|---|
0 | Preparation |
1 | Update Linux Kernel |
2 | Installation of required packages |
3 | Guest Additions Inserting a CD image |
--CentOS network settings --Set VirtualBox's network adapter to "bridge connection". --IPv4, DNS settings, etc.
When CentOS starts up, start up Terminal, first switch user su -
and enter the path. Become the root user.
Then update the Kernel with yum update kernel
.
If the command execution fails at this time, it may be because you cannot connect to the network, so if not, set it.
You will be asked "Is this ok" several times on the way, so let's "y" and enter.
If "Complete!" Is displayed, it is OK.
You need to reboot here, so let's reboot
.
After restarting, ↓ There are more Kernels that can be newly selected at the top like this, so select it.
Also log in as the root user. Install the packages.
# yum -y install bzip2 elfutils-libelf-devel gcc kernel-devel kernel-headers make perl tar
If "Complete!" Is displayed, it is successful. If you are asked for other packages, you can follow the instructions (I think ...)
At the top of VirtualBox, select "Device"-> "Insert Guest Additions CD Image". That's it!
Recommended Posts