Vagrant错误:无法在Linux guest虚拟机中装入文件夹
发布时间:2020-12-14 00:31:03 所属栏目:Linux 来源:网络整理
导读:我有一个流浪错误.日志如下: vagrant upBringing machine 'default' up with 'virtualbox' provider...== default: Clearing any previously set forwarded ports...== default: Clearing any previously set network interfaces...== default: Preparing n
我有一个流浪错误.日志如下:
vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /Users/diguage/box/centos 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 我谷歌吧. StackOverflow有同样的问题: Vagrant error : Failed to mount folders in Linux guest 我做到了最好的答案:here.不同的是我下载了VBoxGuestAdditions_4.3.18.iso.但它没有用. 我尝试第二个答案:here.它也没用. 所以,我不得不问这个问题. 我的环境是: > Mac OSX 10.10 PS: 我用了盒子chef / centos-6.5.我先启动盒子,没关系.但我sudo yum更新,然后sudo yum clean,重启盒子,导出错误. 解决方法
使用以下对我来说工作正常.
vagrant plugin install vagrant-vbguest (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |