You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by csos <15...@163.com> on 2015/01/04 03:03:26 UTC

vmware workstation中安装cloudstack无法加入host

您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因?
2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to sta
rt agent:
com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection re
set by peer
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(
LibvirtComputingResource.java:654)
        at com.cloud.agent.Agent.<init>(Agent.java:163)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
        at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5
14)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
        at com.cloud.agent.AgentShell.start(AgentShell.java:589)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)
        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav
a:243)


Re:Re: vmware workstation中安装cloudstack无法加入host

Posted by csos <15...@163.com>.

用的是kvm,workstation的二次虚拟化已经开启了,主机的VT也开启了






在 2015-01-04 16:30:58,"linuxbqj@gmail.com" <li...@gmail.com> 写道:
>你是选用的kvm吗?
>
>Unable to start agent:
>
>
>看错误是因为kvm agent的原因。这个需要确定你的workstation是否支持二次虚拟化
>
>
>
>
>2015-01-04 10:03 GMT+08:00 csos <15...@163.com>:
>> 您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因?
>> 2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to sta
>> rt agent:
>> com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection re
>> set by peer
>>         at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(
>> LibvirtComputingResource.java:654)
>>         at com.cloud.agent.Agent.<init>(Agent.java:163)
>>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
>>         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5
>> 14)
>>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
>>         at com.cloud.agent.AgentShell.start(AgentShell.java:589)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:57)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:622)
>>         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav
>> a:243)
>>
>
>
>
>-- 
>白清杰 (Born Bai)
>
>Mail: linuxbqj@gmail.com

Re: Re: VMware环境创建虚拟机报错

Posted by 王健 <ji...@neusoft.com>.
谢谢了,延长这个超时时间可以解决我的问题!


发件人: Wwei@landhightech.com
发送时间: 2015-01-05 13:26
收件人: users-cn
主题: Re: VMware环境创建虚拟机报错
你好,vmware.vcenter.session.timeout 改大点 试试



Wwei@landhightech.com
发件人: 王健
发送时间: 2015-01-05 11:45
收件人: users-cn@cloudstack.apache.org
主题: VMware环境创建虚拟机报错
创建虚拟机模板有点大copy20分钟后,vcenter上看到以下信息:
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    用户取消了任务。
log信息中提示存储连接不上,实际不存在这个问题。
感觉是copy模板超时,系统自动重新copy名称冲突报错,
尝试将全局参数 vm.job.timeout 设置为半小时问题依旧。 
请问有谁遇到过这个问题吗?怎么解决呢?
Log:
2015-01-05 11:01:23,196 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAgent-152:ctx-04d565d1 192.168.241.11) clone volume from base image failed due to Exception: java.lang.RuntimeException
Message: 名称“ROOT-45”已存在。
java.lang.RuntimeException: 名称“ROOT-45”已存在。
at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:336)
at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.createFullClone(VirtualMachineMO.java:619)
at com.cloud.storage.resource.VmwareStorageProcessor.createVMFullClone(VmwareStorageProcessor.java:266)
at com.cloud.storage.resource.VmwareStorageProcessor.cloneVolumeFromBaseTemplate(VmwareStorageProcessor.java:338)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:78)
at com.cloud.storage.resource.VmwareStorageSubsystemCommandHandler.execute(VmwareStorageSubsystemCommandHandler.java:171)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:571)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2015-01-05 11:01:23,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Response Received: 
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Processing:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"java.lang.RuntimeException: 名称“ROOT-45”已存在。","wait":0}}] }
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Seq 5-714997816: Received:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, { CopyCmdAnswer } }
2015-01-05 11:01:23,208 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@c457f1a), no need to delete from object in store ref table
2015-01-05 11:01:23,208 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
2015-01-05 11:01:23,209 INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:2] is unreachable: Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:601)
at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:237)
at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:207)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3581)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2043)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy169.startVirtualMachine(Unknown Source)
at org.apache.cloudstack.api.command.user.vm.StartVMCmd.execute(StartVMCmd.java:121)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

Re: VMware环境创建虚拟机报错

Posted by "Wwei@landhightech.com" <Ww...@landhightech.com>.
你好,vmware.vcenter.session.timeout 改大点 试试



Wwei@landhightech.com
 
发件人: 王健
发送时间: 2015-01-05 11:45
收件人: users-cn@cloudstack.apache.org
主题: VMware环境创建虚拟机报错
创建虚拟机模板有点大copy20分钟后,vcenter上看到以下信息:
 
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    用户取消了任务。
 
log信息中提示存储连接不上,实际不存在这个问题。
感觉是copy模板超时,系统自动重新copy名称冲突报错,
尝试将全局参数 vm.job.timeout 设置为半小时问题依旧。 
请问有谁遇到过这个问题吗?怎么解决呢?
 
 
 
 
 
 
Log:
 
2015-01-05 11:01:23,196 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAgent-152:ctx-04d565d1 192.168.241.11) clone volume from base image failed due to Exception: java.lang.RuntimeException
Message: 名称“ROOT-45”已存在。
 
java.lang.RuntimeException: 名称“ROOT-45”已存在。
at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:336)
at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.createFullClone(VirtualMachineMO.java:619)
at com.cloud.storage.resource.VmwareStorageProcessor.createVMFullClone(VmwareStorageProcessor.java:266)
at com.cloud.storage.resource.VmwareStorageProcessor.cloneVolumeFromBaseTemplate(VmwareStorageProcessor.java:338)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:78)
at com.cloud.storage.resource.VmwareStorageSubsystemCommandHandler.execute(VmwareStorageSubsystemCommandHandler.java:171)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:571)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2015-01-05 11:01:23,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Response Received: 
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Processing:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"java.lang.RuntimeException: 名称“ROOT-45”已存在。","wait":0}}] }
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Seq 5-714997816: Received:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, { CopyCmdAnswer } }
2015-01-05 11:01:23,208 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@c457f1a), no need to delete from object in store ref table
2015-01-05 11:01:23,208 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
2015-01-05 11:01:23,209 INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:2] is unreachable: Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:601)
at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:237)
at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:207)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3581)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2043)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy169.startVirtualMachine(Unknown Source)
at org.apache.cloudstack.api.command.user.vm.StartVMCmd.execute(StartVMCmd.java:121)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

VMware环境创建虚拟机报错

Posted by 王健 <ji...@neusoft.com>.
创建虚拟机模板有点大copy20分钟后,vcenter上看到以下信息:

克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    名称“ROOT-45”已存在。
克隆虚拟机    762aa20eef6b34fe9e4563a159027111    用户取消了任务。

log信息中提示存储连接不上,实际不存在这个问题。
感觉是copy模板超时,系统自动重新copy名称冲突报错,
尝试将全局参数 vm.job.timeout 设置为半小时问题依旧。 
请问有谁遇到过这个问题吗?怎么解决呢?






Log:

2015-01-05 11:01:23,196 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAgent-152:ctx-04d565d1 192.168.241.11) clone volume from base image failed due to Exception: java.lang.RuntimeException
Message: 名称“ROOT-45”已存在。

java.lang.RuntimeException: 名称“ROOT-45”已存在。
at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:336)
at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.createFullClone(VirtualMachineMO.java:619)
at com.cloud.storage.resource.VmwareStorageProcessor.createVMFullClone(VmwareStorageProcessor.java:266)
at com.cloud.storage.resource.VmwareStorageProcessor.cloneVolumeFromBaseTemplate(VmwareStorageProcessor.java:338)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:78)
at com.cloud.storage.resource.VmwareStorageSubsystemCommandHandler.execute(VmwareStorageSubsystemCommandHandler.java:171)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:571)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2015-01-05 11:01:23,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Response Received: 
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (DirectAgent-152:ctx-04d565d1) Seq 5-714997816: Processing:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"java.lang.RuntimeException: 名称“ROOT-45”已存在。","wait":0}}] }
2015-01-05 11:01:23,197 DEBUG [c.c.a.t.Request] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Seq 5-714997816: Received:  { Ans: , MgmtId: 240035382992412, via: 5, Ver: v1, Flags: 10, { CopyCmdAnswer } }
2015-01-05 11:01:23,208 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@c457f1a), no need to delete from object in store ref table
2015-01-05 11:01:23,208 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
2015-01-05 11:01:23,209 INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-2:ctx-cbadbb50 ctx-65f94370) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:2] is unreachable: Unable to create Vol[49|vm=45|ROOT]:java.lang.RuntimeException: 名称“ROOT-45”已存在。
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:601)
at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:237)
at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:207)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3581)
at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2043)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy169.startVirtualMachine(Unknown Source)
at org.apache.cloudstack.api.command.user.vm.StartVMCmd.execute(StartVMCmd.java:121)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

回复: vmware workstation中安装cloudstack无法加入host

Posted by "Mr.博" <28...@qq.com>.
建议你先单独在虚拟机中启动一个KVM实例,看看嵌套虚拟化是否顺利支持




------------------ 原始邮件 ------------------
发件人: "csos";<15...@163.com>;
发送时间: 2015年1月4日(星期天) 晚上8:30
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: Re:Re: vmware workstation中安装cloudstack无法加入host




这是虚拟机CPU设置







在 2015-01-04 16:30:58,"linuxbqj@gmail.com" <li...@gmail.com> 写道: >你是选用的kvm吗? > >Unable to start agent: > > >看错误是因为kvm agent的原因。这个需要确定你的workstation是否支持二次虚拟化 > > > > >2015-01-04 10:03 GMT+08:00 csos <15...@163.com>: >> 您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因? >> 2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to sta >> rt agent: >> com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection re >> set by peer >>         at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure( >> LibvirtComputingResource.java:654) >>         at com.cloud.agent.Agent.<init>(Agent.java:163) >>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559) >>         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5 >> 14) >>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431) >>         at com.cloud.agent.AgentShell.start(AgentShell.java:589) >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> java:57) >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> sorImpl.java:43) >>         at java.lang.reflect.Method.invoke(Method.java:622) >>         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav >> a:243) >> > > > >--  >白清杰 (Born Bai) > >Mail: linuxbqj@gmail.com 


来自网易手机号码邮箱了解更多

Re:Re: vmware workstation中安装cloudstack无法加入host

Posted by csos <15...@163.com>.
这是虚拟机CPU设置







在 2015-01-04 16:30:58,"linuxbqj@gmail.com" <li...@gmail.com> 写道:
>你是选用的kvm吗?
>
>Unable to start agent:
>
>
>看错误是因为kvm agent的原因。这个需要确定你的workstation是否支持二次虚拟化
>
>
>
>
>2015-01-04 10:03 GMT+08:00 csos <15...@163.com>:
>> 您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因?
>> 2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to sta
>> rt agent:
>> com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection re
>> set by peer
>>         at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(
>> LibvirtComputingResource.java:654)
>>         at com.cloud.agent.Agent.<init>(Agent.java:163)
>>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
>>         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5
>> 14)
>>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
>>         at com.cloud.agent.AgentShell.start(AgentShell.java:589)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:57)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:622)
>>         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav
>> a:243)
>>
>
>
>
>-- 
>白清杰 (Born Bai)
>
>Mail: linuxbqj@gmail.com

Re: vmware workstation中安装cloudstack无法加入host

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
你是选用的kvm吗?

Unable to start agent:


看错误是因为kvm agent的原因。这个需要确定你的workstation是否支持二次虚拟化




2015-01-04 10:03 GMT+08:00 csos <15...@163.com>:
> 您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因?
> 2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to sta
> rt agent:
> com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection re
> set by peer
>         at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(
> LibvirtComputingResource.java:654)
>         at com.cloud.agent.Agent.<init>(Agent.java:163)
>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
>         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5
> 14)
>         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
>         at com.cloud.agent.AgentShell.start(AgentShell.java:589)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:622)
>         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav
> a:243)
>



-- 
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com