{"id":1436,"date":"2021-12-16T13:15:02","date_gmt":"2021-12-16T10:15:02","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/07\/17\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/07\/17\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine\/"},"modified":"2021-12-16T13:15:02","modified_gmt":"2021-12-16T10:15:02","slug":"how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1436-how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine\/","title":{"rendered":"How to install VirtualBox Guest Additions for an Ubuntu Virtual Machine"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>VirtualBox Guest Additions are important in VirtualBox because they provide excellent graphics acceleration, as well as other useful features such as shared folder support, better graphics support, and others things too.<\/p>\n<p>If you plan to use Ubuntu in a VirtualBox virtual machine, you\u2019ll need to install these guest additions. In this guide, we\u2019ll go over exactly how to do that.\u00a0<\/p>\n<p>Note: Although this guide focuses on an Ubuntu VM, the installation instructions should also work on any guest Linux operating system in VirtualBox. However, the Linux header installation instructions will differ.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-405751 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine.png\" alt=\"\" width=\"1200\" height=\"744\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-4.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-5.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<h2>Setting up an Ubuntu VM in VirtualBox<\/h2>\n<p>Setting up an Ubuntu VM isn\u2019t that hard. Essentially, you\u2019ll install Ubuntu virtually just as you do on a physical computer. However, to speed up this process, you can download a pre-configured VM from OSboxes.org.\u00a0<\/p>\n<p>To download a VM, head over to the Ubuntu page on Osboxes.org. Once on there, look for the latest release of Ubuntu, click on the \u201cVirtualBox\u201d tab, and select the download button.<\/p>\n<p>Osboxes distributes its VMs in archive format. When the archive is done downloading, open up VirtualBox, click on \u201cNew,\u201d and go through the setup of creating your new VM.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-405750 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-1.png\" alt=\"\" width=\"1200\" height=\"589\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-1.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-6.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-7.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-8.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>When you get to the setup process for the VM, select \u201cUse an existing virtual hard disk file,\u201d and select the Osboxes VM VDI file as the existing hard drive to use the downloaded VM.<\/p>\n<p>If you do not wish to use an OSboxes VM for Ubuntu, head over to Ubuntu.com\/desktop, download the latest Ubuntu ISO file to your computer, load it up into VirtualBox, and install Ubuntu the old way.<\/p>\n<h2>Installing Linux headers in Ubuntu VM<\/h2>\n<p>Inside the Ubuntu VM, you need to install the Linux kernel headers. These headers are required to modify the Linux kernel, and the VirtualBox guest additions will not work on Ubuntu without it, as they\u2019re kernel modules.<\/p>\n<p>To install the latest Ubuntu kernel headers, start by launching a terminal window on the desktop. You can open up a terminal window on the desktop with\u00a0<strong>Ctrl + Alt + T<\/strong>, or by clicking on \u201cTerminal\u201d in the app menu.<\/p>\n<p>Once the terminal window is open in the Ubuntu VM, use the\u00a0<strong>apt install\u00a0<\/strong>command down below to install the Ubuntu Linux kernel headers.\u00a0<\/p>\n<pre>\nsudo apt install linux-headers-$(uname -r) -y\n<\/pre>\n<h2>Downloading Guest Additions<\/h2>\n<p>Now that you\u2019ve set up your OSboxes VM in VirtualBox, you can log in with the password \u201cosboxes.org.\u201d Or, if you set up your own VM using an Ubuntu ISO, log in with your username and password.<\/p>\n<p>When you\u2019ve logged in, you\u2019ll need to download the latest release of the VirtualBox guest additions. The easiest and fastest way to do this is to do it within the VirtualBox app, rather than the official website.<\/p>\n<p>From here, find the \u201cDevices\u201d menu inside of the Ubuntu window, and click on it with the mouse. When you click on the menu, you\u2019ll see many different options available to click on.<\/p>\n<p>Look to the bottom of the menu, and click on the \u201cInsert Guest Additions\u201d button in the menu. When you click on it for the first time (if you\u2019ve never selected this option before) VirtualBox will begin to download the Guest Additions ISO file to your computer.<\/p>\n<p>When the download process is complete, the VirtualBox Guest Additions ISO file will automatically be inserted into the Ubuntu VM\u2019s virtual CD\/DVD drive. Shortly after that, you\u2019ll see a prompt pop-up on the Ubuntu VM\u2019s desktop.<\/p>\n<h2>Installing the guest additions into the Ubuntu VM<\/h2>\n<p>When you insert the Guest Additions ISO file into the Ubuntu VM, you should see a prompt appear on the screen. This prompt will let you know that there is installable software on the disk that Ubuntu can install.\u00a0<\/p>\n<p>Click on the \u201cRun\u201d button with the mouse to begin the installation. When you click \u201cRun\u201d a terminal window will pop up on the screen. Follow the prompts that tell you what to do.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-405751 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine.png\" alt=\"\" width=\"1200\" height=\"744\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-4.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-5.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>During the terminal installation of the Guest Additions, you may run into a failed installation. Failed installations happen when your Ubuntu VM is missing a few packages that the software expects to have.\u00a0<\/p>\n<p>Do not worry if you run into an issue while installing Guest Additions. Simply read what packages it requires you to install. Open up the terminal window, install the packages with\u00a0<strong>apt install<\/strong>, then, eject the Guest Additions ISO from the VM and re-insert it to bring up the \u201cRun Software\u201d dialog again.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-405752 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-2.png\" alt=\"\" width=\"1200\" height=\"748\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-2.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-9.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-10.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-virtualbox-guest-additions-for-an-ubuntu-virtual-machine-11.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>When the terminal window finishes installing VirtualBox Guest Additions into your Ubuntu VM, reboot. You need to restart the Ubuntu VM to start using the new software installed into the Ubuntu VM kernel.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles VirtualBox Guest Additions are important in VirtualBox because they provide excellent graphics acceleration, as well as other useful features such as shared folder support, better graphics support, and others things too. If you plan to use Ubuntu in a VirtualBox virtual machine, you\u2019ll need to install these guest additions. In this guide, we\u2019ll &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1436"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1436"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1437"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}