


Part 1 of this series includes instructions for installing the guest additions package for the FreeBSD guest OS. To share a folder using the following procedure, the OS-specific guest additions package must be pre-installed. You can set up NFS or Samba to share a folder between a Linux host and a FreeBSD guest. The method outlined in this blog post works for Linux and Windows guest OSes but not FreeBSD. Part 3 shows how the guest OS can access USB drives mounted on the host.

Part 2 outlines the post installation tasks, including installing the universal VirtualBox extension pack.

Part 1 of the series shows how to install VirtualBox on a Debian host, and how to create a FreeBSD virtual machine. The focus is on how to share folders between the host and the guest OSes. Enter the command /sbin/mount.vmhgfs -h to list the options.įor Linux kernel version 4.0 or later, enter the command /usr/bin/vmhgfs-fuse -h to list the available options.This post is the 4th installment of the VirtualBox series. Mounts the subdirectory bar within the share foo to /var/lib/barįor Linux kernel prior to version 4.0, you can use VMware-specific options in addition to the standard mount syntax. host:/foo/bar /var/lib/bar -o subtype=vmhgfs-fuse,allow_other host:/foo /tmp/foo -o subtype=vmhgfs-fuse,allow_other host:/ /home/user1/shares -o subtype=vmhgfs-fuse,allow_other Mount Command Syntax Linux Kernel Prior to 4.0 The commands also vary depending on the Linux-kernel version of the guest. You can use different mount commands to mount all shares, one share, or a subdirectory within a share to any location in the file system. Linux kernels 4.0 and later use a FUSE file system component. In Linux kernels prior to version 4.0, the VMware Tools services script loads a driver that performs the mount. After you enable a shared folder, you can mount one or more directories or subdirectories in the shared folder to any location in the file system in addition to the default location of /mnt/hgfs.ĭepending on the kernel version of the Linux guest operating system, VMware Tools uses different components to provide shared-folder functionality.
