【问题标题】:Vagrant laravel/homestead shared folders not mounting after 2.1.0 updateVagrant laravel/homestead 共享文件夹在 2.1.0 更新后未安装
【发布时间】:2017-06-30 18:20:38
【问题描述】:

我已经在互联网上搜索了这个问题,并且总是考虑在这里问这个问题。话虽如此,如果在此之前已经提出并解决了这个问题,请指出我正确的方向。

我在 macOS Sierra 10.12.5 上使用 Virtualbox 5.1.22 和 vagrant 版本 1.9.6

昨天我将我的宅基地盒子从版本 2.0.0 升级到了 2.1.0。我只是在运行 vagrant up 之后才升级,它完成了它的工作并且很好,直到我今天进来把我的机器转一并尝试再次启动 vagrant 机器。我在正常内容的末尾收到以下错误:

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=900,gid=900 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

我试过vagrant reload,vagrant halt 然后vagrant up,重启机器重新运行,vagrant reload --provision

非常感谢任何帮助。

谢谢。

编辑:为什么投反对票?这似乎是一个完全合理的问题?

【问题讨论】:

  • 你有客人添加吗?它可能需要更新,最好是使用vagrant vbguest plugin
  • 是的,事实证明我必须添加插件......真的很烦人,因为它之前刚刚工作所以我不明白为什么我现在需要一个插件......
  • 不想要插件的可以自己更新,我觉得插件挺方便的
  • 如果我不想要插件怎么办?一切都是最新版本...
  • 更新您的客人添加

标签: laravel vagrant homestead


【解决方案1】:

该盒子带有VirtualBox Guest Addition,用于指定版本的 VirtualBox,这不是您在主机上运行的版本。

您需要做的是将客户虚拟机中的客户添加更新到您在主机上运行的相同版本的 VirtualBox。

  1. 我的 cmets 中提到的简单方法是使用 vagrant vbguest plugin,它会比较主机和访客软件的版本,并在需要时自动对齐。我觉得这很方便,如果需要,可以选择禁用更新。

  2. 如果您不想运行其他插件,可以手动在来宾 VM 上进行更新。

您需要为相同版本的 VirtualBox(在您的情况下为 5.1.22)下载 Guest Addition 并遵循 instructions to install

【讨论】:

    【解决方案2】:

    所以我找到并安装了这个:https://github.com/dotless-de/vagrant-vbguest

    我不知道为什么我现在需要一个插件,因为它在更新之前工作得很好,但是嘿......它工作正常。

    【讨论】:

      猜你喜欢
      • 2017-08-05
      • 2016-09-08
      • 2015-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多