Vagrant错误:无法在Linux guest虚拟机中装入文件夹

dig*_*age 4 virtualbox vagrant

我有一个流浪错误.日志如下:

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
Run Code Online (Sandbox Code Playgroud)

我谷歌吧.StackOverflow有同样的问题:

Vagrant错误:无法在Linux guest虚拟机中装入文件夹

我做到了最好的答案:这里.不同的是我下载了VBoxGuestAdditions_4.3.18.iso.但它没有用.

我尝试第二个答案:这里.它也没用.

所以,我不得不问这个问题.

我的环境是:

  • Mac OSX 10.10
  • 流浪汉1.6.3
  • CentOS 6.5版(最终版)
  • 内核2.6.32-431.29.2.el6.x86_64
  • VirtualBox 4.3.18

PS:

我用的是盒子厨师/ centos-6.5.我先启动这个盒子,没关系.但是sudo yum update,然后sudo yum clean,我重新启动该框,导出错误.

小智 5

使用以下对我来说工作正常.

vagrant plugin install vagrant-vbguest
Run Code Online (Sandbox Code Playgroud)