NCLI command line | Nutanix Community
Skip to main content

What are the commands to shutdown and delete guest VMs?

It cannot be done with ncli, but can be done with acli:

To do a graceful guest shutdown: acli vm.guest_shutdown <vm_name> (requires NGT on the VM)

To power off a VM: acli vm.off <vm_name>

To delete a VM: acli vm.delete <vm_name>


You can explore the acli commands by typing “acli” and clicking Enter, then you can click Tab twice and it will give you all the possible options of the commands. Then, for example, if you type in the acli prompt “vm.” and hit tab twice again it will show you all the possible commands for VM.


thank you

 


Instead of a name, can I use the UUID of the VM?

 

What does NGT stand for?


Yes, UUID can be also used.

NGT stands for Nutanix Guest Tools. You can read about it here: https://portal.nutanix.com/page/documents/details?targetId=Web-Console-Guide-Prism-v5_17:man-nutanix-guest-tool-c.html