{"id":2983,"date":"2019-05-16T22:58:54","date_gmt":"2019-05-16T19:58:54","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2983"},"modified":"2019-11-23T10:57:34","modified_gmt":"2019-11-23T07:57:34","slug":"install-virtualbox-guest-additions-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-18-04\/","title":{"rendered":"Install VirtualBox Guest Additions on Ubuntu 18.04"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install VirtualBox Guest Additions on Ubuntu 18.04 VM. Oracle VM VirtualBox Guest Additions provides a closer integration between host and guest thus improving the interactive performance of guest systems.<\/p>\n\n\n\n<p>The Guest Additions offer the following features:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Mouse pointer integration<\/li><li>Shared folders for easy sharing of files between the host and the guest<\/li><li>Ensures better and accelerated video performance.<\/li><li>Seamless windows integration<\/li><li>Generic host\/guest communication channels that enables you to control and manage guest execution.<\/li><li>Provides Host-Guest time synchronization.<\/li><li>Shared clipboard between host and guest vm.<\/li><li>Automated logins.<\/li><\/ul>\n\n\n\n<p>You can read more about these features on the <a rel=\"noreferrer noopener\" aria-label=\"VirtualBox User Manual (opens in a new tab)\" 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 VirtualBox Guest Additions on Ubuntu 18.04<\/h3>\n\n\n\n<p>VirtualBox Guest Additions are designed to be installed within the guest operating system. This guide demonstrates the installation of Guest Additions on Ubuntu 18.04 virtual machine.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installing Guest Additions from Virtual Box Manager<\/h4>\n\n\n\n<p>Before you can proceed, you need to install some required packages such as Linux Kernel headers, dkms and build-essentials if they are not installed. You can verify the installation by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo dpkg -l | grep -E \"dkms|linux-headers-$(uname -r)|build-essential\"\nii  build-essential                               12.1ubuntu2                                              amd64        Informational list of build-essential packages\nii  dkms                                          2.2.0.3-2ubuntu11.6                                      all          Dynamic Kernel Module Support Framework\nii  linux-headers-4.15.0-50-generic               4.15.0-50.54~16.04.1                                     amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP<\/code><\/pre>\n\n\n\n<p>The <code>ii<\/code>&nbsp;means that the package is installed.<\/p>\n\n\n\n<p>If they are not installed, you can run the command below to do the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update -y &amp;&amp; apt upgrade\nsudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\n<p>Once the installation is done, Navigate to <strong>Devices > Insert Guest Additions CD image<\/strong> on the Menu bar.<\/p>\n\n\n\n<p>This will launch a dialog box which prompts you to run or cancel the installer.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/guest-additions-installer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"171\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/guest-additions-installer.png\" alt=\"install VirtualBox Guest Additions on Ubuntu 18.04\" class=\"wp-image-2986\" title=\"\"><\/a><\/figure>\n\n\n\n<p>Click <strong>Run<\/strong> to launch the installation of Guest additions on Ubuntu 18.04. You will be prompted to enter a password to authenticate the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/authenticate-guest-addition-install.png\"><img loading=\"lazy\" decoding=\"async\" width=\"506\" height=\"352\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/authenticate-guest-addition_install.png\" alt=\"authenticate VirtualBox Guest Additions installation\" class=\"wp-image-2988\" title=\"\"><\/a><\/figure>\n\n\n\n<p>Supply your password and authenticate. The installer then launches the shell and run the installation. Once the installation is done, press Enter to close the installation window.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/guest-additions-installed.png\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"416\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/guest-additions_installed.png\" alt=\"VirtualBox Guest Additions installed\" class=\"wp-image-2990\" title=\"\"><\/a><\/figure>\n\n\n\n<p>Next, restart your virtual machine in order to reload the kernel modules.<\/p>\n\n\n\n<p>You can also install the Guest Additions from the terminal. To do this, press cancel when the installer dialog box opens up. The navigate to the mount point of the guest additions and run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/media\/&lt;user&gt;\/VBox_GAs_6.0.8\nsudo .\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>or simply run;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo \/media\/&lt;user&gt;\/VBox_GAs_6.0.8\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>You can now create shared folders as well as shared clipboards so that can you can be able to access your host files as well do copying in any direction you may want.<\/p>\n\n\n\n<p>You can also install Guest Additions from repositories by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<p>The Guest Addition ISO will be installed under <strong>\/usr\/share\/virtualbox\/VBoxGuestAdditions.iso<\/strong>.<\/p>\n\n\n\n<p>In this case, you need to mount the iso on the virtual machine as the CD and install it by navigating to the mount point and executing the installer script for Linux.<\/p>\n\n\n\n<p>If you need to uninstall Guest Additions, <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo \/media\/&lt;user&gt;\/VBox_GAs_6.0.8\/VBoxLinuxAdditions.run uninstall<\/code><\/pre>\n\n\n\n<p>Great.That is how to install VirtualBox Guest Additions on Ubuntu 18.04 VM. Want to learn how to install VirtualBox extension pack on VirtualBox 6.0? See the link below;<\/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>Other VirtualBox installation guides;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-fedora-30-workstation-on-virtualbox\/\" target=\"_blank\">Install Fedora 30 Workstation on VirtualBox<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-install-ibm-qradar-ce-v7-3-1-on-virtualbox\/\">How to Install IBM QRadar CE v7.3.1 on VirtualBox<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-upgrade-virtualbox-5-2-to-virtualbox-6-0-on-ubuntu-16-04\/\">How to Upgrade VirtualBox 5.2 to VirtualBox 6.0 on Ubuntu 16.04<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-install-freebsd-12-on-virtualbox\/\">How to Install FreeBSD 12 on VirtualBox<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-automate-virtual-machine-installation-on-virtualbox\/\">How to Automate Virtual Machine Installation on VirtualBox<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/how-to-install-and-configure-alienvault-ossim-5-5-on-virtualbox\/\" target=\"_blank\">How to install and configure AlienVault OSSIM 5.5 on VirtualBox<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-install-opnsense-on-virtualbox\/\">How to Install OPNsense on VirtualBox<\/a><\/li><li><a href=\"https:\/\/kifarunix.com\/how-to-install-ibm-qradar-community-edition-siem-on-virtualbox\/\">How to Install IBM QRadar Community Edition SIEM on VirtualBox<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install VirtualBox Guest Additions on Ubuntu 18.04 VM. Oracle VM VirtualBox Guest Additions provides a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,46,36],"tags":[954,309],"class_list":["post-2983","post","type-post","status-publish","format-standard","hentry","category-howtos","category-virtualbox","category-virtualization","tag-guest-additions","tag-virtualbox-6-0","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2983"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2983"}],"version-history":[{"count":4,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2983\/revisions"}],"predecessor-version":[{"id":4679,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2983\/revisions\/4679"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}