centos - Vagrant 启动时设置超时

标签 centos timeout vagrant virtualbox

我这样做是作为 Ambari 设置的一部分。遵循 quick start 与 Ambari 和 Vagrant 的步骤。

我正在使用这个 CentOS 6.4 镜像:
https://github.com/u39kun/ambari-vagrant/blob/master/centos6.4/Vagrantfile

我在 RHEL 7.2 主机和 VirtualBox 5 的 Google Cloud 上执行此操作,但按照建议安装了 CentOS 6.4 guest 。

我成功安装并配置了先决条件(需要进行调整以使 vbox 5 在 RHEL 7.2 上运行)。

当我尝试启动 6 台主机时,我看到机器没有启动的超时。

我正在运行的主机速度很快 - 32 核、64 GB RAM、500 GB SSD ...

有谁知道可能是什么问题?
是否有一些我需要关闭的防火墙等?

[<myuser>@ambari-host-rhel7 centos6.4]$ ./up.sh 6
Bringing machine 'c6401' up with 'virtualbox' provider...
==> c6401: Box 'centos6.4' could not be found. Attempting to find and install... c6401: Box Provider: virtualbox c6401: Box Version: >= 0
==> c6401: Box file was not detected as metadata. Adding it directly...
==> c6401: Adding box 'centos6.4' (v0) for provider: virtualbox c6401: Downloading: http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box
==> c6401: Box download is resuming from prior download progress
==> c6401: Successfully added box 'centos6.4' (v0) for 'virtualbox'!
==> c6401: Importing base box 'centos6.4'...
==> c6401: Matching MAC address for NAT networking...
==> c6401: Setting the name of the VM: centos64_c6401_1456171923223_2329
==> c6401: Clearing any previously set network interfaces...
==> c6401: Preparing network interfaces based on configuration... c6401: Adapter 1: nat c6401: Adapter 2: hostonly
==> c6401: Forwarding ports... c6401: 22 (guest) => 2222 (host) (adapter 1)
==> c6401: Running 'pre-boot' VM customizations...
==> c6401: Booting VM...
==> c6401: Waiting for machine to boot. This may take a few minutes... c6401: SSH address: 127.0.0.1:2222 c6401: SSH username: vagrant c6401: SSH auth method: private key


Timed out while waiting for the machine to boot. This means thatVagrant was unable to communicate with the guest machine withinthe configured ("config.vm.boot_timeout" value) time period.If you look above, you should be able to see the error(s) thatVagrant had when attempting to connect to the machine. These errorsare usually good hints as to what may be wrong.If you're using a custom box, make sure that networking is properlyworking and you're able to connect to the machine. It is a commonproblem that networking isn't setup properly in these boxes.Verify that authentication configurations are also setup properly,as well.If the box appears to be booting properly, you may want to increasethe timeout ("config.vm.boot_timeout") value.

作为最后一步,我得到了这个摘要错误:
There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. 
The command and stderr is shown below.

Command: ["import", "/home/<me>/.vagrant.d/boxes/centos6.4/0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "CentOS-6.4-x86_64_1456173504674_45962", "--vsys", "0", "--unit", "9", "--disk", "/home/<me>/VirtualBox VMs/CentOS-6.4-x86_64_1456173504674_45962/box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Interpreting /home/<me>/.vagrant.d/boxes/centos6.4/0/virtualbox/box.ovf...OK.0%...
Progress state: VBOX_E_FILE_ERRORVBoxManage: error: Appliance import failedVBoxManage: error: Could not create the imported medium '/home/<me>/VirtualBox VMs/CentOS-6.4-x86_64_1456173504674_45962/box-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/home/<me>/VirtualBox VMs/CentOS-6.4-x86_64_1456173504674_45962/box-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp

任何想法可能会发生什么?

最佳答案

您的驱动器上还有可用空间吗?

一般VERR_DISK_FULL表示硬盘已满,无法为 vdi 文件提供足够的空间。

关于centos - Vagrant 启动时设置超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35568505/

相关文章:

tomcat - 启动在 centos 上运行的 Artifactory/Tomcat 后出现 404

.net - .Net 2.0 的可靠 HTTP 库

jquery - 如何在 jQuery 中更改元素文本、暂停和重置原始文本

php - 如何防止插入语句超时?

windows - Vagrant "Authentication failure"during up, but "vagrant ssh"get in just fine

linux - 问题 "Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo"

linux - 如何通过 Grunt 将 Angular 应用程序部署到 CentOS?

python-3.x - 这段 python 代码挂了我的整个系统,有人知道吗?

php - Apache RewriteRule 在 http 下工作,而不是在 https 下工作

ssh - 向 vagrant 添加自定义 ssh key