解決安裝laravel/homestead vagrant環境報"A VirtualBox machine with the name 'homestead' already exists."的錯誤

以前在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

相關文章
相關標籤/搜索