Chinaunix首页 | 论坛 | 博客
  • 博客访问: 393251
  • 博文数量: 80
  • 博客积分: 885
  • 博客等级: 准尉
  • 技术积分: 917
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-02 11:43
个人简介

人生就是一次旅行,生活就是艺术,人人都是手艺人.

文章分类

全部博文(80)

文章存档

2023年(1)

2022年(5)

2019年(3)

2018年(1)

2017年(6)

2016年(4)

2014年(8)

2013年(20)

2012年(9)

2010年(3)

2009年(17)

2008年(3)

我的朋友

分类: LINUX

2017-11-07 10:06:34

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:


mount -t vboxsf -o uid=500,gid=500 vagrant /vagrant


The error output from the command was:
mount: Protocol error

1、检查自己的virtualbox 版本,选择相应的增强功能软件
可以在找到相应的版本的
2、挂载CDROM
登录系统
[root@lnmp3 ~]# mkdir /cdrom
[root@lnmp3 ~]# mount /dev/cdrom /cdrom
[root@lnmp3 ~]# cd /cdrom [root@lnmp3 cdrom]# ./VBoxLinuxAdditions.run
安装完成后:  
[root@lnmp3 cdrom]# rm -rf /sbin/mount.vboxsf
[root@lnmp3 cdrom]# ln -s /opt/VBoxGuestAdditions-X.X.XX/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf #X.X.XX就你的virtualbox 版本例如:5.1.20
3.运行:mount -t vboxsf -o uid=500,gid=500 vagrant /vagrant
ok!!!解决
 
阅读(777) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~