Posted at

【Vagrant】非常に稀なVagrantの問題が発生した際の解決方法(のうちの一つ)


TL;DR

vagrant plugin updateコマンドを実行し関連するプラグイン(今回の場合vagrant-vbguest)をアップデートするといけた


vagrant up時にエラー発生

vagrant upした際に以下のようなエラーが発生

The guest machine entered an invalid state while waiting for it

to boot. Valid states are 'starting, running'. The machine is in the
'unknown' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.

なんか


This is very rarely a Vagrant issue.


らしい


解決方法

vagrant plugin updateで関連するpluginのバージョンをあげてみたらうまく動くようになりました

>vagrant plugin update

Updating installed plugins...
Fetching: vagrant-vbguest-0.18.0.gem (100%)
Successfully uninstalled vagrant-vbguest-0.17.2
Updated 'vagrant-vbguest' to version '0.18.0'!

vagrant-vbguestが古かったみたいなのが原因らしかったです


ほかにも

vagrant plugin repairという既存プラグインの修復を試みるコマンドもあるのでこれを先に試してみてもいいかもしれません。

>vagrant plugin repair

Repairing currently installed global plugins. This may take a few minutes...
Installed plugins successfully repaired!


おわり


  • なんかWindowsUpdateが来るたびに起動しなくなるきがする