Date: Thu, 11 Apr 2019 20:20:32 +0000 (UTC) From: Benedict Reuschling <bcr@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52917 - head/en_US.ISO8859-1/books/handbook/virtualization Message-ID: <201904112020.x3BKKWj3002267@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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">
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904112020.x3BKKWj3002267>