{"id":2610,"date":"2020-09-12T13:00:00","date_gmt":"2020-09-12T12:00:00","guid":{"rendered":"https:\/\/chewett.co.uk\/blog\/?p=2610"},"modified":"2020-08-21T21:47:01","modified_gmt":"2020-08-21T20:47:01","slug":"using-virtualbox-shared-folder-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/2610\/using-virtualbox-shared-folder-on-ubuntu-20-04\/","title":{"rendered":"Using Virtualbox Shared Folder on Ubuntu 20.04"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"254\" data-attachment-id=\"2613\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/2610\/using-virtualbox-shared-folder-on-ubuntu-20-04\/virtualbox_shared_folders_ubuntu_2004\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"virtualbox_shared_folders_ubuntu_2004\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?fit=678%2C254&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?resize=678%2C254&#038;ssl=1\" alt=\"\" class=\"wp-image-2613\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folders_ubuntu_2004.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p>This post explains how you can configure Virtualbox Shared Folders for Ubuntu 20.04.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Installing Virtualbox Guest Additions<\/h2>\n\n\n\n<p>Before you can configure Virtualbox Shared folders you will need to install Virtualbox Guest Additions.<\/p>\n\n\n\n<p>I have detailed the process of installing this on another blogpost which you should first follow.<\/p>\n\n\n\n<p>Once done you can continue with the second step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Shared Folders in Virtualbox<\/h2>\n\n\n\n<p>Once Virtualbox Guest Additions is installed you are able to configure the shared folder. To do this go into the Virtual Machine Settings and select &#8220;Shared Folders&#8221;.<\/p>\n\n\n\n<p>You will want to add a new machine folder by pressing the + button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"294\" height=\"243\" data-attachment-id=\"2611\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/2610\/using-virtualbox-shared-folder-on-ubuntu-20-04\/shared_folder_settings\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?fit=294%2C243&amp;ssl=1\" data-orig-size=\"294,243\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"shared_folder_settings\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?fit=294%2C243&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?fit=294%2C243&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?resize=294%2C243&#038;ssl=1\" alt=\"\" class=\"wp-image-2611\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?w=294&amp;ssl=1 294w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/shared_folder_settings.jpg?resize=50%2C41&amp;ssl=1 50w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/figure>\n\n\n\n<p>Once done you should have a dialog similar to this which will ask you for the folder path, folder name, and whether you want to automount it or make it read only.<\/p>\n\n\n\n<p>To configure this with Ubuntu 20.04 I found the best solution was to not auto-mount it but configure it in the virtual machine.<\/p>\n\n\n\n<p>Here the folder path is set to the location on my non-virtual hard drive that I want to mount. The folder name will be the name that the virtual machine will refer to.<\/p>\n\n\n\n<p>Once this has been saved in the settings interface you can then boot the Virtual Machine and configure it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Ubuntu to mount the Shared Folder<\/h2>\n\n\n\n<p>Once the shared folder is set up you will then want to request that it is automatically mounted on boot. You can do this by adding it to the <code>\/etc\/fstab<\/code> file.<\/p>\n\n\n\n<p>Open \/etc\/fstab in your favourite editor and put the following line at the bottom.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;foldername&gt; &lt;path to mount&gt; vboxsf defaults,uid=1000,gid=1000 0 0<\/pre>\n\n\n\n<p>For my example above I enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh \/home\/chewett\/.ssh\/ vboxsf defaults,uid=1000,gid=1000 0 0<\/pre>\n\n\n\n<p>This then configures my cygwin .ssh folder to be mounted at <code>\/home\/chewett\/.ssh\/<\/code> in my Virtual Machine.<\/p>\n\n\n\n<p>Once done fstab will mount this folder at each boot.<\/p>\n\n\n\n<p>If this worked for you or you have any questions please comment below!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post explains how you can configure Virtualbox Shared Folders for Ubuntu 20.04.<\/p>\n","protected":false},"author":1,"featured_media":2616,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Today I have written about using #Virtualbox Shared Folder on Ubuntu 20.04","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[147,389,82,167,166],"class_list":["post-2610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informational","tag-ubuntu","tag-ubuntu-20-04","tag-virtualbox","tag-virtualbox-guest-additions","tag-virtualbox-shared-folders"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-G6","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2541,"url":"https:\/\/chewett.co.uk\/blog\/2541\/install-virtualbox-guest-additions-on-ubuntu-20-04\/","url_meta":{"origin":2610,"position":0},"title":"Install Virtualbox Guest Additions on Ubuntu 20.04","author":"Chewett","date":"August 29, 2020","format":false,"excerpt":"This post describes how you can install Virtualbox Guest Additions on Ubuntu 20.04. Installing Virtualbox Guest Additions on Ubuntu 20.04 To install Virtualbox Guest Additions on Ubuntu 20.04 you will want to enable the multiverse repository. You can do this by running the following command. sudo add-apt-repository multiverse Once this\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":183,"url":"https:\/\/chewett.co.uk\/blog\/183\/install-virtualbox-guest-additions-fedora-21-xfce\/","url_meta":{"origin":2610,"position":1},"title":"Install Virtualbox guest additions on Fedora 21 XFCE","author":"Chewett","date":"February 8, 2015","format":false,"excerpt":"Installing via the normal route didn't work and meant I couldn't easily resize the screen. Doing the below allowed me to use the resize easily. Install rpmfusion on fedora run `sudo yum install\u00a0akmod-VirtualBox\u00a0VirtualBox-guest` run `cd\u00a0\/usr\/src\/akmods` run `sudo rpm -ivh VirtualBox-*.rpm` Once this was installed, rebooting will give you access to\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":484,"url":"https:\/\/chewett.co.uk\/blog\/484\/virtualbox-guest-additions-fedora\/","url_meta":{"origin":2610,"position":2},"title":"Virtualbox Guest additions on Fedora","author":"Chewett","date":"July 26, 2017","format":false,"excerpt":"This post describes how to install virtualbox guest additions on a Fedora virtual machine. Virtualbox guest additions adds a couple of features to running Fedora on virtualbox. Some of the useful features are shared folders, mouse pointer support, shared clipboard and better video driver support. The primary reason I install\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":628,"url":"https:\/\/chewett.co.uk\/blog\/628\/virtual-box-shared-folder-access-denied-fixed\/","url_meta":{"origin":2610,"position":3},"title":"Virtual box shared folder access denied Fixed","author":"Chewett","date":"September 9, 2017","format":false,"excerpt":"I was looking to add shared folders to my Fedora VM but during mounting\u00a0them there was an error. The error \"access denied\" appeared each time I attempted to mount the volume. This post explains why this happens and what you can do to fix it. Fixing \"Access Denied\" when mounting\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":764,"url":"https:\/\/chewett.co.uk\/blog\/764\/virtualized-raspian-os-virtualbox\/","url_meta":{"origin":2610,"position":4},"title":"Virtualized Raspian OS with Virtualbox","author":"Chewett","date":"October 21, 2017","format":false,"excerpt":"This post walks you through the process of installing the Raspberry Pi OS, Raspbian, with VirtualBox. I am going to use this at times to test my software running on the OS that the Raspberry Pi Cluster runs. Why do I need a special version of Raspbian OS to work\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":800,"url":"https:\/\/chewett.co.uk\/blog\/800\/exclude-fedora-packages-updating-dnf-yum\/","url_meta":{"origin":2610,"position":5},"title":"Exclude Fedora packages from updating with dnf or yum","author":"Chewett","date":"October 28, 2017","format":false,"excerpt":"This post describes how to exclude specific packages from being updated with Fedora and dnf or yum How to exclude packages from updating To exclude a package\u00a0or set of packages you can use the command line flag --exclude\u00a0with dnf or yum. All command snippets will include the command for running\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2610"}],"version-history":[{"count":2,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2610\/revisions"}],"predecessor-version":[{"id":2628,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2610\/revisions\/2628"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/2616"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}