{"id":4677,"date":"2019-11-23T12:24:47","date_gmt":"2019-11-23T09:24:47","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4677"},"modified":"2024-03-12T23:09:26","modified_gmt":"2024-03-12T20:09:26","slug":"install-virtualbox-guest-additions-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-20-04\/","title":{"rendered":"Install VirtualBox Guest Additions on Ubuntu 20.04"},"content":{"rendered":"\n<p>If you have installed Ubuntu 20.04 on VirtualBox, you realize that it is not in fullscreen. In this guide, you will learn how to install VirtualBox guest additions on Ubuntu 20.04.<\/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-ubuntu-20-04\">Installing VirtualBox Guest Additions on Ubuntu 20.04<\/a><ul><li><a href=\"#guest-additions-features\">Guest Additions Features<\/a><\/li><li><a href=\"#insert-guest-additions-iso\">Insert Guest Additions ISO<\/a><ul><li><a href=\"#insert-guest-additions-iso-file-manually\">Insert Guest Additions ISO File Manually<\/a><\/li><li><a href=\"#install-guest-additions-manually-from-terminal\">Install Guest Additions Manually from Terminal<\/a><\/li><\/ul><\/li><li><a href=\"#installing-guest-additions-iso-from-ubuntu-repositories\">Installing Guest Additions ISO from Ubuntu Repositories<\/a><\/li><li><a href=\"#related-tutorials\">Related Tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-virtual-box-guest-additions-on-ubuntu-20-04\">Installing VirtualBox Guest Additions on Ubuntu 20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"guest-additions-features\">Guest Additions Features<\/h3>\n\n\n\n<p>Apart from enabling the virtual machine to have a full screen view, guest additions offers many other 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>You can read more about these features on the&nbsp;<a aria-label=\" (opens in a new tab)\" href=\"https:\/\/download.virtualbox.org\/virtualbox\/6.0.14\/UserManual.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">VirtualBox User Manual<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"insert-guest-additions-iso\">Insert Guest Additions ISO<\/h3>\n\n\n\n<p>In order to install VirtualBox Guest Additions, you need to have the Guest Additions ISO file.<\/p>\n\n\n\n<p>Guest Addition ISO file can be inserted into the VM in two ways;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Insert Guest Additions ISO File Manually<\/li>\n\n\n\n<li>Install Guest Additions ISO Automatically from Ubuntu Repositories using APT package manager.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"insert-guest-additions-iso-file-manually\">Insert Guest Additions ISO File Manually<\/h4>\n\n\n\n<p>To manually insert the VirtualBox Guest Additions ISO file on your Ubuntu 20.04 VM,  navigate to Menu bar on your VM and click <strong>Devices &gt; Insert Guest Additions CD image<\/strong>. Note that before you can insert the ISO file, you need to have at least one empty IDE controller.<\/p>\n\n\n\n<p>However, before you can proceed with Guest Addition installation, you first need to install required build tools, the Linux kernel headers and the support modules, if not already installed.<\/p>\n\n\n\n<p>Run the command below to verify if these requirements have already been installed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo dpkg -l | grep -E \"dkms|linux-headers-$(uname -r)|build-essential\"<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>ii  build-essential                            12.8ubuntu1                          amd64        Informational list of build-essential packages\nii  linux-headers-5.3.0-18-generic             5.3.0-18.19                          amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP\n<\/code><\/pre>\n\n\n\n<p>The&nbsp;<code>ii<\/code>&nbsp;means that the package is installed. As you can see from the output, dkms is not installed. If none if these packages is installed, you can simply use the APT package manager to install them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update -y<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo apt upgrade<\/code><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install dkms linux-headers-$(uname -r) build-essential<\/pre>\n\n\n\n<p>Once that is done, proceed to insert the Guest Additions ISO from the Menu bar &gt; Devices.<\/p>\n\n\n\n<p>This will launch a dialog box which prompts you to run or cancel the Guest Additions installer.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"162\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/run.png\" alt=\"\" class=\"wp-image-4681\" title=\"\"><\/figure><\/div>\n\n\n<p>Click&nbsp;<strong>Run<\/strong>&nbsp;to launch the installation of Guest additions on Ubuntu 20.04. You will be prompted to enter your password to authenticate the installation.<\/p>\n\n\n\n<p>Upon successful authentication, the Guest Addition installation will now run.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"401\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/guest-add-installed.png\" alt=\"\" class=\"wp-image-4682\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/guest-add-installed.png?v=1574500788 827w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/guest-add-installed-768x372.png?v=1574500788 768w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/figure><\/div>\n\n\n<p>Once the Guest Additions are installed, the screen automatically resizes itself. Press Enter to close the installation screen.<\/p>\n\n\n\n<p>You can as well restart your virtual machine to reload the Kernel modules.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-guest-additions-manually-from-terminal\">Install Guest Additions Manually from Terminal<\/h4>\n\n\n\n<p>You can also install the Guest Additions from the terminal. When the Guest Addition ISO file is inserted, it is mounted on <code>\/media\/$USER\/VBox_GAs_6.0.x<\/code>. Where x is the build version of VirtualBox.<\/p>\n\n\n\n<p>Therefore press cancel when the installer dialog box opens up.<\/p>\n\n\n\n<p>Then 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\/$USER\/VBox_GAs_6.0.14\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\/$USER\/VBox_GAs_6.0.14\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-guest-additions-iso-from-ubuntu-repositories\">Installing Guest Additions ISO from Ubuntu Repositories<\/h3>\n\n\n\n<p>It is also possible to install the Guest Additions ISO file from Ubuntu repos. Guest Additions ISO file is provided by the <code>virtualbox-guest-additions-iso<\/code> package.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt-cache policy virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<p>If it is available, simply run the command below to install it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<p>When installed, the VirtualBox Guest Additions ISO is now available as <code>\/usr\/share\/virtualbox\/VBoxGuestAdditions.iso<\/code>.<\/p>\n\n\n\n<p>To install it, you need to mount it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/<\/code><\/pre>\n\n\n\n<p>Next, run the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo \/media\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>Once the installation is done, restart your system to reload kernel modules.<\/p>\n\n\n\n<p>You should now be on full screen and can be able to enable shared clipboard, shared folders, drag and drop&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1358\" height=\"679\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/full-screen.png\" alt=\"Ubuntu 20.04 VirtualBox full screen\" class=\"wp-image-4680\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/full-screen.png?v=1574500687 1358w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/full-screen-768x384.png?v=1574500687 768w\" sizes=\"(max-width: 1358px) 100vw, 1358px\" \/><\/figure>\n\n\n\n<p>If upon system reboot the screen doesn&#8217;t auto-resize automatically, be sure to toggle (off\/on, so to say) \u00a0<code>View -> Auto-resize Guest Display<\/code> on the VM menu bar to set right VM resolution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"related-tutorials\">Related Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-centos-8\/\">Install VirtualBox Guest Additions on CentOS 8<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-debian-10-buster\/\">Install VirtualBox Guest Additions on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-18-04\/\" target=\"_blank\">Install VirtualBox Guest Additions on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-ubuntu-20-04-on-virtualbox\/\" target=\"_blank\">Install Ubuntu 20.04 on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-debian-10-buster-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Debian 10 Buster on VirtualBox<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have installed Ubuntu 20.04 on VirtualBox, you realize that it is not in fullscreen. In this guide, you will learn how to install<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[46,121,36],"tags":[954,3329,1200,24,309],"class_list":["post-4677","post","type-post","status-publish","format-standard","hentry","category-virtualbox","category-howtos","category-virtualization","tag-guest-additions","tag-install-virtualbox-guest-additions-ubuntu-20-04","tag-ubuntu-20-04","tag-virtualbox","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\/4677"}],"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=4677"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4677\/revisions"}],"predecessor-version":[{"id":21248,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4677\/revisions\/21248"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=4677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}