Apache Cloudstack开发环境创建实例失败

时间:2014-04-09 18:29:00

标签: cloud virtual-machine apache-cloudstack

我正在尝试按照guide使用我的笔记本电脑构建构建cloudstack 4.2,一切顺利。但是当我尝试创建一个实例时,我遇到了以下错误:

WARN  [apache.cloudstack.alerts] (Job-Executor-1:job-11 = [ b3f84a36-095d-460d-a577-e8ef202cc218 ])  alertType:: 8 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id: 5, on Host with Id: null
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [ b3f84a36-095d-460d-a577-e8ef202cc218 ]) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface com.cloud.dc.DataCenter; id=1
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [ b3f84a36-095d-460d-a577-e8ef202cc218 ]) Unable to create a deployment for VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface com.cloud.dc.DataCenter; id=1
    at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:209)
    at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
    at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3412)
    at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3000)
    at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2986)
    at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
    at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
    at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

当我创建启用了数据磁盘产品的实例时会发生这种情况, 为什么会这样?我想测试具有完整功能的Cloudstack。有什么建议我应该使用什么版本的Cloudstack?

1 个答案:

答案 0 :(得分:1)

您尝试部署VM的主机很可能没有所需的容量。您说在使用数据磁盘创建VM时失败了。 请检查您的主机是否具有所需的主存储空间。

您可以通过用户界面和API进行检查。 请使用API​​ listHosts 并传递主机ID。您将能够看到分配,使用和可用的主存储总量。

同样适用于RAM,CPU核心和二级存储。