


Check if mount.cifs listed in /sbin $ls -l /sbin/mount.cifs If not, then install it by using below command: $sudo apt-get install nfs-commonĢ. You can try below solutions one by one till it gets fixed: … wrong fs type, bad option, bad superblock on … If mount command (in step #6) throws any error, then please try below solutions This will mount the shared directory in to Linux system and you will be able to access shared directory on guest machine. media/shared : is directory created on guest machine in step #5. Vmshared : this is Folder Name entered in step #3. $sudo mount -t vboxsf vmshared /media/shared Execute mount command to mount the directory:.Create a directory on guest machine, you will mount the shared directory into this directory.Start the virtual machine and open terminal or Konsole.Restart the guest machine, after restart, folder should be accessible. Execute add user command $sudo adduser vboxsfī. To make it accessible, you need to add your user name into vboxsf group.Ī. You will may face permission issue while accessing this auto mounted folder, as auto mounted shared folder is created with root and vboxsf group. In this case it will be /media/sf_vmshared Shared folders can be found under /media/sf_. When we check Auto-mount and Make permanent options, shared folders are automatically mounted on your guest machine. Now the required changes on host machine are done, let’s move to guest machine changes. Check the “Auto-mount” and “Make Permanent” checkbox.ĭ. This name will be used later while mounting on guest machine. Folder path: is path of host machine directory, here C:\vmsharedī. Click on add button, it will open “Add Share” pop up, where you will enter shared directory details.Ī.Open Virtual Box and look for settings of your virtual machine.Create a directory on host machine, wherever you prefer.I have used below software & OS to create my virtual machine: auto mounting feature of virtual box and b. Now if you go to the folder you’ll see that folders blog on the host and the virtual machine have same content.Steps to create and configure shared folders on virtual machine.

Once the installation finished run the command in the terminal to mount the shared folder in the VirtualBox Ubuntu virtual machine sudo mount -t vboxsf blog blog

In the virtual machine go to the top menu: Devices -> Insert Guest Additions CD image.Ĭlick “Run” on the popup and confirm with the root password Mount Ubuntu VirtualBox shared folder Let’s try now to share a folder between the host machine and the VirtualBox virtual machine.įirst we need to create a folder on the host machine and set that folder as a shared folder in Settings -> Shared Folder of VirtualBox ManagerĬreate a folder in the home directory of the VirtualBox virtual machine with that name. I assume you were able to create an Ubuntu virtual machine with VirtualBox.
