1
0

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 1 year has passed since last update.

[Vagrant][VirtualBox] Vagrantが起動しない The guest machine entered an invalid state while waiting for it to boot 解決法

Posted at

概要

Vagrant を経由してVirtualbox を使用すると
起動しないことがある

$ 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.

原因

Vagrant というVirtualbox VM側に問題があるため
Virtualbox managerを開いてVMの状態を確認

( VM単体というよりも
ファイル共有用のprocess とかVagrantで指定した+αのもので時間がかかっている気がする

解決法

自分の場合は、以下で動くことが多い

Virtualbox managerをGUIで開いて Runningとなっているのを 右click ->close ->shutdown

ようはVM自体 をshutdownしてrestart

( 念の為、timeout を伸ばしておく

Vagrantfile
Vagrant.configure("2") do |config|
    ...
    config.vm.boot_timeout = 1000 # timeout を伸ばす..
end

参考

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?