vagrant up
時にエラー発生
vagrant up
した際に以下のようなエラーが発生
GuestAdditions seems to be installed (6.0.8) correctly, but not running.
何回かvagrant reload
しても直らなかったんで対処法を調べてみました
実行環境と実行時ログ
- Windows10 Pro 64bit
- VirtualBox 6.0.8
- Vagrant 2.2.4
以下、エラー発生時の様子
bash: line 5: setup: command not found
==> ***********: Checking for guest additions in VM...
==> ***********: [vagrant-hostsupdater] Checking for host entries
==> ***********: [vagrant-hostsupdater] found entry for: 192.168.10.10 homestead.test
==> ***********: [vagrant-hostsupdater] Writing the following entries to (C:/WINDOWS/system32/drivers/etc/hosts)
==> ***********: [vagrant-hostsupdater] 192.168.10.10 *********** # VAGRANT: b251854545a1f9cc57aa5555c525555eac (***********) / b58e345456-cb06-40242-b3b9-60ae10b0434c
==> ***********: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file.
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
解決方法
Vagrantfile
に以下の記述を追加。
(vagrant-vbguest
の自動アップデート機能がオンになってるのが原因みたい?)
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
追加後、vagrant halt
→ vagrant up
で動き出すはず
おわり
- ちなみに参考にしたIssueみてるとVirtualBox 6.0.6でも起こるそうな