首页 > 学习笔记 > 解决Vagrant up遇到不能挂载共享目录/vagrant
2016
12-14

解决Vagrant up遇到不能挂载共享目录/vagrant

故障
vagrant管理的centos虚拟机在做过 yum -y update 后更新了系统以及内核
然后下一次vagrant up的时候共享目录不能挂载到/vagrant目录( /sbin/mount.vboxsf: mounting failed with the error: No such device)

详细信息

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -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的连接的问题。
需要执行
sudo /etc/init.d/vboxadd setup

rsync could not be found on your PATH

问题描述

rsync could not be found on your PATH. Make sure that rsync is properly installed on your system and available on the PATH.

下载安装cygwin,选择rsync

2016-12-14_184936.png

这里选择cn 结尾的域名,速度比较快

2016-12-14_185037.png

view-->Full,Search-->rsync

图中显示我已经安装过了,如果没有安装会显示Skip,鼠标点击一下就是选中。

安装完成之后把安装目录添加到系统变量中

顺便把VirtualBox也添加到系统变量中

2016-12-14_185125.png


最后编辑:
作者:六度
这个人很懒什么也没留!~

发布评论

表情
需要勾选我,才能再发表评论