步骤一:设置共享目录

virtualBox挂载文件夹

virtualBox挂载文件夹

步骤二:挂载到虚拟机

$ sudo /sbin/mount.vboxsf webProduct /mnt/
如果没报错,挂载成功,否则继续往下看
报错信息为: /sbin/mount.vboxsf: mounting failed with the error: No such device

步骤三:解决办法

yum clean all
yum update
yum install kernel
yum install kernel-devel
yum install kernel-headers
yum install gcc
yum install make
reboot

cd /opt/VBoxGuestAdditions-*/init
./vboxadd setup
reboot

然后继续执行:
$ sudo /sbin/mount.vboxsf webProduct /mnt/
好了,成功。

原文出自:http://blog.csdn.net/daiyudong2020/article/details/58073520

相关文章:

  • 2022-03-07
  • 2021-09-25
  • 2021-04-25
  • 2021-06-20
  • 2021-12-15
  • 2021-07-24
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-07-20
  • 2021-12-31
  • 2022-01-01
相关资源
相似解决方案