{"id":22256,"date":"2024-04-22T22:19:26","date_gmt":"2024-04-22T19:19:26","guid":{"rendered":"https:\/\/kifarunix.com\/?p=22256"},"modified":"2024-04-22T22:19:26","modified_gmt":"2024-04-22T19:19:26","slug":"install-virtualbox-guest-additions-on-wubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-wubuntu\/","title":{"rendered":"Install VirtualBox Guest Additions on Wubuntu"},"content":{"rendered":"\n<p>Follow through this step by step guide to lean how to install VirtualBox Guest Additions on Wubuntu. After you have installed Wubuntu on VirtualBox, you can install <a href=\"https:\/\/www.virtualbox.org\/manual\/ch04.html\" target=\"_blank\" rel=\"noreferrer noopener\">Guest additions<\/a> which provides a set of device drivers that optimizes usability of the virtual machine.<\/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-wubuntu\">Installing VirtualBox Guest Additions on Wubuntu<\/a><ul><li><a href=\"#install-wubuntu-on-virtual-box\">Install Wubuntu on VirtualBox<\/a><\/li><li><a href=\"#install-kernel-build-tools-on-wubuntu-virtual-machine\">Install Kernel Build tools on Wubuntu Virtual Machine<\/a><\/li><li><a href=\"#attach-empty-ide-storage-controller-to-wubuntu-vm\">Attach Empty IDE Storage Controller to Wubuntu VM<\/a><\/li><li><a href=\"#insert-guest-additions-iso-to-wubuntu-virtual-machine\">Insert Guest Additions ISO to Wubuntu Virtual Machine<\/a><\/li><li><a href=\"#install-virtual-box-guest-additions\">Install VirtualBox Guest Additions<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-virtual-box-guest-additions-on-wubuntu\">Installing VirtualBox Guest Additions on Wubuntu<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-wubuntu-on-virtual-box\">Install Wubuntu on VirtualBox<\/h3>\n\n\n\n<p>If you need a guide on how to install Wubuntu on VirtualBox, follow the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-wubuntu-linux-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Wubuntu Linux on VirtualBox<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-kernel-build-tools-on-wubuntu-virtual-machine\">Install Kernel Build tools on Wubuntu Virtual Machine<\/h3>\n\n\n\n<p>Run the commands below to install Kernel headers and required build tools required to install VirtualBox Guest Additions. The VirtualBox Guest Additions installer compiles kernel modules specific to the VM OS kernel during the installation process. As such, it requires the build tools installed.<\/p>\n\n\n\n<p>Update and upgrade system packages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt upgrade<\/code><\/pre>\n\n\n\n<p>The install kernel headers and required build tools;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\n<p>After the installation, reboot the system if needed;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91; -f \/var\/run\/reboot-required ] &amp;&amp; sudo systemctl reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"attach-empty-ide-storage-controller-to-wubuntu-vm\">Attach Empty IDE Storage Controller to Wubuntu VM<\/h3>\n\n\n\n<p>On the VirtualBox manager, edit the Wubuntu virtual machine and attach an empty IDE storage controller. This is is required as you need to attach the VirtualBox Guest Additions ISO into the virtual machine for installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"579\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/attach-storage-IDE.png?v=1713813390\" alt=\"\" class=\"wp-image-22257\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/attach-storage-IDE.png?v=1713813390 956w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/attach-storage-IDE-768x465.png?v=1713813390 768w\" sizes=\"(max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"insert-guest-additions-iso-to-wubuntu-virtual-machine\">Insert Guest Additions ISO to Wubuntu Virtual Machine<\/h3>\n\n\n\n<p>You can attach Guest additions ISO file into the VM from the VirtualBox manager or you can also install it directly from the system repositories as long as the available version matches with the version of the VirtualBox manager.<\/p>\n\n\n\n<p>To install the ISO from VirtualBox manager, open the virtual machine and go the <strong>menu > Devices > Insert Guest Additions CD image.<\/strong> This ensures that you are using an ISO file that matches the current version of the VirtualBox manager.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"674\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/insert-guest-addition-iso.png?v=1713813409\" alt=\"\" class=\"wp-image-22258\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/insert-guest-addition-iso.png?v=1713813409 921w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/insert-guest-addition-iso-768x562.png?v=1713813409 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>You may be prompted to mount and open the ISO. Proceed!<\/p>\n\n\n\n<p>If you want to install the ISO from system repositories, then first ensure that the version of the available ISO package is matching that of the manager;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-cache policy virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>virtualbox-guest-additions-iso:\n  Installed: (none)\n  Candidate: 6.1.50-1~ubuntu1.22.04.1\n  Version table:\n     6.1.50-1~ubuntu1.22.04.1 500\n        500 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/multiverse amd64 Packages\n        500 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/multiverse i386 Packages\n     6.1.34-1 500\n        500 http:\/\/archive.ubuntu.com\/ubuntu jammy\/multiverse amd64 Packages\n        500 http:\/\/archive.ubuntu.com\/ubuntu jammy\/multiverse i386 Packages\n<\/code><\/pre>\n\n\n\n<p>Confirm the version of the manager on the host;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vboxmanage --version<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>7.0.16r162802<\/code><\/pre>\n\n\n\n<p>As you can see, the versions are not the same. Hence, in such a situation, insert the ISO file via the manager menu.<\/p>\n\n\n\n<p>If it is available on the system repositories is same, then run the command below to install it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-virtual-box-guest-additions\">Install VirtualBox Guest Additions<\/h3>\n\n\n\n<p>You can now install the guest additions on the virtual machine.<\/p>\n\n\n\n<p>When you insert the Guest additions ISO via the device menu, it will be mounted on the virtual machine <strong>\/media\/$USER<\/strong> directory as <strong>VBox_GAs_x.x.xx<\/strong>, whe x.x.xx is the VirtualBox version number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -hT -t iso9660<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>Filesystem     Type     Size  Used Avail Use% Mounted on\n\/dev\/sr0       iso9660   51M   51M     0 100% \/media\/kifarunix\/VBox_GAs_7.0.12\n<\/code><\/pre>\n\n\n\n<p>Inside this folder, are the guest additions installers. You can execute installer for Linux;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/media\/kifarunix\/VBox_GAs_7.0.12\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>Verifying archive integrity...  100%   MD5 checksums are OK. All good.\nUncompressing VirtualBox 7.0.12 Guest Additions for Linux  100%  \nVirtualBox Guest Additions installer\nCopying additional installer modules ...\nInstalling additional modules ...\nVirtualBox Guest Additions: Starting.\nVirtualBox Guest Additions: Setting up modules\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 5.15.0-105-generic.\nupdate-initramfs: Generating \/boot\/initrd.img-5.15.0-105-generic\nVirtualBox Guest Additions: Running kernel modules will not be replaced until \nthe system is restarted or 'rcvboxadd reload' triggered\nVirtualBox Guest Additions: reloading kernel modules and services\nVirtualBox Guest Additions: kernel modules and services 7.0.12 r159484 reloaded\nVirtualBox Guest Additions: NOTE: you may still consider to re-login if some \nuser session specific services (Shared Clipboard, Drag and Drop, Seamless or \nGuest Screen Resize) were not restarted automatically\n<\/code><\/pre>\n\n\n\n<p>If you installed ISO from the system repositories, mount it and run the installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/media\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>You should now see some changes on the VM, like automatic screen resize. You should also be able to now enable shared clipboard to copy and paste between the vm and the host machine, Drag and Drop&#8230;<\/p>\n\n\n\n<p>If the screen does not resize automatically, use auto-resize option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"970\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/auto-resize-screen.png?v=1713813433\" alt=\"\" class=\"wp-image-22259\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/auto-resize-screen.png?v=1713813433 1910w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/auto-resize-screen-768x390.png?v=1713813433 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/04\/auto-resize-screen-1536x780.png?v=1713813433 1536w\" sizes=\"(max-width: 1910px) 100vw, 1910px\" \/><\/figure>\n\n\n\n<p>And that is all on installing VirtualBox Guest Additions ISO file on Wubuntu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow through this step by step guide to lean how to install VirtualBox Guest Additions on Wubuntu. After you have installed Wubuntu on VirtualBox, you<\/p>\n","protected":false},"author":10,"featured_media":22258,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,46],"tags":[7459,7458],"class_list":["post-22256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-virtualbox","tag-virtualbox-guest-addition-iso","tag-wubuntu","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\/22256"}],"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=22256"}],"version-history":[{"count":1,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/22256\/revisions"}],"predecessor-version":[{"id":22260,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/22256\/revisions\/22260"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/22258"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=22256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=22256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=22256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}