VM-VM Anti Afinity configuration | Nutanix Community
Skip to main content
Solved

VM-VM Anti Afinity configuration


  • Voyager
  • 2 replies

Hi,

 

How can I disable ani-affinity rules ? 

Best answer by mikkisse

acli vm_group.list

acli vm_group.get group_name

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

6 replies

mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 109 replies
  • March 24, 2023

  • Author
  • Voyager
  • 2 replies
  • March 24, 2023

Hi,

 Thank you. I’ve seen that doc as well. I think the next thing would be trying to figure out what the group name is so that I can delete it. 

 


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 109 replies
  • Answer
  • March 24, 2023

acli vm_group.list

acli vm_group.get group_name


  • Author
  • Voyager
  • 2 replies
  • March 27, 2023

acli vm_group.list
VmGroup name  VmGroup UUID
 

Are these the groups?


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 109 replies
  • March 28, 2023

Yes.

vm_group.list will show you all groups

<acropolis> vm_group.list 
VmGroup name     VmGroup UUID
test-vm-group        8606-bb62-4f4d-b7df-67c4e020177b

 

vm_group.get will show you applied policy. kAntiAffinity
<acropolis> vm_group.get test-vm-group
test-vm-group {
  affinity {
    constraint: "kShould"
    policy: "kAntiAffinity"
  }
  name: "test-vm-group"
  uuid: "8606-bb62-4f4d-b7df-67c4e020177b"
}

 

vm_group.list_vms will show you VMs inside of the provided group

<acropolis> vm_group.list_vms test-vm-group

VM name            VM UUID
test-1                  c60754b7-357f-4a95-abbc-4450eb05
test-2                  7d1c50be-7517-475c-9834-63ce14c
 

 

 

mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 109 replies
  • March 28, 2023

<acropolis> vm_group.
vm_group.add_vms                Add VMs to a VM group.
vm_group.antiaffinity_set       Enables vm-vm preferential anti-affinity.
vm_group.antiaffinity_unset   Clears vm-vm anti-affinity.
vm_group.create                    Creates one or more VM groups.
vm_group.delete                    Deletes one or more VM groups.
vm_group.get                         Retrieves information about a VM group.
vm_group.list                          Lists all VM groups.
vm_group.list_vms                 Lists VMs configured to the VmGroup.
vm_group.remove_vms         Remove VMs from a VM group.
vm_group.update                   Updates the specified VM groups.