{"id":13512,"date":"2022-07-19T21:12:47","date_gmt":"2022-07-19T18:12:47","guid":{"rendered":"https:\/\/kifarunix.com\/?p=13512"},"modified":"2024-03-09T16:18:35","modified_gmt":"2024-03-09T13:18:35","slug":"install-virtualbox-guest-additions-on-rocky-linux-9","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-rocky-linux-9\/","title":{"rendered":"Install VirtualBox Guest Additions on Rocky Linux 9"},"content":{"rendered":"\n<p>Follow through this tutorial to learn how to install VirtualBox guest additions on Rocky Linux 9. We are installing the VirtualBox Guest additions on Rocky Linux 9 Desktop.<\/p>\n\n\n\n<p>You can check;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-rocky-linux-9-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Rocky Linux 9 on VirtualBox<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install VirtualBox Guest Additions on Rocky Linux 9<\/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 9<\/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-code\"><code>dnf update --refresh -y<\/code><\/pre>\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<figure class=\"wp-block-table\"><table><tbody><tr><td>rpm -q kernel-devel<\/td><td>uname -r<\/td><\/tr><tr><td>kernel-devel-5.14.0-70.13.1.el9_0.x86_64<\/td><td>5.14.0-70.13.1.el9_0.x86_64<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">compare kernel version numbers<\/figcaption><\/figure>\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<h4 class=\"wp-block-heading\">VirtualBox guest additions on Rocky Linux 9 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.34r150636<\/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.34\/VBoxGuestAdditions_6.1.34.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.34.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<p>Sample installation output;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\nVerifying archive integrity... All good.\nUncompressing VirtualBox 6.1.34 Guest Additions for Linux........\nVirtualBox Guest Additions installer\nCopying additional installer modules ...\nInstalling additional modules ...\nVirtualBox Guest Additions: Starting.\nVirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel \nmodules.  This may take a while.\nVirtualBox Guest Additions: To build modules for other installed kernels, run\nVirtualBox Guest Additions:   \/sbin\/rcvboxadd quicksetup <version>\nVirtualBox Guest Additions: or\nVirtualBox Guest Additions:   \/sbin\/rcvboxadd quicksetup all\nVirtualBox Guest Additions: Building the modules for kernel \n5.14.0-70.13.1.el9_0.x86_64.\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Reboot Rocky Linux 9<\/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<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-11.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"987\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-11.png\" alt=\"Install VirtualBox Guest Additions on Rocky Linux 9\" class=\"wp-image-13514\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-11.png?v=1658253484 1914w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-11-768x396.png?v=1658253484 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-11-1536x792.png?v=1658253484 1536w\" sizes=\"(max-width: 1914px) 100vw, 1914px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Congratulations. You have successfully set the Rocky Linux 9 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<p>That concludes our guide on how to install VirtualBox Guest Additions.<\/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-kali-linux-2021-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Kali Linux 2021.3<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-debian-11\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Debian 11<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-rocky-linux-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Rocky Linux 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow through this tutorial to learn how to install VirtualBox guest additions on Rocky Linux 9. We are installing the VirtualBox Guest additions on Rocky<\/p>\n","protected":false},"author":1,"featured_media":13514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,46,36],"tags":[5569,5571,5570],"class_list":["post-13512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-virtualbox","category-virtualization","tag-install-virtualbox-guest-additions-on-rocky-linux-9","tag-rocky-linux-9-guest-additions","tag-virtualbox-guest-additions-rocky-linux-9","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\/13512"}],"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=13512"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13512\/revisions"}],"predecessor-version":[{"id":20586,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13512\/revisions\/20586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/13514"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=13512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=13512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=13512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}