Before installing the Laravel/homestead vagrant Virtual machine environment on your Mac because of the reference tutorial is: Every time must be run under the ~/homestead directory Vagrant up/halt Command, it is really inconvenient, The environment is then configured according to another tutorial (which can start a virtual machine from homestead up in any directory), but when you type homestead up, you report
==> default:importing Base box ' laravel/homestead ' ...
==> default:matching MAC address for NAT networking ...
A VirtualBox machine with the name ' Homestead ' already exists.
Another name or delete the machine with the existing
Name, and try again.
Such a mistake
StackOverflow Several people said that it would solve the problem to view the virtual machine by Vagrant Global-status and then delete the corresponding name in vagrant destroy {ID}, but repeat n times homestead up or to ~/ After running vagrant up under Homestead, the top error is still reported, and then the list of VMS is retrieved by Vboxmanage list VMs and then run
Vboxmanage UNREGISTERVM Homestead--delete
After that, rerun homestead up and everything goes back to normal.
Fix installation Laravel/homestead vagrant "A VirtualBox machine with the name ' Homestead ' already exists." The error