Webデザイン

Vagrant(VCCW)が起動しない時の対処法 (The machine is in the ‘power off’ state.)

Webデザイン

Windowsアップデートが原因で、Vagrantが起動しなくなったので対処法をメモ。
エラーに、

The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'.
The machine is in the 'power off' 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.

と出た時は、マシンが「電源オフ」の状態なので、Oracle VM VirtualBoxのネットワーク設定を確認します。

  1. コントロールパネル
  2. ネットワークとインターネット
  3. ネットワークと共有センター
  4. アダプターの設定の変更
  5. 対象のVirtualBox Host-Only Ethernet Adapterを右クリック
  6. プロパティ
  7. VirtualBox NDIS6 Bridged Networking Driverをチェックする
VirtualBoxNDIS6BridgedNetworkingDriverをチェック

これでVagrantを起動したら正常に動きだしました。
なぜチェックが外れてしまったかは謎ですが、取り急ぎマシンが起動してないよ!ってゆうエラーを吐いた時は、Oracle VM VirtualBoxのネットワーク設定を確認する。

comment

タイトルとURLをコピーしました