External vCenter Actions for non-Nutanix VMs

March 21, 2022

by Laura Jordana

Prism Central Export Version: pc.2022.1

A library of 8 common playbooks to perform actions on external vCenter VMs managed by Prism Central.

Playbook Usage Instructions

1. Download the .pbk file: https://raw.githubusercontent.com/nutanixdev/playbooks/master/external_vcenter_actions/external-vcenter-playbooks.pbk

2. Import the .pbk file into your Prism Central instance

3. Enable all the playbooks by selecting them all and clicking Enable under the Actions menu

Downloads

Additional Notes

This is a set of 8 playbooks developed in pc.2022.1 for performing actions on external vCenter VMs managed by Prism Central. The playbooks all use the manual trigger on the vCenter VM entity and do the following actions:

1. Reduce Memory
- Power Off VM (Guest Shutdown)
- Wait 1 minute
- Reduce memory by 1 GiB to a minimum of 1 GiB
- Power On VM

2. Reduce vCPU
- Power Off VM (Guest Shutdown)
- Wait 1 minute
- Reduce vCPU by 1 to a minimum of 1 vCPU
- Power On VM

3. Add memory (note: Memory Hot Add must be enabled for the VM in vCenter)
- Increase memory by 1 GiB to a maximum of 20 GiB

4. Add vCPU
- Increase vCPUs by 1 to a maximum of 20 vCPUs

5. VM Snapshot
- VM Recovery Point (TTL not defined)

6. Power On VM
- Power On VM

7. Guest Shutdown VM
- Power Off VM (Guest Shutdown)

8. Power Off VM
- Power Off VM (Hard Power Off)

Be sure to note the Prism Central version the Playbook was exported from. This is important because Playbooks cannot be imported to an older version of PC than they were exported from. For example, a Playbook from a pc.2021.1 version cannot be imported into a PC on pc.2020.11 version for compatibility reasons.