VirtualBox上安装的是Ubuntu 16.4版本

1、打开虚拟机,点击“控制”--“设置”--“共享文件夹”,点击“固定分配”添加

VirtualBox与主机共享文件夹教程


2、勾选“固定分配”,路径为在Windows主机上新建的共享文件夹的路径

VirtualBox与主机共享文件夹教程

3、在windows主机对应的路径上(E盘)新建share文件夹

4、在虚拟机上进入根目录:

>su

>cd mnt

>mkdir share

挂载:>sudo mount -t vboxsf share /mnt/share/

进入 /mnt/share/目录就可以查看Windows下的文件

参考:https://jingyan.baidu.com/article/c1a3101e7aac93de656deb27.html

相关文章: