How to Access Folders on Ubuntu Host Machine from an Ubuntu Virtual Machine in VirtualBox
Open VirtualBox Right-click your VM, then click Settings Go to Shared Folders section Add a new shared folder On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM. In the Folder Name field, type shared Uncheck Read-only and Auto-mount, and check Make Permanent Start your VM Select The Shared Folder 9. Install dependencies for VirtualBox guest additions: sudo apt-get update sudo apt-get install build-essential linux-headers-`uname -r` sudo apt-get install virtualbox-guest-utils virtualbox-guest-dkms You’ll see a folder under /media directory named similarly to the folder you selected to share on your host machine with “sf_” added to the beginning of the name. 10. When VirtualBox installed the Ubuntu operating system, it added a group called “vboxsf”. Before you can access any shared folders, you must add yourself to the vboxsf group. To do this, press Ctrl + Alt + T to open a Terminal window. Type the following at th...