2020年3月1日上午8:54分,經過半個月的奮戰終於完成了,我自己的laravel專案,睡一覺起來重新啟動homestead發現報錯:
$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Checking if box 'laravel/homestead' version '8.0.0' is up to date...
==> homestead-7: A newer version of the box 'laravel/homestead' for provider 'virtualbox' is
==> homestead-7: available! You currently have version '8.0.0'. The latest is version
==> homestead-7: '9.2.0'. Run `vagrant box update` to update.
Your VM has become "inaccessible." Unfortunately, this is a critical error
with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox
and clear out your inaccessible virtual machines or find a way to fix
them.
瞬間懵逼這是怎麼回事,自己一看是我的homestead 當前版本是8.0,提示資訊是目前最新版本為9.2,需要更新一下。於是按照提示我執行了更新命令:
vagrant box update
。
等待一小時後重新啟動homestead後仍然報錯$ vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Checking if box 'laravel/homestead' version '8.0.0' is up to date... Your VM has become "inaccessible." Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.
按照提示我將
Oracle VM VirtualBox
中的虛擬機器刪除了重新啟動仍按報錯,提示如下:$ 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' version '8.0.0' is up to date... ==> homestead-7: Setting the name of the VM: homestead-7 The name of your virtual machine couldn't be set because VirtualBox is reporting another VM with that name already exists. Most of the time, this is because of an error with VirtualBox not cleaning up properly. To fix this, verify that no VMs with that name do exist (by opening the VirtualBox GUI). If they don't, then look at the folder in the error message from VirtualBox below and remove it if there isn't any information you need in there. VirtualBox error: VBoxManage.exe: error: Could not rename the directory 'C:\Users\18222\VirtualBox VMs\ubuntu-18.04-amd64_1583029545525_98719' to 'C:\Users\18222\VirtualBox VMs\homestead-7' to save the settings file (VERR_ALREADY_EXISTS) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "SaveSettings()" at line 3194 of file VBoxManageModifyVM.cpp
繼續檢視提示說明我們的虛擬檔案沒有刪除乾淨還有殘餘,並按照提示的資訊,在電腦使用者中找到了我的homestead安裝根目錄,在根目錄中找到了虛擬機器儲存檔案資料夾
VirtualBox VMs
在裡面將所有的虛擬機器檔案就OK了,因為是刪除了所有檔案所以資料庫也被刪除了。
本作品採用《CC 協議》,轉載必須註明作者和本文連結