gpt4 book ai didi

Vagrant 错误 : Failed to mount folders in Linux guest

转载 作者:行者123 更新时间:2023-12-04 23:49:21 25 4
gpt4 key购买 nike

我有一个 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

我谷歌一下。 StackOverflow 有同样的问题:

Vagrant error : Failed to mount folders in Linux guest

我把它作为最佳答案: here .不同的是我下载了 VBoxGuestAdditions_4.3.18.iso .但它没有用。

我试试第二个答案: here .它也不起作用。

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

我的环境是:
  • Mac OSX 10.10
  • Vagrant 1.6.3
  • CentOS 6.5 版(最终版)
  • 内核 2.6.32-431.29.2.el6.x86_64
  • VirtualBox 4.3.18

  • PS:

    我用的盒子 chef / centos-6.5 .我先启动盒子,还好。但是我 sudo yum update ,然后 sudo yum clean ,重启盒子,导出错误。

    最佳答案

    使用以下对我来说很好用。

    vagrant plugin install vagrant-vbguest

    关于 Vagrant 错误 : Failed to mount folders in Linux guest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26482474/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com