klenwell information services : UbuntuVirtualBox

Virtual Box

return to CategoryUbuntu

Sharing Folders

To share folders between the host computer (Ubuntu) and an Ubuntu guest:
1. Install Additions: Guest Window Top Bar > Devices > Install Guest Additions

2. Add Host Directory: Guest Window Lower Bar > Right-Click Blue Folder > Choose Dir
2a. Choose Path and Name. (I usually use Transient Folders with Read-Only access.)
# Example
path: /home/klenwell/shared
name: home_shared

3. Mount Shared Folder on Guest Machine
# Guest Machine Console Command Line
$ mkdir ~/host
$ sudo mount -t vboxsf home_shared ~/host

4. Directory Now Accessible
$ ls ~/host

5. Optional: Snapshot Guest Machine

References

http://www.virtualbox.org/manual/ch04.html#sharedfolders
https://help.ubuntu.com/community/VirtualBox
Sharing Folders (forums.virtualbox.org)