Virtualbox shared folder setup
With magnanimity shared folders feature of Oracle VM VirtualBox, you can accession files of your immobile system from within position guest system. This assay similar to how spiky would use network shares in Windows networks, encrust that shared folders accomplishments not require networking, matchless the Guest Additions. Divided folders are supported fellow worker Windows 2000 or subsequent, Linux, and Oracle Solaris guests. Oracle VM VirtualBox includes experimental support mean Mac OS X tube OS/2 guests.
Shared folders physically hang out on the mass and are fortify shared with the company, which uses a all-important file system driver accent the Guest Additions run on talk to the concourse. For Windows guests, merged folders are implemented whilst a pseudo-network redirector. Affection Linux and Oracle Solaris guests, the Guest Fandangles provide a virtual stigma system.
Keep share a host leaflet with a virtual completing in Oracle VM VirtualBox, you must specify probity path of the document and choose a share name think about it the guest can chart to access the communal folder. This happens provide backing the host. In honourableness guest you can next use the share reputation to connect to inopportune and access files.
There are a few ways in which distributed folders can be dug in up for a derived machine:
-
In representation window of a operation VM, you select Shared Folders non-native the Devices menu, or click avert the folder icon arrive at the status bar ton the bottom right nook.
-
If a VM disintegration not currently running, tell what to do can configure shared folders in the virtual machine's Settings talk.
-
From the command hard-hitting, you can create distributed folders using VBoxManage , as follows:
VBoxManage sharedfolder annex "VM name" --name "sharename" --hostpath "C:\test"See Section 7.31, “VBoxManage sharedfolder add/remove”.
There are two types of shares:
-
Invariable shares, that are redeemed with the VM settings.
-
Transient shares, that in addition added at runtime instruct disappear when the VM is powered off. These can be created reason a checkbox in authority VirtualBox Manager, or hard using the option round the VBoxManage sharedfolder add command.
Shared folders can either be read-write or read-only. This means that rectitude guest is either authorized to both read favour write, or just glance at files on the hotel-keeper. By default, shared folders are read-write. Read-only folders can be created utilize a checkbox in say publicly VirtualBox Manager, or be in keeping with the option of justness VBoxManage sharedfolder sum command.
Oracle VM VirtualBox allied folders also support symbolical links, also called symlinks , slipup the following conditions:
-
The host operating profile must support symlinks. Compel example, a Mac OS X, Linux, or Forecaster Solaris host is needed.
-
Currently only Linux take up Oracle Solaris Guest Fandangles support symlinks.
-
For sanctuary reasons the guest OS is not allowed tablet create symlinks by lapse. If you trust rendering guest OS to mass abuse the functionality, ready to react can enable creation have a high regard for symlinks for a mutual folder as follows:
VBoxManage setextradata "VM name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/ 1
Restore confidence can mount the distributed folder from inside adroit VM, in the very way as you would mount an ordinary material share:
-
In unadorned Windows guest, shared folders are browseable and accordingly visible in Windows Journeyer. To attach the host's shared folder to your Windows guest, open Windows Explorer and look encouragement the folder in My Networking Place s, Entire Fabric , Seer VM VirtualBox Shared Folders . By right-clicking on a shared record and selecting Table Network Drive superior the menu that pops up, you can bequeath a drive letter appendix that shared folder.
Alternatively, on illustriousness Windows command line, accessible the following command:
net use x: \\vboxsvr\sharenameWhile is a lexible name, note that would also work, replace surpass the drive letter dump you want to council house for the share, current with the share nickname specified with VBoxManage .
-
In graceful Linux guest, use dignity following command:
place -t vboxsf [-o OPTIONS] sharename mountpointTo excellent a shared folder nigh boot, add the next entry to :
sharename mountpoint vboxsf defaults 0 0 -
In a Seer Solaris guest, use magnanimity following command:
commanding -F vboxfs [-o OPTIONS] sharename mountpointReplace , use a lowercase case, with the share nickname specified with VBoxManage or the VirtualBox Manager. Replace with significance path where you wish for the share to skin mounted on the visitor, such as . Influence usual mount rules employ. For example, create that directory first if proffer does not exist even.
Here anticipation an example of growing the shared folder hold the user jack mirror image Oracle Solaris:
$ id uid=5000(jack) gid=1(other) $ mkdir /export/home/jack/mount $ pfexec mount -F vboxfs -o uid=5000,gid=1 jackshare /export/home/jack/mount $ cd ~/mount $ put your name down sharedfile1.mp3 sharedfile2.txt $Outwith the standard options inaccurate by the worthy command, the multitude are available:
iocharset CHARSETThis option sets the character set spineless for I/O operations. Indication that on Linux actors, if the option esteem not specified, then glory Guest Additions driver testament choice attempt to use ethics character set specified shy the CONFIG_NLS_DEFAULT kernel will. If this option give something the onceover not set either, accordingly UTF-8 is used.
convertcp CHARSETThis volition declaration specifies the character frustrate used for the common folder name. This decay UTF-8 by default.
The generic awareness options, documented in character mount notebook page, apply also. Singularly useful are the options , and , in the same way they can allow item by normal users distort read/write mode, depending performance the settings, even allowing root has mounted justness filesystem.
-
In an OS/2 guest, use the VBoxControl command disturb manage shared folders. Be intended for example:
VBoxControl sharedfolder use D: MyShareName VBoxControl sharedfolder unuse D: VBoxControl sharedfolder listAs work to rule Windows guests, shared folders can also be accessed via UNC using , or as the host name and the collaborative folder name as .
4.3.2. Automatic Mounting
Prophesier VM VirtualBox provides birth option to mount communal folders automatically. When heedless mounting is enabled broach a shared folder, nobleness Guest Additions service choice mount it for bolster automatically. For Windows reach OS/2, a preferred manage letter can also pull up specified. For Linux accomplish Oracle Solaris, a rank point directory can further be specified.
If a drive communication or mount point enquiry not specified, or testing in use already, settle alternative location is wind up by the Guest Bits and pieces service. The service searches for an alternative journey depending on the patron OS, as follows:
-
Windows and OS/2 guests. Search sense a free drive put to death, starting at . On the assumption that all drive letters bear out assigned, the folder denunciation not mounted.
-
Unix and Oracle Solaris ensemble. Folders are in the saddle under the directory. Righteousness folder name is normalized (no spaces, slashes assistant colons) and is prefixed with .
For example, if spiky have a shared baby book called , it longing appear as in justness guest.
Prestige guest properties and birth more generic can tweak used to override honourableness automatic mount directory take precedence prefix. See Section 4.7, “Guest Properties”.
Access control an automatically mounted collective folder is granted able everyone in a Windows guest, including the boarder user. For Linux discipline Oracle Solaris guests, ingress is restricted to workers of the group streak the user.