Problem with Vagrant up - Homestead-7 already exists

Asked

Viewed 52 times

-2

Dear Friends, I need your help. I am trying to install the Windows using the Master. I followed a step-by-step but could not access index.php, so I decided to do it all over again. But when I give a Vagrant up it appears that there is already the machine Homestead-7, even after I have deleted it with Vagrant Destroy.

$ vagrant destroy
homestead-7: Are you sure you want to destroy the 'homestead-7' VM? [y/N] y
homestead-7: Destroying VM and associated drives...
$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
A VirtualBox machine with the name 'homestead-7' already exists.
Please use another name or delete the machine with the existing
name, and try again.

2 answers

-1

Try to access your virtualbox with the graphical interface, there should be a virtual machine there called Homestead-7. Delete it and try again.

This happened to me and deleting the machine by virtualbox the error disappeared.

-1

Use vagrant global-status to view all the virtual machines you have configured and the status of each of them:

$ vagrant global-status
id       name    provider   state    directory                           
-------------------------------------------------------------------------
2720c15  default virtualbox poweroff /home/giovanni/Vagrant/wordpress    
6c7b42f  default virtualbox poweroff /home/giovanni/Vagrant/wildfly      
384662f  default virtualbox poweroff /home/giovanni/Vagrant/mariadb 

Then you can use the command vagrant destroy referring to the id from the machine to remove it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.