最近 将 Virtualbox
升级到 6.0.6 ,出现了 一个奇怪的问题.以下是错误截图:
==> homestead-7: Machine booted and ready!
[homestead-7] GuestAdditions seems to be installed (6.0.6) correctly, but not running.
bash: line 5: setup: command not found
==> homestead-7: Checking for guest additions in VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
setup
Stdout from the command:
Stderr from the command:
bash: line 5: setup: command not found
谷歌了一番,发现很多人遇到此问题,貌似是 6.0.6 的一个 bug
以下是此问题的一些链接汇总
解决方案: 降级,将 Vagrant 将到6.0.4,或者采用如下方式:
打开 Vagrantfile
文件(例如我的 Windows 位置:C:\Users\larav\Homestead\)
编辑此文件,加入以下代码
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
随后 再次重新启动
vagrant halt
vagrant up