How do I go about sharing a folder between the host (Mac) and the guest OS (Ubuntu) in Virtual Box?
You have to mount your folder on your VM. First you need to install Guest Additions (although I already did this during the installation). Where New is the name of your shared folder. Now you can access the shared folder at ~/new .
x, select the Share folders on your Mac option. Click the + button. Enter the share name, browse to the folder on the Mac that will be shared with the virtual machine and click Add. Click Apply, then OK.
You’ll need the latest version of VirtualBox (4.3.10) with Guest Additions installed in Ubuntu.
sudo mount -t vboxsf folder_name path_to_mount_point
folder_name is the name you typed in earlier to describe the shareIn case of difficulties mounting the same, such as the following error:
mount: wrong fs type, bad option, bad superblock on mydata, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so
perform the following steps:
sudo rm /sbin/mount.vboxsf sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With