Hello fellow programmers,
你好家伙程序员,
So i am currently assigned to install and configure Laravel 5 with homestead and Vagrant currently i am having various issues.. for now i came across the following error in my gitbash. Before this error i had run the init.sh again because someone told me he fixed his homestead that way.. So how can i fix this error?
所以,我现在被分配去安装和配置Laravel 5和homestead和流浪汉现在我有各种各样的问题。现在,我在我的gitbash中遇到了以下错误。在这个错误之前,我运行了init。因为有人告诉我,他是用那种方法固定住他的房子的。那么如何修正这个错误呢?
Oh and i am working on Windows 7.
哦,我在做Windows 7。
Welcome to Git (version 1.9.5-preview20150319)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
Stefano@STEFANO-PC ~/Homestead/Homestead (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead
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\Stefano\VirtualB
ox VMs\settler_default_1430450956915_11366_1431938089885_29938' to 'C:\Users\Ste
fano\VirtualBox VMs\homestead' to save the settings file (VERR_ALREADY_EXISTS)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachi
ne, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "SaveSettings()" at line 2788 of file VBoxManage
ModifyVM.cpp
Stefano@STEFANO-PC ~/Homestead/Homestead (master)
$
2 个解决方案
#1
5
You already did this, as stated in the error message?
您已经这样做了,正如在错误信息中所指出的那样?
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.
要修复这个问题,请验证没有使用该名称的vm(通过打开VirtualBox GUI)。如果他们没有,那么从下面的VirtualBox中查看错误消息中的文件夹,如果没有您需要的信息,就删除它。
#2
0
I was confused by the response because I was deleting the machine form virtual box manager. I went to the c/users/%user%/Vbox directory and deleted all the boxes and was able to reload the vbox. I suspect all data was lost but it was a fresh install but curious how to back up the data and restore it in this situation. (I.e. in the event I had data there I needed.)
我对响应感到困惑,因为我正在删除机器表单的虚拟框管理器。我访问了c/users/%user%/Vbox目录,并删除了所有的框,并能够重新加载Vbox。我怀疑所有的数据都丢失了,但这是一个新的安装,但奇怪的是如何备份数据并在这种情况下恢复它。(也就是说,如果我有数据,我需要。)
#1
5
You already did this, as stated in the error message?
您已经这样做了,正如在错误信息中所指出的那样?
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.
要修复这个问题,请验证没有使用该名称的vm(通过打开VirtualBox GUI)。如果他们没有,那么从下面的VirtualBox中查看错误消息中的文件夹,如果没有您需要的信息,就删除它。
#2
0
I was confused by the response because I was deleting the machine form virtual box manager. I went to the c/users/%user%/Vbox directory and deleted all the boxes and was able to reload the vbox. I suspect all data was lost but it was a fresh install but curious how to back up the data and restore it in this situation. (I.e. in the event I had data there I needed.)
我对响应感到困惑,因为我正在删除机器表单的虚拟框管理器。我访问了c/users/%user%/Vbox目录,并删除了所有的框,并能够重新加载Vbox。我怀疑所有的数据都丢失了,但这是一个新的安装,但奇怪的是如何备份数据并在这种情况下恢复它。(也就是说,如果我有数据,我需要。)