{"id":4315,"date":"2019-09-30T19:59:29","date_gmt":"2019-09-30T16:59:29","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4315"},"modified":"2024-03-12T21:59:57","modified_gmt":"2024-03-12T18:59:57","slug":"install-virtualbox-guest-additions-on-centos-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-centos-8\/","title":{"rendered":"Install VirtualBox Guest Additions on CentOS 8"},"content":{"rendered":"\n<p>In our previous guide, we learnt how to <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-centos-8-on-virtualbox\/\" target=\"_blank\">Install CentOS 8 on VirtualBox<\/a>. However, it doesn&#8217;t display in full-screen view by default. This guide will take you through how to install VirtualBox guest additions on CentOS 8 to enable you have a full-screen view.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing VirtualBox Guest Additions on CentOS 8<\/h2>\n\n\n\n<p>The Guest Additions offer the following features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mouse pointer integration<\/li>\n\n\n\n<li>Shared folders for easy sharing of files between the host and the guest<\/li>\n\n\n\n<li>Ensures better and accelerated video performance.<\/li>\n\n\n\n<li>Seamless windows integration<\/li>\n\n\n\n<li>Generic host\/guest communication channels that enables you to control and manage guest execution.<\/li>\n\n\n\n<li>Provides Host-Guest time synchronization.<\/li>\n\n\n\n<li>Shared clipboard between host and guest vm.<\/li>\n\n\n\n<li>Automated logins.<\/li>\n<\/ul>\n\n\n\n<p>Read more on VirtualBox Guest addition features on the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/download.virtualbox.org\/virtualbox\/6.0.8\/UserManual.pdf\" target=\"_blank\">VirtualBox User Manual<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Kernel Headers and Required Build Tools<\/h3>\n\n\n\n<p>After mounting ISO file, be sure to install the kernel headers and required build tools. Some of the required tools are available on the EPEL repos, hence begin by installing the EPEL repos on CentOS 8<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install epel-release<\/code><\/pre>\n\n\n\n<p>Next, install the kernel headers and build tools by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install dkms kernel-devel kernel-headers gcc make bzip2 perl elfutils-libelf-devel<\/code><\/pre>\n\n\n\n<p>Before you can proceed, ensure that the version of&nbsp;<strong>kernel-devel<\/strong>&nbsp;installed does match the version of your running&nbsp;kernel. You can verify by running the commands below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rpm -q kernel-devel<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>uname -r<\/code><\/pre>\n\n\n\n<p>If they do not match, update your kernel by running;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf update kernel-*<\/code><\/pre>\n\n\n\n<p>Next, reboot the system and verify the kernel versions again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Guest Additions<\/h3>\n\n\n\n<p>Now, proceed to install guest additions on CentOS 8.<\/p>\n\n\n\n<p>VirtualBox guest additions can be installed via the command line or via GUI<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Guest Additions via the Terminal<\/h4>\n\n\n\n<p>To install VirtualBox guest additions via the terminal, you need to mount the guest additions image file by executing the command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo mount \/dev\/cdrom \/run\/media\/<\/code><\/pre>\n\n\n\n<p>This will mount the guest addition installers under the <code>\/run\/media\/<\/code> directory.<\/p>\n\n\n\n<p>Hence, navigate to the mount directory and execute the Linux guest addition installer<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/run\/media\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>.\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>Once the installation completes, reboot the system to effect the changes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Guest Additions via the GUI<\/h4>\n\n\n\n<p>Click&nbsp;<strong>Devices<\/strong>&nbsp;&gt;&nbsp;<strong>Insert Guest Additions CD image<\/strong>&nbsp;on the Menu bar to mount the VirtualBox guest addition iso file on a CentOS 8 VM.<\/p>\n\n\n\n<p>While mounting the guest additions image, you are prompted whether to automatically run the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/install-guest-additions-iso.png\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"600\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/install-guest-additions-iso.png\" alt=\"Install VirtualBox Guest Additions on CentOS 8\" class=\"wp-image-4316\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/install-guest-additions-iso.png?v=1569862349 801w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/install-guest-additions-iso-768x575.png?v=1569862349 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/a><\/figure>\n\n\n\n<p>Click run and authenticate so as to run the installer with administrative privileges (If you are logged in as non-root user).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/authenticate.png\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"570\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/authenticate.png\" alt=\"\" class=\"wp-image-4317\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/authenticate.png?v=1569862375 783w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/authenticate-768x559.png?v=1569862375 768w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/a><\/figure>\n\n\n\n<p>Once the installation completes, reboot the system to effect the changes.<\/p>\n\n\n\n<p>When the system boots, you should be on full-screen view.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/full-screen-view.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1360\" height=\"685\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/full-screen-view.png\" alt=\"VirtualBox CentOS 8 full screen view\" class=\"wp-image-4318\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/full-screen-view.png?v=1569862390 1360w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/09\/full-screen-view-768x387.png?v=1569862390 768w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/a><\/figure>\n\n\n\n<p>Congratulations. You have successfully set the CentOS 8 full-screen display on VirtualBox.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/autostart-virtualbox-vms-on-system-boot-on-linux\/\" target=\"_blank\">AutoStart VirtualBox VMs on System Boot on Linux<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-debian-10-buster\/\" target=\"_blank\">Install VirtualBox Guest Additions on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-and-configure-endian-firewall-on-virtualbox\/\" target=\"_blank\">Install and Configure Endian Firewall on VirtualBox<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-virtualbox-extension-pack-on-virtualbox-6-0\/\" target=\"_blank\">Install VirtualBox Extension Pack on VirtualBox 6.0<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-fedora-30-workstation-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Fedora 30 Workstation on VirtualBox<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous guide, we learnt how to Install CentOS 8 on VirtualBox. However, it doesn&#8217;t display in full-screen view by default. This guide will<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,46],"tags":[1142,1026,954,24],"class_list":["post-4315","post","type-post","status-publish","format-standard","hentry","category-virtualization","category-virtualbox","tag-centos-8","tag-full-screen-display","tag-guest-additions","tag-virtualbox","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4315"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=4315"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4315\/revisions"}],"predecessor-version":[{"id":21207,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4315\/revisions\/21207"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=4315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}