Create Shared Folders with VirtualBox

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,271
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 26, 2009

Create and access shared folders and hard drives from virtual machines created in VirtualBox and get Linux guests to automount them at boot.

Step-by-step instructions are:

1. Notice the directory for /media (in the video) contains only 4 folders, initially
2. Go to Devices/Shared Folders in the top bar menu
3. Enter the address of the folder to be shared (in the video this is /media/disk)
4. Enter a name for the shared folder as it is to be seen by the guest OS (in the video it is called "disk")
5. Click OK
6. Open a terminal and write

sudo mkdir /media/(name of shared media)
sudo mount -t vboxsf (name of shared folder as seen my the guest) /media/(name of shared media)

In the video those two lines are written as

sudo mkdir /media/disk
sudo mount -t vboxsf disk /media/disk

7. Make the shared media automount by adding the mount command (e.g sudo mount -t vboxsf disk /media/disk) into the file rc.local by opening it with a text editor and placing the mount command before "exit 0". For example

Open Terminal and type

kdesudo kate /etc/rc.local

then edit the file as demonstrated in the video.

8. Notice the directory for /media (in the video) now contains 4 folders plus the one we've just added i.e /media/disk

Warning: do not delete the mount point without first unmounting the shared media with "umount /media/(name of shared media)" otherwise you will delete the content of the shared media.

More detailed instructions for setting up shared media and using VirtualBox (from start to finish) can be found at http://journalxtra.com/virtualbox

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more