IV Needle Injecting Tech into the Vein

27Mar/100

Share a folder over VirtualBox with a Windows Host and Ubuntu VM

I ran into some issues while attempting to share a folder from Windows to Ubuntu over VirtualBox. Here are the steps I followed to get this to work:

  • Create a folder in Windows to share (or use one that already exists... your choice)
  • Start the Ubuntu virtual machine
  • On the virtual machine windows, click on Devices>Shared Folder...
  • Click on the "Add Shared Folders (Ins)" button
  • Browse to the Windows folder you are planning to shared, name it, and click OK to save
  • Click OK to close the Shared Folders window
  • Open the terminal on the Ubuntu VM
  • Create a directory to mount the share to:
  • sudo mkdir /mnt/win_share
  • Mount the share to the directory:
  • sudo mount.vboxsf Share /mnt/win_share

Add a file to directory and check to see if it shows on both machines. If you'd like to add a link to the share on your desktop, run the the following command in the terminal:

ln -s /mnt/win_share/ /home/<user>/Desktop/Share

There should now be a link on your Ubuntu Desktop.