这段log跟之前是一样的,还是那句话
Tmpl[203-ISO-203-2-03ecaf65-7864-3778-a67f-dcd2df576a41 as they are not HVM 
enabled
我让你检查的几点你有没有做?
是否是模版有问题?xenserver主机已经加好了,主机是否支持虚拟化,CPU的VT之类的?OS类型是否选错了?

2013-04-23 
刘宇超  Richard Liu


发件人: 胡峰 
发送时间: 2013-04-23  17:29:47 
收件人: users-cn 
抄送: 
主题: Re: Re: 系统模版创建成功, 但是无法创建实例 
 
我下午上传了一个 centos6.0 64的 ISO
模版显示上传成功。 还是无法创建实例。
求助
日志信息:
2013-04-23 17:17:11,770 DEBUG [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-10:job-10) Trying to deploy VM, vm has dcId: 1 and podId: null
2013-04-23 17:17:11,770 DEBUG [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-10:job-10) Deploy avoids pods: null, clusters: null, hosts:
null
2013-04-23 17:17:11,771 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) DeploymentPlanner allocation algorithm: random
2013-04-23 17:17:11,771 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Trying to allocate a host and storage pools from
dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 536870912
2013-04-23 17:17:11,771 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Is ROOT volume READY (pool already allocated)?: No
2013-04-23 17:17:11,771 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Searching all possible resources under this Zone: 1
2013-04-23 17:17:11,772 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Listing clusters in order of aggregate capacity,
that have (atleast one host with) enough CPU and RAM capacity under this
Zone: 1
2013-04-23 17:17:11,773 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) CPUOverprovisioningFactor considered: 1.0
2013-04-23 17:17:11,820 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Checking resources in Cluster: 1 under Pod: 1
2013-04-23 17:17:11,820 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Calling HostAllocators to find suitable hosts
2013-04-23 17:17:11,820 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) Looking for hosts in dc:
1  pod:1  cluster:1
2013-04-23 17:17:11,821 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) FirstFitAllocator has 1
hosts to check for allocation: [Host[-1-Routing]]
2013-04-23 17:17:11,822 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) Not considering hosts:
[Host[-1-Routing]]  to deploy template:
Tmpl[203-ISO-203-2-03ecaf65-7864-3778-a67f-dcd2df576a41 as they are not HVM
enabled
2013-04-23 17:17:11,822 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) Found 0 hosts for
allocation after prioritization: []
2013-04-23 17:17:11,822 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) Looking for speed=500Mhz,
Ram=512
2013-04-23 17:17:11,823 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-10:job-10 FirstFitRoutingAllocator) Host Allocator returning
0 suitable hosts
2013-04-23 17:17:11,823 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) No suitable hosts found
2013-04-23 17:17:11,823 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) No suitable hosts found under this Cluster: 1
2013-04-23 17:17:11,823 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-10:job-10) Could not find suitable Deployment Destination for
this VM under any clusters, returning.
2013-04-23 17:17:11,825 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-10:job-10) VM state transitted from :Starting to Stopped with
event: OperationFailedvm's original host id: null new host id: null host id
before state transition: null
2013-04-23 17:17:11,828 DEBUG [cloud.vm.UserVmManagerImpl]
(Job-Executor-10:job-10) Destroying vm VM[User|centos60] as it failed to
create
2013-04-23 17:17:11,831 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-10:job-10) 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
2013-04-23 17:17:11,848 INFO  [api.commands.DeployVMCmd]
(Job-Executor-10:job-10)
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[User|centos60]Scope=interface com.cloud.dc.DataCenter;
id=1
2013-04-23 17:17:11,849 WARN  [cloud.api.ApiDispatcher]
(Job-Executor-10:job-10) class com.cloud.api.ServerApiException : Unable to
create a deployment for VM[User|centos60]
2013-04-23 17:17:11,849 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-10:job-10) Complete async job-10, jobStatus: 2, resultCode:
530, result: Error Code: 533 Error text: Unable to create a deployment for
VM[User|centos60]
2013-04-23 17:17:16,785 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-1:null) Async job-10 completed
2013-04-23 17:17:16,796 DEBUG [cloud.vm.UserVmManagerImpl]
(catalina-exec-18:null) THE WHERE CLAUSE IS:user_vm.id = ?
2013-04-23 17:17:17,158 DEBUG [agent.transport.Request] (Timer-5:null) Seq
3-1020264599: Sending  { Cmd , MgmtId: 158516164307, via: 3, Ver: v1,
Flags: 100011,
[{"storage.DownloadProgressCommand":{"jobId":"9159c04e-6251-4f79-90d0-22fb13bf8d57","request":"GET_STATUS","hvm":false,"description":"CentOS
5.6(64-bit) no GUI
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","url":"
http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://
172.27.1.11/secondary","wait":0}}] }
2013-04-23 17:17:17,198 DEBUG [agent.transport.Request]
(AgentManager-Handler-12:null) Seq 3-1020264599: Processing:  { Ans: ,
MgmtId: 158516164307, via: 3, Ver: v1, Flags: 10,
[{"storage.DownloadAnswer":{"jobId":"9159c04e-6251-4f79-90d0-22fb13bf8d57","downloadPct":99,"errorString":"
","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/3824df7b-cfac-338e-9398-6a6be0ea2da2/template/tmpl/1/5/dnld893630592860458938tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":false,"details":"
","wait":0}}] }
2013-04-23 17:17:25,810 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-82:null) Ping from 1
2013/4/22 tanthalas <tanthalas...@hotmail.com>
> Log里的这句话是关键。
> Tmpl[212-ISO-212-2-d875e025-a912-31ae-8602-707ff71c9066 as they are not
> HVM enabled。
>
> 是否是模版有问题?主机已经加好了?OS类型是否选错了?你再检查一下。
>
> 2013-04-22
> 刘宇超  Richard Liu
>
>
>
>
> 发件人: 胡峰
> 发送时间: 2013-04-22  16:09:46
> 收件人: users-cn; guofengbj
> 抄送:
> 主题: Re: 系统模版创建成功, 但是无法创建实例
>
> 系统资源还是有很多的。 可以看附件的截图 。
>
>
>
> 2013/4/22 guofengbj <guofen...@inspur.com>
>
> No suitable hosts found under this Cluster: 1
>
> 没有合适的宿主机开启这个虚拟机。计算节点是不是资源不够了?
>
>
>
>
> 郭锋
> 浪潮电子信息产业有限公司
> 系统软件部
> 地址:浪潮路1036号 浪潮科技园S05楼北楼2层
> 邮编:250101
> E-mail:guofen...@inspur.com
> 电话:  0531-86133385
>
> 发件人: 胡峰
> 发送时间: 2013-04-22 15:48
> 收件人: users-cn
> 主题: 系统模版创建成功, 但是无法创建实例
>
> 您好:
>   我测试 系统模版创建成功, 但是无法创建实例 。使用的基本资源域。
>  系统模版我用了 centos6.3 64位系统 也使用了 centos6.0 64位 ISO 模版。
> 都上传成功了。
> 但是都无法创建实例。
> 系统虚拟路由还是0
> 一下为系统日志信息:
> 2013-04-22 11:09:10,630 DEBUG [cloud.vm.UserVmManagerImpl]
> (catalina-exec-13:null) THE WHERE CLAUSE IS:
> 2013-04-22 11:09:25,295 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-2:null) HostStatsCollector is running...
> 2013-04-22 11:09:25,300 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-273:null) Seq 1-604258581: Executing request
> 2013-04-22 11:09:25,469 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-273:null) Seq 1-604258581: Response Received:
> 2013-04-22 11:09:25,469 DEBUG [agent.transport.Request]
> (StatsCollector-2:null) Seq 1-604258581: Received:  { Ans: , MgmtId:
> 158516164307, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-04-22 11:09:31,430 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
> is ready to launch secondary storage VM
> 2013-04-22 11:09:31,495 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-04-22 11:09:31,756 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers.
> 2013-04-22 11:09:47,501 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-25:null) Access granted to Acct[2-admin] to Domain:1/ by
> DomainChecker
> 2013-04-22 11:09:51,525 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-1:null) VmStatsCollector is running...
> 2013-04-22 11:10:01,423 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
> is ready to launch secondary storage VM
> 2013-04-22 11:10:01,495 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-04-22 11:10:01,757 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers.
> 2013-04-22 11:10:04,524 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-7:null) Ping from 4
> 2013-04-22 11:10:04,578 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-6:null) Ping from 3
> 2013-04-22 11:10:07,827 DEBUG [cloud.vm.UserVmManagerImpl]
> (catalina-exec-2:null) Allocating in the DB for vm
> 2013-04-22 11:10:07,827 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (catalina-exec-2:null) Allocating entries for VM: VM[User|centos60]
> 2013-04-22 11:10:07,830 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (catalina-exec-2:null) Allocating nics for VM[User|centos60]
> 2013-04-22 11:10:07,830 DEBUG [cloud.network.NetworkManagerImpl]
> (catalina-exec-2:null) Allocating nic for vm VM[User|centos60] in network
> Ntwk[204|Guest|6] with requested profile NicProfile[0-0-null-null-null
> 2013-04-22 11:10:07,836 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (catalina-exec-2:null) Allocaing disks for VM[User|centos60]
> 2013-04-22 11:10:07,840 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (catalina-exec-2:null) Allocation completed for VM: VM[User|centos60]
> 2013-04-22 11:10:07,840 DEBUG [cloud.vm.UserVmManagerImpl]
> (catalina-exec-2:null) Successfully allocated DB entry for
> VM[User|centos60]
> 2013-04-22 11:10:07,877 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-2:null) submit async job-19, details: AsyncJobVO {id:19,
> userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine,
> instanceId: 5, cmd: com.cloud.api.commands.DeployVMCmd, cmdOriginator:
> null, cmdInfo:
>
> {"sessionkey":"LLrrF5Qm2DXaD10ICPuNK4zKz1k\u003d","ctxUserId":"2","serviceOfferingId":"f7a6442e-3df7-4451-b20e-c6099c48a054","zoneId":"8723e69a-66bb-439f-be9c-8ca73c578edb","templateId":"3233f309-7637-4ac2-8068-09ea8cdf4e48","response":"json","id":"5","hypervisor":"XenServer","name":"centos60","diskOfferingId":"69497ff6-0564-4fc7-a4cc-25415dd87c52","_":"1366600232401","ctxAccountId":"2","ctxStartEventId":"90","displayname":"centos60"},
> cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
> processStatus: 0, resultCode: 0, result: null, initMsid: 158516164307,
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-04-22 11:10:07,879 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-8:job-19) Executing com.cloud.api.commands.DeployVMCmd for
> job-19
> 2013-04-22 11:10:07,911 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-8:job-19) VM state transitted from :Stopped to Starting with
> event: StartRequestedvm's original host id: null new host id: null host id
> before state transition: null
> 2013-04-22 11:10:07,912 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-8:job-19) Successfully transitioned to start state for
> VM[User|centos60] reservation id = de9e139b-290d-43bb-b7d6-1346a21e495b
> 2013-04-22 11:10:07,913 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-8:job-19) Trying to deploy VM, vm has dcId: 1 and podId: null
> 2013-04-22 11:10:07,913 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-8:job-19) Deploy avoids pods: null, clusters: null, hosts:
> null
> 2013-04-22 11:10:07,914 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) DeploymentPlanner allocation algorithm: random
> 2013-04-22 11:10:07,915 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Trying to allocate a host and storage pools from
> dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 536870912
> 2013-04-22 11:10:07,915 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Is ROOT volume READY (pool already allocated)?: No
> 2013-04-22 11:10:07,915 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Searching all possible resources under this Zone: 1
> 2013-04-22 11:10:07,916 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Listing clusters in order of aggregate capacity,
> that have (atleast one host with) enough CPU and RAM capacity under this
> Zone: 1
> 2013-04-22 11:10:07,916 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) CPUOverprovisioningFactor considered: 1.0
> 2013-04-22 11:10:07,940 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Checking resources in Cluster: 1 under Pod: 1
> 2013-04-22 11:10:07,940 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Calling HostAllocators to find suitable hosts
> 2013-04-22 11:10:07,940 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) Looking for hosts in dc: 1
>  pod:1  cluster:1
> 2013-04-22 11:10:07,941 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) FirstFitAllocator has 1
> hosts to check for allocation: [Host[-1-Routing]]
> 2013-04-22 11:10:07,942 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) Not considering hosts:
> [Host[-1-Routing]]  to deploy template:
> Tmpl[212-ISO-212-2-d875e025-a912-31ae-8602-707ff71c9066 as they are not HVM
> enabled
> 2013-04-22 11:10:07,942 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) Found 0 hosts for
> allocation after prioritization: []
> 2013-04-22 11:10:07,942 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) Looking for speed=500Mhz,
> Ram=512
> 2013-04-22 11:10:07,942 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-8:job-19 FirstFitRoutingAllocator) Host Allocator returning 0
> suitable hosts
> 2013-04-22 11:10:07,942 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) No suitable hosts found
> 2013-04-22 11:10:07,942 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) No suitable hosts found under this Cluster: 1
> 2013-04-22 11:10:07,942 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-8:job-19) Could not find suitable Deployment Destination for
> this VM under any clusters, returning.
> 2013-04-22 11:10:07,945 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-8:job-19) VM state transitted from :Starting to Stopped with
> event: OperationFailedvm's original host id: null new host id: null host id
> before state transition: null
> 2013-04-22 11:10:07,948 DEBUG [cloud.vm.UserVmManagerImpl]
> (Job-Executor-8:job-19) Destroying vm VM[User|centos60] as it failed to
> create
> 2013-04-22 11:10:07,951 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-8:job-19) 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
> 2013-04-22 11:10:07,975 INFO  [api.commands.DeployVMCmd]
> (Job-Executor-8:job-19)
> com.cloud.exception.InsufficientServerCapacityException: Unable to create a
> deployment for VM[User|centos60]Scope=interface com.cloud.dc.DataCenter;
> id=1
> 2013-04-22 11:10:07,975 WARN  [cloud.api.ApiDispatcher]
> (Job-Executor-8:job-19) class com.cloud.api.ServerApiException : Unable to
> create a deployment for VM[User|centos60]
> 2013-04-22 11:10:07,977 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-8:job-19) Complete async job-19, jobStatus: 2, resultCode:
> 530, result: Error Code: 533 Error text: Unable to create a deployment for
> VM[User|centos60]
> 2013-04-22 11:10:08,165 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-273:null) Ping from 1
> 2013-04-22 11:10:08,622 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-453:null) Seq 1-604241922: Executing request
> 2013-04-22 11:10:08,795 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-1:null) StorageCollector is running...
> 2013-04-22 11:10:08,847 DEBUG [agent.transport.Request]
> (StatsCollector-1:null) Seq 3-558506169: Received:  { Ans: , MgmtId:
> 158516164307, via: 3, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
> 2013-04-22 11:10:08,852 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-338:null) Seq 1-604258582: Executing request
> 2013-04-22 11:10:08,852 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-453:null) Seq 1-604241922: Response Received:
> 2013-04-22 11:10:08,853 DEBUG [agent.transport.Request]
> (DirectAgent-453:null) Seq 1-604241922: Processing:  { Ans: , MgmtId:
> 158516164307, via: 1, Ver: v1, Flags: 10,
>
> [{"ClusterSyncAnswer":{"_clusterId":1,"_newStates":{},"_isExecuted":false,"result":true,"wait":0}}]
> }
> 2013-04-22 11:10:09,151 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-338:null) Seq 1-604258582: Response Received:
> 2013-04-22 11:10:09,151 DEBUG [agent.transport.Request]
> (StatsCollector-1:null) Seq 1-604258582: Received:  { Ans: , MgmtId:
> 158516164307, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
> 2013-04-22 11:10:12,918 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-22:null) Async job-19 completed
> 2013-04-22 11:10:12,935 DEBUG [cloud.vm.UserVmManagerImpl]
> (catalina-exec-23:null) THE WHERE CLAUSE IS:user_vm.id = ?
> 2013-04-22 11:10:25,397 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-1:null) HostStatsCollector is running...
> 2013-04-22 11:10:25,403 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-410:null) Seq 1-604258583: Executing request
> 2013-04-22 11:10:25,580 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-410:null) Seq 1-604258583: Response Received:
> 2013-04-22 11:10:25,581 DEBUG [agent.transport.Request]
> (StatsCollector-1:null) Seq 1-604258583: Received:  { Ans: , MgmtId:
> 158516164307, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
>

回复