How do I create a template of a VM in AHV? I do not have Prism Central | Nutanix Community
Skip to main content

As stated in the question, how do I create a template from a VM in AHV?

And how do I use the template to create a VM?

Hello @Dalew 

You need Prism Central.

How to create a template:

https://portal.nutanix.com/page/documents/details?targetId=AHV-Admin-Guide-v6_6:mul-vm-template-create-pc-t.html

How to deploy from a template:

https://portal.nutanix.com/page/documents/details?targetId=AHV-Admin-Guide-v6_6:mul-vm-template-deploy-vm-pc-t.html


This isn’t any sort of “official” way, but you can try doing it the way I’ve done it and have seen other customers do it in the past.  Build a Windows VM, attached to the production network, just like you would any other Windows VM. Patch it up to the latest patches from Microsoft. Then, using the console, switch the VM’s network to DHCP (if it wasn’t already getting its IP via DHCP), run sysprep /generalize /shutdown /oobe  on the VM, and power the VM down. I usually name the template something like Z_Windows_2022, for instance. That way it’s at the end of the list and doesn’t clog up the list of VMs.  Then when you’re ready, clone the VM and make sure it gets a new MAC address.  This seems to work for a number of customers.

Reference: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation?view=windows-11


The best way is to use Prism Central. incase if Prism Central is not available I normally use below methology 

 

  • Syspre the VM and shutdown
  • later on use this VM for cloning 
  • you can clone the VM disk to image services also for future use