Hi there, I'm trying to create instances via cloudmonkey with an ISO as templateid. This is intentional, the VMs are supposed to boot from ISO.
Using cloudstack 4.4.2 and cloudmonkey 5.3.0 I got the following error: (local) 🐵 > deploy virtualmachine templateid=648ea3c5-8015-4bff-be2d-f2f4e4e7ae43 serviceofferingid=ef3b04fa-52a2-4eee-bcd2-fa7de438caae networkids=2ab17815-dae1-4664-a991-bb4a5ad3346a zoneid=a6afefa1-c770-42d5-b5fb-ab328d814bbd diskofferingid=e28d6137-4a89-4e04-9a17-73100c318db0 .Error Async job a860fa38-c817-4dfa-8fb6-fd96b02d9d07 failed Error 533, Unable to create a deployment for VM[User|i-2-1262-VM] accountid = 98fabd82-43ce-11e4-940f-0030487e3bf9 cmd = org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin created = 2015-01-27T17:17:05+0100 jobid = a860fa38-c817-4dfa-8fb6-fd96b02d9d07 jobprocstatus = 0 jobresult: errorcode = 533 errortext = Unable to create a deployment for VM[User|i-2-1262-VM] jobresultcode = 530 jobresulttype = object jobstatus = 2 userid = 98fac86e-43ce-11e4-940f-0030487e3bf9 The logfile states, that the HyperVisorType does not match my running cluster. Interestingly, It works, If I deploy the very same machine via GUI. The ISO Template has "OS Type Other (64-bit)". Does that sound, if I'm holding it wrong? Or is it likely that I hit some bug? Thanks, - Stephan Below a snippet of /etc/cloudstack/management/management.log 015-01-27 17:27:17,882 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1 2015-01-27 17:27:17,885 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Removing from the clusterId list these clusters from avoid set: [] 2015-01-27 17:27:17,890 DEBUG [c.c.d.DeploymentPlanningManagerImpl] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Cluster: 2 has HyperVisorType that does not match the VM, skipping this cluster 2015-01-27 17:27:17,890 DEBUG [c.c.d.DeploymentPlanningManagerImpl] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Could not find suitable Deployment Destination for this VM under any clusters, returning. 2015-01-27 17:27:17,890 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Searching all possible resources under this Zone: 1 2015-01-27 17:27:17,891 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1 2015-01-27 17:27:17,892 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Removing from the clusterId list these clusters from avoid set: [2] 2015-01-27 17:27:17,893 DEBUG [c.c.d.FirstFitPlanner] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) No clusters found after removing disabled clusters and clusters in avoid list, returning. 2015-01-27 17:27:17,894 DEBUG [c.c.v.UserVmManagerImpl] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Destroying vm VM[User|i-2-1264-VM] as it failed to create on Host with Id:null 2015-01-27 17:27:17,902 DEBUG [c.c.c.CapacityManagerImpl] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null 2015-01-27 17:27:17,907 WARN [o.a.c.alerts] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) alertType:: 8 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id: 1264, on Host with Id: null 2015-01-27 17:27:17,920 INFO [o.a.c.a.c.a.v.DeployVMCmdByAdmin] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|i-2-1264-VM]Scope=interface com.cloud.dc.DataCenter; id=1 2015-01-27 17:27:17,921 INFO [o.a.c.a.c.a.v.DeployVMCmdByAdmin] (API-Job-Executor-120:ctx-784091de job-26028 ctx-d5e58e10) Unable to create a deployment for VM[User|i-2-1264-VM] com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|i-2-1264-VM]Scope=interface com.cloud.dc.DataCenter; id=1 at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:214) at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:200)