[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Can`t uninstall VM




> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On
> Behalf Of Volodymyr Kotulskyi
> Sent: Thursday 05 June 2014 11:10
> To: xen-api@xxxxxxxxxxxxx
> Subject: [Xen-API] Can`t uninstall VM
> 
> The server was rebooted during VM creation and now I can`t destroy it
> Please advice how to uninstall  this VM ?
> 
> 
> 
> [root@xenserver-2 ~]# xe vbd-list vdi-uuid=afc680f9-3a49-4e02-8d71-
> 004efffe2759
> uuid ( RO)             : ed1bc66a-5961-fe7a-5e4c-6480bbcdd57e
>           vm-uuid ( RO): 85c11607-11bb-48e2-983c-abcf6ec0b57f
>     vm-name-label ( RO): Control domain on host: xenserver-2
>          vdi-uuid ( RO): afc680f9-3a49-4e02-8d71-004efffe2759
>             empty ( RO): false
>            device ( RO): sm/backend/cf294ed7-c6bf-d01c-3899-
> bb99bb56c0dc/afc680f9-3a49-4e02-8d71-004efffe2759
> 
> [root@xenserver-2 ~]# xe vm-destroy uuid=85c11607-11bb-48e2-983c-abcf6ec0b57f
> You attempted an operation on a VM that was not in an appropriate power state
> at the time; for example, you attempted to start a VM that was already
> running.  The parameters returned are the VM's handle, and the expected and
> actual VM state at the time of the call.
> vm: 85c11607-11bb-48e2-983c-abcf6ec0b57f (Control domain on host: xenserver-
> 2)
> expected: halted, suspended
> actual: running
> 
> [root@xenserver-2 ~]# xe vm-shutdown --force uuid=85c11607-11bb-48e2-983c-
> abcf6ec0b57f
> Error: No matching VMs found
> 
> [root@xenserver-2 ~]# xe vm-reset-powerstate --force uuid=85c11607-11bb-48e2-
> 983c-abcf6ec0b57f
> Error: No matching VMs found

You are trying to shutdown/destroy the Control domain (dom0). This is probably 
not what you intended. I have just tried the same and get the same error 
("Error: No matching VMs found"). This is not very informative but it's because 
it is dom0.

-Si
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.