13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant/VirtualBoxで「GuestAdditions seems to be installed (6.0.8) correctly, but not running.」出たときの対処法

Last updated at Posted at 2019-06-04

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 haltvagrant upで動き出すはず

おわり

  • ちなみに参考にしたIssueみてるとVirtualBox 6.0.6でも起こるそうな

参考URL

13
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?