Changes

Jump to: navigation, search

VirtualBox Shared Folders

1,761 bytes added, 15:19, 20 March 2009
no edit summary
Fortunately, VirtualBox makes the sharing of files between guests and a host system easy through a feature known as ''Shared Folders''.
 
== An Overview of VirtualBox Folder Sharing ==
To add a new shared folder, click on the add folder button (the top button containing an icon of a folder with a green plus sign) and select a folder on the host system to be shared with the selected guest. To browse for a specific folder, click the down arrow in the ''Folder Path'' text box and select ''Other...'' from the drop down menu. Once a suitable folder has been selected, enter a name for the share in the ''Folder Name'' field. If the guest operating system is to be denied write access to the folder, ensure that the ''Read-only'' check box is selected before clicking the ''OK'' button to created create the share:
[[Image:virtualbox_shared_folders_running_vm.jpg|Adding shared folders to a running VirtualBox VM]]
 
 
To add a new shared folder, click on the add folder button (the top button containing an icon of a folder with a green plus sign) and select a folder on the host system to be shared with the selected guest. To browse for a specific folder, click the down arrow in the ''Folder Path'' text box and select ''Other...'' from the drop down menu. Once a suitable folder has been selected, enter a name for the share in the ''Folder Name'' field. If the guest operating system is to be denied write access to the folder, ensure that the ''Read-only'' check box is selected.
 
If the share is to be transient (in other words it will not be restored when the virtual machine is restarted) leave the ''Permanent'' check box unselected before clicking the ''OK'' button to create the share.
== Accessing a Shared Folder from a Windows Guest ==
Volume Serial Number is 08BA-295C
</pre>
 
== Accessing a Shared Folder from a Linux Guest ==
 
Shared Folders are accessed on Linux guests by mounting the folder at a mount point using the ''mount'' command. This can either be an existing directory, or a new directory may be created specifically for this purpose. The syntax to perform the mount (which must be performed as super-user or using the ''sudo'' command) is as follows:
 
mount -t vboxsf [-o ''MOUNT OPTIONS''] ''ShareName MointPoint''
 
where [-o ''MOUNT OPTIONS''] represents any optional directives to the mount command, ''ShareName'' is the name assigned to shared folder when it was created and ''MountPoint'' is the path to the directory on the guest where the shared folder is to be mounted. For example, to mount a shared folder named ''TempFiles'' using ''/tmp/mnt'' as the mount point:
 
<pre>
mkdir /tmp/mnt
mount -t vboxsf TempFiles /tmp/mnt
</pre>
 
Once this command has been executed, the files in the host folder will be accessible in /tmp/mnt.
1,798
edits

Navigation menu