Tuesday, July 9, 2019

Nutanix : Create, Cloning and Detele used acli

AHV is very powerful from a scripting interface the so called acli. The flowing section is providing some basic scripts/commands that can be used in the acli interface.
  • Creating a VM using a script
  • Cloning a VM using a script
  • Delete a VM using a script

1. Create VM
  • acli vm.create testVM memory=1024M num_vcpus=1;
  • acli vm.disk_create testVM create_size=30G container=SelfServiceContainer
  • acli vm.on testVM2 - On the VM
  • acli vm.off testVM2- Off the VM
2. Cloning VM
  • acli vm.clone testVM3 clone_from_vm=testVM
3. Delete VM
  •  acli vm.delete testVM3

Source: https://ce-ahvworkshop.readthedocs.io/en/latest/VM_Script/vm_script.html

Related Posts:

0 comments:

Post a Comment