Changes

Jump to: navigation, search

VirtualBox Shared Folders

333 bytes added, 15:47, 20 March 2009
Creating Shared Folders from the Command Prompt
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.
== Creating and Removing Shared Folders from the Command Prompt ==
VirtualBox shared folders can be created from the command prompt using the ''VBoxManage'' command-line tool on the host. VBoxManage is installed by default on Windows hosts in C:\Program Files\Sun\xVM VirtualBox and in /opt/VirtualBox on Linux.
The syntax to create a shared folder using VBoxManage is as follows:
:::VBoxManage sharedfolder add "<virtual machine>" -name "<share name>" -hostpath "<host path>"
where ''<virtual machine>'' is the name of the virtual machine to which the shared folder is to made available, ''<share name>'' is the name to be assigned to the share and ''<host path>'' is the path to the folder on the host file system. For example to make ''C:\Temp'' on the host system a shared folder named ''MyShare'' available to a virtual machine named ''Fedora 10'', the following command would need to be executed:
<pre>
vboxmanage sharedfolder add "WinVista64Fedora 10" -name "MyShare" -hostpath "C:\Temp"
VirtualBox Command Line Management Interface Version 2.1.4
To resolve this problem, power off the virtual machine and repeat the command.
 
The previously created shared folder may be removed using the VBoxManage tool as follows:
 
<pre>
C:\Program Files\Sun\xVM VirtualBox>vboxmanage sharedfolder remove "Fedora 10" -name "MyShare"
 
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
</pre>
== Accessing a Shared Folder from a Windows Guest ==
1,798
edits

Navigation menu