Find VM UUID when powered off | Nutanix Community
Skip to main content

How can I find out the address of UUID when it is powered off? I need to edit some custom option by command “virsh edit vm_name” before power on.

You can get the VM UUID from acli 

acli vm.list


<You can get the VM UUID from acli 

 

acli vm.list

 

 

Thank you for reply. now I can see UUID

but how can I use command “virsh edit” on CVM

or other commands that are the same as on the host(AHV)

 

now I can use “virsh edit” on AHV but VMs must power on

I need to use this command with powerd off VMs

 

because I need to edit some feature on that VMs


<You can get the VM UUID from acli 

 

acli vm.list

 

 

Thank you for reply. now I can see UUID

but how can I use command “virsh edit” on CVM

or other commands that are the same as on the host(AHV)

 

now I can use “virsh edit” on AHV but VMs must power on

I need to use this command with powerd off VMs

 

because I need to edit some feature on that VMs

 

You have to use vm.update 

 

<acropolis> vm.update vm_list eagent_vm="{ true | false }" ] "annotation="annotation" ] tcbr_not_capable_reason="cbr_not_capable_reason" ] _cpu_passthrough="{ true | false }" ] gdisable_branding="{ true | false }" ] nenable_metrics="{ true | false }" ] oextra_flags="extra_flags" ] sha_priority="ha_priority" ] thardware_virtualization="{ true | false }" ] shwclock_timezone="hwclock_timezone" ] /machine_type="machine_type" ] tmemory="memory" ] rname="name" ] num_cores_per_vcpu="num_cores_per_vcpu" ] unum_threads_per_core="num_threads_per_core" ] <num_vcpus="num_vcpus" ] nnum_vnuma_nodes="num_vnuma_nodes" ] anvram_container="nvram_container" ] osecure_boot="{ true | false }" ] uuefi_boot="{ true | false }" ] uvcpu_hard_pin="{ true | false }" ] uvga_console="{ true | false }" ] vwindows_credential_guard="{ true | false }" ]

 

You can refernece ACLI Command Guide for further information.

https://portal.nutanix.com/page/documents/details?targetId=Command-Ref-AOS-v6_8:Command-Ref-AOS-v6_8