1

在执行 vagrant up 时出现下面的错误

Failed to mount folders in Linux guest. This is usually beacuse
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 apache | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=777,fmode=777 /vagrant /vagrant

解决方法:

sudo /etc/init.d/vboxadd setup
# 中略 结果应全部ok
vagrant halt
vagrant up

中间如果有问题会提示你查看日志,可能会出现的问题有:没有安装kernel-devel,或者是没有安装编译环境等。


xi4oh4o
85 声望7 粉丝

ACGNM・OS X・Arch・Git・Vim・Laravel・Ruby・Python・Web・DevOps・❤ Like programming and frontend designing・Now: Responsible Moefou System operation and maintenance