Vagrant laravel/homestead 共享文件夹在 2.1.0 更新后未安装
Vagrant laravel/homestead shared folders not mounting after 2.1.0 update
我已经在互联网上上下搜索了这个问题,并且总是考虑在这里问最后的手段。话虽这么说,如果之前有人问过并解决过这个问题,请指出正确的方向。
我在 macOS Sierra 10.12.5 上使用 Virtualbox 5.1.22 和 vagrant 版本 1.9.6
昨天我把我的homestead box从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
非常感谢任何帮助。
谢谢。
编辑:为什么投反对票?这似乎是一个非常合理的问题?
所以我找到并安装了这个:https://github.com/dotless-de/vagrant-vbguest
我不知道为什么我现在需要一个插件,因为它在更新之前工作得很好但是嘿......它有效。
盒子附带 VirtualBox Guest Addition 给定版本的 VirtualBox,这不是您 运行 在主机上使用的版本。
您需要做的是将来宾 VM 中的 Guest Additions 更新为与主机上 运行 相同版本的 VirtualBox。
我评论中提到的简单方法是使用 vagrant vbguest plugin,它会比较主机和来宾软件的版本,并在需要时自动对齐。我发现它非常方便,如果需要,可以选择禁用更新。
如果您不想 运行 额外的插件,您可以在来宾 VM 上手动进行更新。
您需要为相同版本的 VirtualBox 下载 Guest Addition (5.1.22 in your case) and follow the instructions to install
我已经在互联网上上下搜索了这个问题,并且总是考虑在这里问最后的手段。话虽这么说,如果之前有人问过并解决过这个问题,请指出正确的方向。
我在 macOS Sierra 10.12.5 上使用 Virtualbox 5.1.22 和 vagrant 版本 1.9.6
昨天我把我的homestead box从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
非常感谢任何帮助。
谢谢。
编辑:为什么投反对票?这似乎是一个非常合理的问题?
所以我找到并安装了这个:https://github.com/dotless-de/vagrant-vbguest
我不知道为什么我现在需要一个插件,因为它在更新之前工作得很好但是嘿......它有效。
盒子附带 VirtualBox Guest Addition 给定版本的 VirtualBox,这不是您 运行 在主机上使用的版本。
您需要做的是将来宾 VM 中的 Guest Additions 更新为与主机上 运行 相同版本的 VirtualBox。
我评论中提到的简单方法是使用 vagrant vbguest plugin,它会比较主机和来宾软件的版本,并在需要时自动对齐。我发现它非常方便,如果需要,可以选择禁用更新。
如果您不想 运行 额外的插件,您可以在来宾 VM 上手动进行更新。
您需要为相同版本的 VirtualBox 下载 Guest Addition (5.1.22 in your case) and follow the instructions to install