{"id":15568,"date":"2023-03-03T00:37:27","date_gmt":"2023-03-02T21:37:27","guid":{"rendered":"https:\/\/kifarunix.com\/?p=15568"},"modified":"2024-03-10T08:36:21","modified_gmt":"2024-03-10T05:36:21","slug":"install-virtualbox-guest-additions-on-almalinux","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-almalinux\/","title":{"rendered":"Install VirtualBox Guest Additions on AlmaLinux"},"content":{"rendered":"\n<p>Follow through this tutorial to learn how to install VirtualBox guest additions on AlmaLinux. We are installing the VirtualBox Guest additions on AlmaLinux Desktop.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-virtual-box-guest-additions-on-alma-linux\">Installing VirtualBox Guest Additions on AlmaLinux<\/a><ul><li><a href=\"#install-kernel-headers-and-required-build-tools\">Install Kernel Headers and Required Build Tools<\/a><\/li><li><a href=\"#installing-virtual-box-guest-additions-on-alma-linux-1\">Installing VirtualBox Guest Additions on AlmaLinux<\/a><ul><li><a href=\"#install-virtual-box-guest-additions-via-gui\">Install VirtualBox Guest Additions via GUI<\/a><\/li><li><a href=\"#install-virtual-box-guest-additions-via-command-line\">Install VirtualBox Guest Additions via Command Line<\/a><\/li><li><a href=\"#reboot-alma-linux\">Reboot AlmaLinux<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-virtual-box-guest-additions-on-alma-linux\">Installing VirtualBox Guest Additions on AlmaLinux<\/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\" id=\"install-kernel-headers-and-required-build-tools\">Install Kernel Headers and Required Build Tools<\/h3>\n\n\n\n<p>A successful installation of kernel headers on AlmaLinux requires kernel headers and other build tools. Thus, 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 AlmaLinux<\/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 installed version of&nbsp;<strong>kernel-devel<\/strong> matches 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><strong><code>rpm -q kernel-devel<\/code><\/strong><\/td><td><code><strong>uname -r<\/strong><\/code><\/td><\/tr><tr><td>kernel-devel-5.14.0-162.18.1.el9_1.x86_64<\/td><td>5.14.0-162.6.1.el9_1.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;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl reboot -i<\/code><\/pre>\n\n\n\n<p>and verify the kernel versions again.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong><code>rpm -q kernel-devel<\/code><\/strong><\/td><td><code><strong>uname -r<\/strong><\/code><\/td><\/tr><tr><td>kernel-devel-5.14.0-162.18.1.el9_1.x86_64<\/td><td>5.14.0-162.18.1.el9_1.x86_64<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">compare kernel version numbers<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-virtual-box-guest-additions-on-alma-linux-1\">Installing VirtualBox Guest Additions on AlmaLinux<\/h3>\n\n\n\n<p>VirtualBox guest additions can be installed via the command line or via GUI.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#install-virtual-box-guest-additions-on-alma-linux-via-gui\">Install VirtualBox Guest Additions via GUI<\/a><\/li>\n\n\n\n<li><a href=\"#install-virtual-box-guest-additions-on-alma-linux-via-command-line\">Install VirtualBox Guest Additions via CLI<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-virtual-box-guest-additions-via-gui\">Install VirtualBox Guest Additions via GUI<\/h4>\n\n\n\n<p>To install VirtualBox guest additions via GUI, on the VM menu, click <strong>Device > Insert Guest Additions CD Image<\/strong>&#8230;<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/insert-guest-additions-iso-almalinux.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1916\" height=\"1030\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/insert-guest-additions-iso-almalinux.png\" alt=\"Install VirtualBox Guest Additions on AlmaLinux\" class=\"wp-image-15611\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/insert-guest-additions-iso-almalinux.png?v=1677789463 1916w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/insert-guest-additions-iso-almalinux-768x413.png?v=1677789463 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/insert-guest-additions-iso-almalinux-1536x826.png?v=1677789463 1536w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>The installer then prompts you whether to run it.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/run-guest-additions-installer.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1109\" height=\"808\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/run-guest-additions-installer.png\" alt=\"Install VirtualBox Guest Additions on AlmaLinux\" class=\"wp-image-15613\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/run-guest-additions-installer.png?v=1677789833 1109w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/run-guest-additions-installer-768x560.png?v=1677789833 768w\" sizes=\"(max-width: 1109px) 100vw, 1109px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Confirm the same and proceed to install VirtualBox guest additions;<\/p>\n\n\n\n<p>Once the installation is done, reboot the system;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl reboot -i<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-virtual-box-guest-additions-via-command-line\">Install 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>7.0.6r155176<\/code><\/pre>\n\n\n\n<p>On the AlmaLinux vm, download <a class=\"rank-math-link\" href=\"http:\/\/download.virtualbox.org\/virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">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\/7.0.6\/VBoxGuestAdditions_7.0.6.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>sudo mount \/tmp\/VBoxGuestAdditions_7.0.6.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>sudo .\/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>Verifying archive integrity... All good.\nUncompressing VirtualBox 7.0.6 Guest Additions for Linux  100%\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 &lt;version&gt;\nVirtualBox Guest Additions: or\nVirtualBox Guest Additions:   \/sbin\/rcvboxadd quicksetup all\nVirtualBox Guest Additions: Building the modules for kernel \n5.14.0-162.18.1.el9_1.x86_64.\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"reboot-alma-linux\">Reboot AlmaLinux<\/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<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/auto-resize-guest-display.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1916\" height=\"1030\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/auto-resize-guest-display.png\" alt=\"\" class=\"wp-image-15615\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/auto-resize-guest-display.png?v=1677792566 1916w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/auto-resize-guest-display-768x413.png?v=1677792566 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/03\/auto-resize-guest-display-1536x826.png?v=1677792566 1536w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>And there you go.<\/p>\n\n\n\n<p>Congratulations. You have successfully set the AlmaLinux 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 installing VirtualBox Guest Additions on AlmaLinux.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-tutorials\">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 AlmaLinux. We are installing the VirtualBox Guest additions on AlmaLinux Desktop. Installing<\/p>\n","protected":false},"author":10,"featured_media":15618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,46,36],"tags":[],"class_list":["post-15568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-virtualbox","category-virtualization","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\/15568"}],"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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=15568"}],"version-history":[{"count":13,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/15568\/revisions"}],"predecessor-version":[{"id":20714,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/15568\/revisions\/20714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/15618"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=15568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=15568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=15568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}