{"id":8925,"date":"2021-05-27T22:12:15","date_gmt":"2021-05-27T19:12:15","guid":{"rendered":"https:\/\/kifarunix.com\/?p=8925"},"modified":"2024-03-18T22:19:40","modified_gmt":"2024-03-18T19:19:40","slug":"install-virtualbox-guest-additions-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-rocky-linux-8\/","title":{"rendered":"Install VirtualBox Guest Additions on Rocky Linux 8"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install VirtualBox guest additions on Rocky Linux 8. In our previous guide, we learnt how to<a class=\"rank-math-link\" href=\"https:\/\/kifarunix.com\/install-rocky-linux-8-on-virtualbox\/\" data-type=\"URL\" data-id=\"https:\/\/kifarunix.com\/install-rocky-linux-8-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u00a0<\/a><a href=\"https:\/\/kifarunix.com\/install-centos-8-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Rocky Linux 8 on VirtualBox<\/a>. However, it doesn\u2019t display in full-screen view by default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing VirtualBox Guest Additions on Rocky Linux<\/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 Rocky Linux 8<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install epel-release -y<\/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>Next, 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<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>kernel-devel-4.18.0-240.22.1.el8.x86_64<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>uname -r<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>4.18.0-240.22.1.el8.x86_64<\/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 VirtualBox Guest Additions<\/h3>\n\n\n\n<p>VirtualBox guest additions can be installed via the command line or via GUI.<\/p>\n\n\n\n<p>We will only discuss how to install VirtualBox guest additions via command line interface for now.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">VirtualBox guest additions via Command Line<\/h4>\n\n\n\n<p>Check the current version of your VirtualBox on your host;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>VBoxManage --version<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>6.1.22r144080<\/code><\/pre>\n\n\n\n<p>Download <a href=\"http:\/\/download.virtualbox.org\/virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">VirtualBox Guest Additions ISO file<\/a> of the same version as your installed VirtualBox.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget http:\/\/download.virtualbox.org\/virtualbox\/6.1.22\/VBoxGuestAdditions_6.1.22.iso -P \/tmp<\/code><\/pre>\n\n\n\n<p>Mount the guest addition iso under the&nbsp;<code>\/run\/media\/<\/code>&nbsp;directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mount \/tmp\/VBoxGuestAdditions_6.1.22.iso \/run\/media\/<\/code><\/pre>\n\n\n\n<p>Next, 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>Or simply run;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/run\/media\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Reboot Rocky Linux 8<\/h4>\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<p>If the system do not auto-resize the screen, toggle it  on the VM menu by clicking <strong>View<\/strong> &gt; <strong>Auto-resize Guest Display<\/strong>.<\/p>\n\n\n\n<p>And there you go.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"1010\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/05\/rocky-linux-guest-additions.png\" alt=\"Install VirtualBox Guest Additions\" class=\"wp-image-8926\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/05\/rocky-linux-guest-additions.png?v=1622141779 1914w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/05\/rocky-linux-guest-additions-768x405.png?v=1622141779 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/05\/rocky-linux-guest-additions-1536x811.png?v=1622141779 1536w\" sizes=\"(max-width: 1914px) 100vw, 1914px\" \/><\/figure>\n\n\n\n<p>Congratulations. You have successfully set the Rocky Linux 8 full-screen display on VirtualBox.<\/p>\n\n\n\n<p>You can now enable other features such as shared clipboard, drag and drop between the host and virtual machine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-21-04\/\">Install VirtualBox Guest Additions on Ubuntu 21.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-kali-linux-2020-3\/\">Install VirtualBox Guest Additions on Kali Linux 2020.3<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-fedora-31-32\/\">Install VirtualBox Guest Additions on Fedora 31\/32<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install VirtualBox guest additions on Rocky Linux 8. In our previous guide, we learnt how to\u00a0Install Rocky<\/p>\n","protected":false},"author":1,"featured_media":8929,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,46],"tags":[954,3584,3587,3586,3588,3585],"class_list":["post-8925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-virtualbox","tag-guest-additions","tag-install-guest-additions-on-rocky-linux-8","tag-rocky-linux-8","tag-rocky-linux-guest-additions","tag-virtualbox-full-screen","tag-virtualbox-guest-additions-rocky-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8925"}],"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=8925"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8925\/revisions"}],"predecessor-version":[{"id":21806,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8925\/revisions\/21806"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/8929"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=8925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=8925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=8925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}