What are the commands to shutdown and delete guest VMs?
Best answer by Sergei Ivanov 19 August 2020, 18:29
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
Instead of a name, can I use the UUID of the VM?
What does NGT stand for?
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.
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>
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.