[LINUX] Install CentOS7 VirtualBox Guest Additons

at first

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

0. Preparation

--CentOS network settings --Set VirtualBox's network adapter to "bridge connection". --IPv4, DNS settings, etc.

CentOS 7 network settings

1. Update the Linux Kernel

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. WS000001.JPG

2. Installation of required packages

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 ...)

3. Guest Additions Insert CD image

At the top of VirtualBox, select "Device"-> "Insert Guest Additions CD Image". WS000000.JPG That's it!

Recommended Posts

Install CentOS7 VirtualBox Guest Additons
Steps to install VirtualBox on CentOS
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
CentOS8 --Install --Django
CentOS8 --Install --Python3
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Start CentOS 8 using VirtualBox
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Installation on CentOS8 VirtualBox
Install awscli on centos7
Install Chainer on CentOS 6.7
[CentOS7] Install anaconda using pyenv
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Install Python 3.7 and Django 3.0 (CentOS)
Install Chrome on CentOS 7 series
Install Python 3.8 on CentOS 8 (AppStream)
Steps to install MySQL 8.0 on CentOS 8.1
Steps to install Ubuntu in VirtualBox
Install java (Oracle JDK14) on CentOS7
[Linux] I installed CentOS on VirtualBox
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Install Python on CentOS using Pyenv
How to install Maven on CentOS
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv