8
5

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】非常に稀なVagrantの問題が発生した際の解決方法(のうちの一つ)

Last updated at Posted at 2019-06-17

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が来るたびに起動しなくなるきがする
8
5
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
8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?