您的位置:首页 > 其它

解决yum update更新后Vagrant up遇到不能挂载共享目录/vagrant

2016-02-22 11:30 387 查看


转载自:http://www.iamle.com/archives/1908.html


故障

vagrant管理的centos虚拟机在做过 yum -y update 后更新了系统以及内核

然后下一次vagrant up的时候共享目录不能挂载到/vagrant目录( /sbin/mount.vboxsf: mounting failed with the error: No such device)

详细信息

1234567891011Failed to mount folders in Linux guest. This is usually becausethe "vboxsf" file system is not available. Please verify thatthe guest additions are properly installed in the guest andcan work properly. The command attempted was: mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrantmount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant The error output from the last command was: /sbin/mount.vboxsf: mounting failed with the error: No such device
搜索资料知道原因是yum update更新了内核,但是没有更新VirtualBox的连接的问题。需要执行

1

sudo
/etc/init.d/vboxadd
setup

修复即可


资料

‘vagrant
up’ fails to mount linked directory /vagrant

Vagrant up遇到mount no such
device的问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: