svn commit: r52917 - head/en_US.ISO8859-1/books/handbook/virtualization

Benedict Reuschling bcr at FreeBSD.org
Thu Apr 11 20:20:33 UTC 2019


Author: bcr
Date: Thu Apr 11 20:20:32 2019
New Revision: 52917
URL: https://svnweb.freebsd.org/changeset/doc/52917

Log:
  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

Modified:
  head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml

Modified: head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml	Wed Apr 10 02:10:45 2019	(r52916)
+++ head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml	Thu Apr 11 20:20:32 2019	(r52917)
@@ -820,6 +820,23 @@ EndSection</programlisting>
     </match>
   </device>
 </deviceinfo></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">


More information about the svn-doc-all mailing list