LoginSignup
0
0

More than 3 years have passed since last update.

vagrant upしてもdestroyしても立ち上がらない

Posted at

LaravelのHomesteadを作って作業していたが、うっかりVirtualBoxから仮想マシンを消してしまった。
いろいろ復元しようとしたが上手くいかなかったので、諦めていちから再構築しようとしたら、同じ名前で作り直したHomesteadが立ち上がらない。

A VirtualBox machine with the name 'homestead' already exists.
Please use another name or delete the machine with the existing
name, and try again.

Homesteadのフォルダはいったん削除して、新たにgit cloneしなおして作成したし。
Laravelのプロジェクトも新たに作成したし。
「vagrant global-status」で変に残ってたvagrantもdestroyしたし。
なのに動かない。

原因

VM VirtualBox Mangerを立ち上げてみたところ、同じ名前の仮想マシンがあった。
これを除去してからvagrant upを実行したら、立ち上がりましたよ。

あのエラーメッセージって、VirtualBoxに同じ名前があるってことだったのね。
って、そう書いてあるやんか!

大変失礼いたしました。
自分への戒めとして投稿しておきます。

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