将主机Mac OS上的文件夹共享到VirtualBox中的访客Linux系统

我如何去在虚拟框中的主机(Mac)和客户操作系统(Ubuntu)之间共享一个文件夹?

您需要在Ubuntu中安装Guest Additions的最新版本的VirtualBox(4.3.10)。

  • 在VirtualBox中closures并select虚拟机后,请转到:机器>设置…>共享文件夹
  • 对于“文件夹path”,单击图标浏览要共享的文件夹。
  • 对于“文件夹名称”,input名称来描述共享。
  • 点击“确定”,再次启动虚拟机。
  • 创build一个基本上是空文件夹的挂载点。
  • 启动terminal并键入: sudo mount -t vboxsf folder_name path_to_mount_point folder_name是您在前面键入的用于描述共享的名称
  • 你现在应该可以浏览共享文件夹。

在安装相同的情况下,如下面的错误:

 mount: wrong fs type, bad option, bad superblock on mydata, missing codepage or helper program, or other error (for several filesystems (eg nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so 

执行以下步骤:

 sudo rm /sbin/mount.vboxsf sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf