运行Vagrant up时出错

运行Vagrant up时出错,vagrant,virtual-machine,virtualbox,vagrantfile,Vagrant,Virtual Machine,Virtualbox,Vagrantfile,起初,我有8台流浪机器在运行,但出了点问题。因此,我删除了~/VirtualBox\vms文件夹中的虚拟机,并将backup.vmdk文件放在同一位置。 然后我试着把流浪汉追上来。。。 但是我得到了以下错误 正在使用“virtualbox”提供程序启动计算机“virtual-am1” ==> virtual-am1: Importing base box 'centos653'... ==> virtual-am1: Matching MAC address for NAT netw

起初,我有8台流浪机器在运行,但出了点问题。因此,我删除了~/VirtualBox\vms文件夹中的虚拟机,并将backup.vmdk文件放在同一位置。 然后我试着把流浪汉追上来。。。 但是我得到了以下错误

正在使用“virtualbox”提供程序启动计算机“virtual-am1”

==> virtual-am1: Importing base box 'centos653'...
==> virtual-am1: Matching MAC address for NAT networking...
==> virtual-am1: Setting the name of the VM: vagrant_virtual-am1_1478100170176_83326
==> virtual-am1: Clearing any previously set network interfaces...
==> virtual-am1: Preparing network interfaces based on configuration...
    virtual-am1: Adapter 1: nat
    virtual-am1: Adapter 2: bridged
==> virtual-am1: Forwarding ports...
    virtual-am1: 22 (guest) => 2203 (host) (adapter 1)
==> virtual-am1: Running 'pre-boot' VM customizations...
   A customization command failed:

["modifyvm", :id, "--name", "virtual-am1"]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "6dd13964-e648-40cd-932e-3e18be375d31", "--name", "virtual-am1"]

Stderr: VBoxManage: error: Could not rename the directory '/home/vagrant/VirtualBox VMs/vagrant_virtual-am1_1478100170176_83326' to '/home/vagrant/VirtualBox VMs/virtual-am1' to save the settings file (VERR_ALREADY_EXISTS)

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports

VBoxManage: error: Context: "SaveSettings()" at line 2788 of file VBoxManageModifyVM.cpp

>Please fix this customization and try again.
这就是我的nodes.json文件的样子

{
  "nodes": {
    "virtual-am1": {
      ":node": "virtual-am1",
      ":ip": "192.168.1.50",
      ":hostname": "am1.onefederation.org",
      "ports": [
        {
          ":host": 2203,
          ":guest": 22,
          ":id": "ssh"
        }
      ],
      ":memory": 1024
    },
  }
}

请帮忙

我出现了此错误,您可以使用此修复程序:

删除vagrant中的文件夹项目

rm -rf /home/protobox/VirtualBox VMs/project_folder
转到项目文件夹:

cd /var/www/project_folder
然后重新启动流浪汉:

vagrant destroy**maybe more**`vagrant destroy -f`
vagrant reload
最后你开始流浪了

vagrant up
vagrant ssh
或者您可以在这里参考:


祝你好运

我出现了此错误,您可以使用此修复程序:

删除vagrant中的文件夹项目

rm -rf /home/protobox/VirtualBox VMs/project_folder
转到项目文件夹:

cd /var/www/project_folder
然后重新启动流浪汉:

vagrant destroy**maybe more**`vagrant destroy -f`
vagrant reload
最后你开始流浪了

vagrant up
vagrant ssh
或者您可以在这里参考:


祝你好运

你能提供更多关于出错原因的信息吗?最初,我让vm运行,并将所有vm的.vmdk文件作为备份。我让openAM在所有vm上运行,openAM的配置出现了问题。所以我决定摧毁所有的流浪机器,并把它们从我之前做的备份中带出来。我使用Vagrant destroy命令删除所有虚拟机。在/home/vagrant/Virtual-Box/vms中没有虚拟机。后来,我将包含备份中的.vmdk文件的vm文件夹放在同一位置(/home/vagrant/Virtual Box/vms),然后运行vagrant up。在运行vagrant up之后,我发现了上面的错误。你能提供更多关于出错原因的信息吗?最初,我让vm运行,我让所有vm的.vmdk文件作为备份。我让openAM在所有vm上运行,openAM的配置出现了问题。所以我决定摧毁所有的流浪机器,并把它们从我之前做的备份中带出来。我使用Vagrant destroy命令删除所有虚拟机。在/home/vagrant/Virtual-Box/vms中没有虚拟机。后来,我将包含备份中的.vmdk文件的vm文件夹放在同一位置(/home/vagrant/Virtual Box/vms),然后运行vagrant up。在运行“流浪者”之后,我得到了上述错误。