{"id":34542,"date":"2021-09-06T13:29:01","date_gmt":"2021-09-06T13:29:01","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=34542"},"modified":"2021-09-06T13:29:01","modified_gmt":"2021-09-06T13:29:01","slug":"install-virtualbox-guest-additions-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/09\/install-virtualbox-guest-additions-ubuntu\/","title":{"rendered":"How to Install Virtualbox Guest Additions in Ubuntu 21.10 [Quick Fix]"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/virtualbox1200.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34544\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/virtualbox250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/virtualbox250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/virtualbox250-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>This simple tutorial shows how to install Virtualbox Guest Additions in Ubuntu based systems, e.g., Linux Mint, Zorin OS and Elementary OS, with fix or workaround for common issues.<\/b><\/p>\n<p>Guest Additions is a set of device drivers and system applications to install in Guest OS. It&#8217;s useful when you try to share folder and\/or clipboard between guest and host, enable USB support etc. Installing the software suite is easy via a menu option. However, it might not function in some cases.<\/p>\n<h3>Install Guest Additions in the Normal Way<\/h3>\n<p>Firstly, start and login the Guest OS. Then go to VM menu &#8220;<b>Devices -&gt; Insert Guest Additions CD image<\/b>&#8220;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/menu-insert-additionscd.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34546\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/menu-insert-additionscd.png\" alt=\"\" width=\"600\" height=\"380\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/menu-insert-additionscd.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/menu-insert-additionscd-300x190.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Usually, a pop-up dialog will open and prompt whether to run autorun script or not. Just click &#8220;<b>Run<\/b>&#8221; and it starts to install the guest additions after you typing user password in authentication dialog.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vbox-additions-autorun.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vbox-additions-autorun.png\" alt=\"\" width=\"600\" height=\"169\" class=\"aligncenter size-full wp-image-34547\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vbox-additions-autorun.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vbox-additions-autorun-300x85.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After installation, the additions will function in next boot of the Guest OS.<\/p>\n<h3>[Workaround] Unable to insert the virtual optical disk:<\/h3>\n<p>Sometimes it outputs an error &#8220;Unable to insert the virtual optical disk &#8230; into the machine &#8230;&#8221; when you click on the menu option in VM (VirtualBox Machine).<\/p>\n<p>It happens in my case when trying to install the additions in Elementary OS 6. And it will pop-up an error dialog:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/error-insert-additions.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/error-insert-additions.png\" alt=\"\" width=\"490\" height=\"333\" class=\"aligncenter size-full wp-image-34548\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/error-insert-additions.png 490w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/error-insert-additions-300x204.png 300w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><\/a><\/p>\n<p>Don&#8217;t know why but do following steps will fix the issue in next Guest boot:<\/p>\n<p>1.) Power off the Guest OS, then go to its Settings page. Under the <b>Storage<\/b> settings, remove the attached iso under Controller:IDE.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso-600x462.jpg\" alt=\"\" width=\"600\" height=\"462\" class=\"aligncenter size-large wp-image-34549\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso-600x462.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso-300x231.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso-768x591.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/remove-old-additionsiso.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2.) Next add new optical drive, and click &#8220;Leave Empty&#8221; in the select dialog.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty-600x362.jpg\" alt=\"\" width=\"600\" height=\"362\" class=\"aligncenter size-large wp-image-34550\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty-600x362.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty-300x181.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty-768x463.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/new-empty.jpg 781w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After saving the changes, start the Guest OS and try to install the additions again. <\/p>\n<h3>Manually Download &#038; Install Guest Additions:<\/h3>\n<p><b>Nothing happens when clicking &#8216;Insert Guest Additions CD image&#8217; option?<\/b> You can download the iso, mount it, and install the Guest Additions manually.<\/p>\n<p><b>1.)<\/b> Firstly start the VirtualBox Machine, download the iso image for your VirtualBox edition, usually  &#8220;VBoxGuestAdditions_x.x.xx.iso&#8221;, from the link button below:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/download.virtualbox.org\/virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download VBoxGuestAdditions<\/a><\/div>\n<\/div>\n<p><b>2.)<\/b> Next open the Downloads folder, right-click or (double-click) on the file and select to mount the iso image.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/mount-additionsiso.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/mount-additionsiso-600x320.jpg\" alt=\"\" width=\"600\" height=\"320\" class=\"aligncenter size-large wp-image-34552\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/mount-additionsiso-600x320.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/mount-additionsiso-300x160.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/mount-additionsiso.jpg 746w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The dialog should pop-up allows you to select &#8220;Run&#8221; to install the additions. If not, go to the mounted folder from the left pane in file manager. Right-click on blank area and select &#8216;<b>Open in Terminal<\/b>&#8216; to open a terminal window and navigate to the directory automatically.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal-600x362.jpg\" alt=\"\" width=\"600\" height=\"362\" class=\"aligncenter size-large wp-image-34553\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal-600x362.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal-300x181.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal-768x464.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/vboxadditions-openterminal.jpg 927w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>When terminal opens, run the <i>.run<\/i> installer manually via command:<\/p>\n<pre>sudo .\/VBoxLinuxAdditions.run<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/install-additions.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/install-additions.png\" alt=\"\" width=\"600\" height=\"399\" class=\"aligncenter size-full wp-image-34554\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/install-additions.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/install-additions-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to install Virtualbox Guest Additions in Ubuntu based systems, e.g., Linux Mint, Zorin OS and Elementary OS, with fix or workaround for common issues. Guest Additions is a set of device drivers and system applications to install in Guest OS. It&#8217;s useful when you try to share folder and\/or clipboard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34543,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[38],"class_list":["post-34542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-virtualbox"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=34542"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34542\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34543"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=34542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=34542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=34542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}