[已解决]Cloudstack4.2+KVM 虚拟机一直处于starting状态

各位朋友,我的环境是cloudstack4.2+kvm,有一个用户虚拟机一直starting状态一天多了,关也关不掉,启动也启动不了。管理日志如下:
2015-07-01 13:51:56,178 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-110:job-7342 = [ b3eaab5a-cdb7-4fdd-9363-5c9edca6ef8f ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.StopVMCmd
com.cloud.utils.exception.CloudRuntimeException: We cannot stop VM[User|ZhangXingHua-01] when it is in state Starting
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1236)
        at com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1060)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
        at com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3388)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
        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$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:724)
2015-07-01 13:51:56,181 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-110:job-7342 = [ b3eaab5a-cdb7-4fdd-9363-5c9edca6ef8f ]) Complete async job-7342 = [ b3eaab5a-cdb7-4fdd-9363-5c9edca6ef8f ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: We cannot stop VM[User|ZhangXingHua-01] when it is in state Starting
2015-07-01 13:51:56,411 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 8-1285675202: Received:  { Ans: , MgmtId: 161339376108, via: 8, Ver: v1, Flags: 10, { GetVmStatsAnswer } }
2015-07-01 13:51:58,401 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null) Ping from 14
2015-07-01 13:51:59,078 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===START===  192.168.101.8 -- GET  command=queryAsyncJobResult&jobId=b3eaab5a-cdb7-4fdd-9363-5c9edca6ef8f&response=json&sessionkey=oEmv85%2F1%2F8ndmkCSqWCN7oOHWvU%3D&projectid=51a369eb-ed7a-48b5-a7ee-280b0dd70f6b&_=1435729949119

2.png

 
已邀请:

xuhan1126

赞同来自: ak_qq 601373142

已经得到处理,在数据库中将这个虚拟机的状态由“Starting”更改成“Stopped”,重新启动虚拟机即可。

2020human

赞同来自: ak_qq xuhan1126 601373142

mysql -uroot -p -e "update cloud.vm_instance set state='Stopped' where name=VMNAME"

春雨

赞同来自:

如何修改呢?在数据库里

春雨

赞同来自:

修改后几分钟又回到之前的状态,仍然未解决

春雨

赞同来自:

我看错了,一直是Running,代理状态为空,辅存为0
 

要回复问题请先登录注册