关闭虚拟机电源并在VirtualBox中选择它后,请转到:
机器>设置...>共享文件夹
对于文件夹路径",请单击图标浏览要共享的文件夹.
对于文件夹名称",输入一个名称来描述共享.
单击确定",然后再次启动虚拟机.
创建一个安装点,该安装点基本上是一个空文件夹.
启动终端并输入:
sudo mount -t vboxsf folder_name path_to_mount_point
folder_name是您之前输入的用于描述共享的名称
您现在应该可以浏览共享文件夹.
- With the Virtual Machine powered off and selected in VirtualBox, go to:
Machine > Settings ... > Shared Folders
- For "Folder Path", click the icon to browse for the folder you want to share.
- For "Folder Name", enter a name to describe the share.
- Click "OK" and start the virtual machine again.
- Create a mount point which is basically an empty folder.
- Fire up the terminal and type:
sudo mount -t vboxsf folder_name path_to_mount_point
folder_name is the name you typed in earlier to describe the share
- You should be able to browse the shared folder now.
万一安装困难,例如以下错误:
In case of difficulties mounting the same, such as the following error:
mount: wrong fs type, bad option, bad superblock on mydata,
missing codepage or helper program, or other error
(for several filesystems (e.g. 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
这篇关于将主机Mac OS的文件夹共享到VirtualBox中的来宾Linux系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!