How to disable or enable HA on Nutanix Acropolis VM

Shares

UPDATE – 20’th February 2020


The “new” preferred method to disable Nutanix HA on guest VM is to set VM as “Use this VM as an Agent VM“, in virtual machine configuration. The setting basically is pinning VM into the Nutanix AHV host preventing live migration between the hosts and HA triggered restarts.

Agent VM configuration.

In the virtual machine configuration file, two entries are indicating VM is an Agent VM. The agent_vm and allow_live_migrate.

<acropolis> vm.get AHV-HA-test
AHV-HA-test {
  config {
    agent_vm: True
    allow_live_migrate: False

Outdated information


Quick post on how to disable or enable HA on Nutanix Acropolis VM.

Disable HA on Nutanix AHV VM

<acropolis> vm.update winxpsp3vmw ha_priority=-1
winxpsp3vmw: complete

Now, VM has been excluded from Acropolis HA and will not be restarted during host failure on surviving hosts in the Nutanix Acropolis cluster.

Quick check on VM configuration to see if change was applied.

<acropolis> vm.get winxpsp3vmw
winxpsp3vmw {
  config {
    allow_live_migrate: True
    disk_list {
      addr {
        bus: "ide"
        index: 0
      }
      cdrom: True
      container_id: 10343366
      container_uuid: "2cfc19fa-10d7-40db-8815-ba10baf86cb5"
      source_vmdisk_uuid: "9533db88-f642-4c36-af88-22eeb91e3b5b"
      vmdisk_size: 155856896
      vmdisk_uuid: "9c60ac90-0b29-4514-9675-76f5c4b2b674"
    }
    disk_list {
      addr {
        bus: "ide"
        index: 1
      }
      container_id: 10343366
      container_uuid: "2cfc19fa-10d7-40db-8815-ba10baf86cb5"
      source_nfs_path: "/ctr01/WinXpSp3/WinXpSp3-flat.vmdk"
      vmdisk_size: 8589934592
      vmdisk_uuid: "7f17d32f-a3fa-4edc-b99a-46e663262db4"
    }
    ha_priority: -1
    max_hotplug_memory_mb: 262144
    memory_mb: 1024
    name: "winxpsp3vmw"
    nic_list {
      mac_addr: "52:54:00:53:24:9b"
      network_name: "VLAN88"
      network_uuid: "10793af9-0fcf-4fa7-b1e0-ad3622b2bb18"
    }
    num_cores_per_vcpu: 2
    num_vcpus: 1
  }
  logical_timestamp: 2
  state: "kOff"
  uuid: "4e0ce49a-ffd4-4d76-be25-f9ca38e5d960"
}

Enable HA on Acropolis VM 

<acropolis> vm.update winxpsp3vmw ha_priority=0
winxpsp3vmw: complete

Quick check on virtual machine config to see if HA is back

<acropolis> vm.get winxpsp3vmw
winxpsp3vmw {
  config {
    allow_live_migrate: True
    disk_list {
      addr {
        bus: "ide"
        index: 0
      }
      cdrom: True
      container_id: 10343366
      container_uuid: "2cfc19fa-10d7-40db-8815-ba10baf86cb5"
      source_vmdisk_uuid: "9533db88-f642-4c36-af88-22eeb91e3b5b"
      vmdisk_size: 155856896
      vmdisk_uuid: "9c60ac90-0b29-4514-9675-76f5c4b2b674"
    }
    disk_list {
      addr {
        bus: "ide"
        index: 1
      }
      container_id: 10343366
      container_uuid: "2cfc19fa-10d7-40db-8815-ba10baf86cb5"
      source_nfs_path: "/ctr01/WinXpSp3/WinXpSp3-flat.vmdk"
      vmdisk_size: 8589934592
      vmdisk_uuid: "7f17d32f-a3fa-4edc-b99a-46e663262db4"
    }
    ha_priority: 0
    max_hotplug_memory_mb: 262144
    memory_mb: 1024
    name: "winxpsp3vmw"
    nic_list {
      mac_addr: "52:54:00:53:24:9b"
      network_name: "VLAN88"
      network_uuid: "10793af9-0fcf-4fa7-b1e0-ad3622b2bb18"
    }
    num_cores_per_vcpu: 2
    num_vcpus: 1
  }
  logical_timestamp: 4
  state: "kOff"
  uuid: "4e0ce49a-ffd4-4d76-be25-f9ca38e5d960"
}
<acropolis>

 

0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Don't miss any posts. Subscribe To Our Newsletter!!

Join our mailing list to receive the latest news and updates from www.vmwaremine.com.

You have Successfully Subscribed!

Pin It on Pinterest