以前在mac上安装laravel/homestead vagrant虚拟机环境时因为参照的教程是: 每次都必须在~/Homestead目录下边运行vagrant up/halt命令,以为实在是不方便,因而乎按照另一个教程(在任何目录下能够经过homestead up来启动虚拟机)来配置环境,可是当键入homestead up时,却报出laravel
==> default: Importing base box 'laravel/homestead'...spa
==> default: Matching MAC address for NAT networking...vagrant
A VirtualBox machine with the name 'homestead' already exists.教程
Please use another name or delete the machine with the existing虚拟机
name, and try again.it
这样的错误配置
stackoverflow上好几我的说经过vagrant global-status 查看虚拟器,而后在vagrant destroy {id}删除对应名称的虚拟机能够解决问题,可是重复n遍homestead up或者到~/Homestead下运行vagrant up以后,仍是会报出上边的错误,后来经过VBoxManage list vms获取虚拟机列表,而后在经过运行network
VBoxManage unregistervm homestead --deletehomestead
以后,从新运行homestead up以后 一切回归正常stackoverflow