概要
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
参考