Skip to main content
Question

VM Disk Expansion Playbook?

  • Dec 16, 2019 5:19 PM UTC
  • 3 replies
  • 2442 views

Hi All,

 

New here so I’m not sure this is the right place.  Is there playbook or way to automate disk expansion?  Can it expand the disk then trigger powershell to expand in the vm? 

 

Thank you,
Doug

This topic has been closed for replies.

3 replies

HITESH0801
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • Dec 16, 2019 5:51 PM UTC

Hello @ke_dkropp 
Need to look around on how to expand the disk in the VM, but you can update the virtual disk by using the API. 
https://www.nutanix.dev/reference/prism_element/v2/api/virtual-disks/put-virtual-disks-updatevirtualdisk


sandeepmp
Nutanix Employee
Forum|alt.badge.img+19
  • Nutanix Employee
  • Dec 21, 2019 2:05 PM UTC

@ke_dkropp 

As of now , we dont have any default playbook in Prism Pro X-Play for vm disk add.

However you can create a custom playbook for the same.

Playbook → Manual trigger → Entity : VM → Rest API [to add disk to selected vm. You need to script that] → Powershell/SSH [to update disk in OS 


Forum|alt.badge.img+2
  • Nutanix Employee
  • Aug 21, 2020 7:11 PM UTC

With both PC and PE on 5.17 AOS version and greater, we can now use Playbooks to expand the VM disk size automatically.

 

Check out this video: