Sunday, July 14, 2013

Shared folder between Your ubuntu VM and Native OS.

Very Frequently You would need files to be shared between Your local OS and Your ubuntu VM running using Oracle VirtualBox. Here are the steps to set up Your Shared Folder on Ubuntu Virtual Box VM.

  • Start Your Ubuntu VM in Oracle Virtual Box.
  • Go to Devices >> Install Guest Additions. This will install the Guest additions in a terminal session.
  • Next reboot Your VM.
  • Create a Folder in Your native OS which You want to share. I have named it as “Shared”.
  • Now in Your VM, Go to Devices >> Shared Folders and then hit the “Add” button.
  • Browse for the folder in Your native OS that You recently created to be shared.
  • Now In Your VM system, create a folcer to be Shared in Your home directory. Get the full path of this folder. The one that I have created is : /home/atom/Shared. Check the option Make Permanent while doing so.
  • Now open Terminal in Your VM and issue the command : sudo mount -t vboxsf Shared /home/atom/Shared. Note that You would have to run this command to mount this shared drive everytime You restart your VM. So save it in a text file or as a shell script to run it after rebooting.

No comments:

Post a Comment

Popular

Featured

Three Months of Chadhei