Add a description on how to mount VirtualBox shared folders.

Thanks to Gleb Popov who wrote the original patch and started the review.

Submitted by:		    arrowd@
Modified and expanded by:   me
Differential Revision:	    https://reviews.freebsd.org/D19873
This commit is contained in:
Benedict Reuschling 2019-04-11 20:20:32 +00:00
parent cf5529ef9c
commit dc2fc28a69
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52917

View file

@ -820,6 +820,23 @@ EndSection</programlisting>
&lt;/match&gt;
&lt;/device&gt;
&lt;/deviceinfo&gt;</programlisting>
<para>Shared folders for file transfers between host and VM are
accessible by mounting them using
<literal>mount_vboxfs</literal>. A shared folder can be created
on the host using the VirtualBox GUI or via
<command>vboxmanage</command>. For example, to create a shared
folder called <replaceable>myshare</replaceable> under
<filename><replaceable>/mnt/bsdboxshare</replaceable></filename>
for the VM named <replaceable>BSDBox</replaceable>, run:</para>
<screen>&prompt.root; <userinput>vboxmanage sharedfolder add '<replaceable>BSDBox</replaceable>' --name <replaceable>myshare</replaceable> --hostpath <replaceable>/mnt/bsdboxshare</replaceable></userinput></screen>
<para>Note that the shared folder name must not contain spaces.
Mount the shared folder from within the guest system like
this:</para>
<screen>&prompt.root; <userinput>mount_vboxfs -w <replaceable>myshare</replaceable> <replaceable>/mnt</replaceable></userinput></screen>
</sect1>
<sect1 xml:id="virtualization-host-virtualbox">