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

Find VM UUID when powered off

  • August 21, 2024
  • 3 replies
  • 116 views

WallRock
Forum|alt.badge.img

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.

Best answer by qamarabbas

You can get the VM UUID from acli 

acli vm.list

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

qamarabbas
Forum|alt.badge.img+4
  • Vanguard
  • 117 replies
  • Answer
  • August 21, 2024

You can get the VM UUID from acli 

acli vm.list


WallRock
Forum|alt.badge.img
  • Author
  • Adventurer
  • 4 replies
  • August 21, 2024
qamarabbas wrote:

<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


qamarabbas
Forum|alt.badge.img+4
  • Vanguard
  • 117 replies
  • August 21, 2024
WallRock wrote:
qamarabbas wrote:

<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 [agent_vm="{ true | false }" ] [annotation="annotation" ] [cbr_not_capable_reason="cbr_not_capable_reason" ] [cpu_passthrough="{ true | false }" ] [disable_branding="{ true | false }" ] [enable_metrics="{ true | false }" ] [extra_flags="extra_flags" ] [ha_priority="ha_priority" ] [hardware_virtualization="{ true | false }" ] [hwclock_timezone="hwclock_timezone" ] [machine_type="machine_type" ] [memory="memory" ] [name="name" ] [num_cores_per_vcpu="num_cores_per_vcpu" ] [num_threads_per_core="num_threads_per_core" ] [num_vcpus="num_vcpus" ] [num_vnuma_nodes="num_vnuma_nodes" ] [nvram_container="nvram_container" ] [secure_boot="{ true | false }" ] [uefi_boot="{ true | false }" ] [vcpu_hard_pin="{ true | false }" ] [vga_console="{ true | false }" ] [windows_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