Problem with vagrant up - homestead-7 already exists

-2

I really need some help. I'm trying to install laravel using the homestead. 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 the homestead-7 machine already exists, even after I deleted it with the 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.
    
asked by anonymous 28.06.2018 / 23:41

2 answers

-1

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

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

    
28.06.2018 / 23:50
-1

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

$ 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 by referring to id on the machine to remove it.

    
28.06.2018 / 23:56