Force VM reboot in Citrix XenServer - Command line

· 2 min read

This information can be very usefull when you’re stuck with a never ending tryin’ rebooting VM.

First you need to know the target VM UUID, very easy just type the command line :

xe vm-list

Then you will have the output with the requested information (UUID) and it should look like that :

[root@xenserver ~]# xe vm-list
uuid ( RO)           : 0e30c3e0-cc08-5562-f477-55c1031572d5
     name-label ( RW): SUOMIXAMASTER
    power-state ( RO): running
 
uuid ( RO)           : d464f41a-1777-633f-9bb5-9f33c6211529
     name-label ( RW): SUOMIXA02
    power-state ( RO): running
 
uuid ( RO)           : 9d924453-f88a-3225-d6fc-ada3ba490884
     name-label ( RW): Access Gateway import
    power-state ( RO): halted
 
uuid ( RO)           : 66e2b4be-0509-540d-16e2-06337b251a65
     name-label ( RW): ACTIVLIC02-V
    power-state ( RO): running

Finally, just use the following command line to force the VM reboot :

xe vm-reset-powerstate uuid=9d924453-f88a-3225-d6fc-ada3ba490884 force=true

Have fun 🙂