How to install VirtualBox client extension on CentOS 8

VirtualBox is an open source, cross-platform virtualization software that allows you to run multiple guest operating systems (virtual machines) at the same time.

VirtualBox provides a series of drivers and applications (VirtualBox client extensions), which can be installed on the guest operating system to extend the functions of the guest, such as shared folders, shared pasteboards, mouse pointer integration, and more Good video support, etc.

This article explains how to install VirtualBox client extensions on CentOS 8 clients.

1. Install client extensions on CentOS clients##

VirtualBox comes with an ISO image called "VBoxGuestAdditions.iso", which contains the installation package of the client extensions for all supported guest operating systems. This file is placed on the host and can be mounted on the client using the VirtualBox graphics manager. Once the mount is complete, you can install these extensions on the client.

Follow the steps below to install the VirtualBox client extension on CentOS 8 desktop or server client.

  1. Open VirtualBox Graphics Manager

  2. Start CentOS guest virtual machine

  3. Log in as root or another sudo user, and install the necessary packages for building the kernel module:

sudo dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl
  1. From the menu on the virtual machine, click Devices -> "Insert Guest Additions CD Image", as shown below:

If you get an error message saying: There is no CD-ROM in the guest operating system, stop the virtual machine and open the virtual machine settings. On the "Storage" tab, add a new CD-ROM by clicking a plus sign (add optional devices). Once completed, restart the virtual machine.

  1. Open the CentOS client terminal, create a new directory, and mount the ISO file:
sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
  1. Navigate to the recently created directory, and execute the VBoxLinuxAdditions.run script to install the client extension:
cd /mnt/cdrom
sudo sh ./VBoxLinuxAdditions.run --nox11

The --nox11 option tells the installer not to open an xterm window.

The output is as follows:

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.16 Guest Additions for Linux..............
VirtualBox Guest Additions: Starting.
  1. Restart the CentOS client system for the modification to take effect:
sudo shutdown -r now
  1. Once the virtual machine starts, log in, and verify that the installation is successful, and use the lsmod command to verify that the kernel module has been loaded correctly.
lsmod | grep vboxguest

The output will look like this:

vboxguest             3481602 vboxsf

If the command does not display any output, it means that the VirtualBox kernel module is not loaded.

that's it. You have installed the VirtualBox client extension on your CentOS client machine.

Now you can enable shared pasteboards on the "Storage" tab of the virtual machine settings, drag and drop support, enable 3D acceleration on the "Display" tab, create shared folders, etc.

Two, summary##

Installing VirtualBox client extensions can improve the performance of the virtual machine and increase its usability.

To find more information about client extensions, please visit Official VirtualBox Client Extension Documentation Page.

Recommended Posts

How to install VirtualBox client extension on CentOS 8
How to install Virtualbox on CentOS 8
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install VirtualBox on Ubuntu 20.04
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
[Graphic] How to install tomcat on centos
R&D: How To Install Python 3 on CentOS 7
How to install offline JDK1.8 on centos7.0
How to install and configure Elasticsearch on CentOS 7
How to install Visual Studio Code on CentOS 8
How to install RPM packages on CentOS Linux
How to install and configure VNC on CentOS 8
How to install and configure Redis on CentOS 8
How to install Node.js and npm on CentOS 8
How to install and configure phpMyAdmin on CentOS 6
How to install and use Curl on CentOS 8
How to install and configure Owncloud on CentOS 8
How to install Docker CE on RHEL 8 / CentOS 8
How to install and uninstall tomcat on centos
How to install and configure Redmine on CentOS 8
install virtualbox on centos server
How to install and configure NFS server on CentOS 8
How to install and use Cockpit on CentOS 8/RHEL 8
How to quickly install docker on Linux (Centos version)