Question

Best Practice for Template Management


Badge +1

We have several AHV clusters across the WANscape all managed from Prism Central.

 

On one AHV cluster, I created a Windows Server 2016 and a Windows Server 2019 VM from CD ISOs, patched and tweaked and these are our “Golden Images”.  I clone those and run sysprep and those are what I make new VMs from.

 

Now I have two problems: 1.) in each cluster we have an RF2 container and an RF3 container so these VMs are bound to one or the other, and 2.) how do I get these to other clusters?

 

To address the differing containers, I end up using the image service (create image of the disks and create new VM from those disks).  But now I’m wasting storage because I’m keeping copies of the same VM on two different containers.

 

To address the differing clusters, I was thinking about setting up Protection Domains and letting Nutanix replicate them to each cluster.  They would only get updated once or twice per month for Windows patches.  Doing it this way would allow me to control replication schedule and bandwidth but would only replicate snapshots so recreating the VMs on the other end would require manually restoring from snapshot.

 

If I am not mistaken, there is an Image Service in Prism Central that would be globally available to all the clusters?  If I put the disk images in that, is there a way of controlling the bandwidth used?

 

Does anyone have any best practices to accomplish this?

 

Thanks!

 


7 replies

Userlevel 7
Badge +35

Thanks for sharing @TimGaray I’ll see if we can get you a reply!

Userlevel 4
Badge +4

Hi TimGaray,

 

Help me understand the set up a little better, please. There are 2 VMs on 2 different containers. The VMs serve as Gold images not only for the cluster they reside on but also for other clusters within the environment.

 

The goal is to be able to deploy VMs off these Gold images to both containers and to other clusters. Is that a correct summary of the task?

 

There is no best practices guide at the moment for images or templates at the moment.

 

I would love to give you a solution as this is a valid request, but I can’t and I apologise. There are improvements on the process and the feature in the pipeline.

 

At this point in time, you could use Prism Central image management feature. Note that with this feature images would be placed on SelfService container at both Prism Central as well as at the cluster that receives the image. From there you would have to copy images to all of the containers of interest.

Image Management section of Prism Central Guide talks about how to upload images from a workstation, a central server or import it from one of the clusters.

KB-2663 AHV | How to move VMs between containers within an AHV cluster explains how to move images between containers. The option is only available in CLI.

 

You could use Protection Domains, of course. As you can imagine, it would still require some manual effort to create images from the VMs and place them into all containers that you wish to deploy.

 

I sincerely hope that the above helps. Let me know, please if you have further questions.

Badge +1

Thank you @Alona, that is a correct description of the environment.

 

Due to the multiple containers in each cluster (one RF2 and one RF3), I am leaning towards using the Prism Central image management.  Thank you for the link to the guide.

 

If I get something up and running, I will be sure and post back my results.

Badge +1

After reviewing the Image Management material, although images seem to make the most sense there does not seem to be a way to throttle the bandwidth.  Some of our sites have small WAN connections and if I upload an 80GB disk image then Prism Central could flood that connection when transferring the image to that remote cluster.

Userlevel 4
Badge +4

Hi TimGaray,

I understand your concern in relation to bandwidth. There is no obvious option to throttle bandwidth, unfortunately. I would suggest to open a case with Nutanix Support for a possible custom tweaking.

Look forward to reading about the results of your efforts.

Badge +1

It would appear that images are also stored on specific storage containers and it won’t let me create a VM in one container with a disk image in another container.

 

So, whether I create a VM from disk images or clone from VMs, I have to keep a set on each storage container in a cluster (usually two: one RF2 and one RF3).

 

I’ll put in a support ticket and see what happens.

 

Userlevel 4
Badge +4

Yes, that’s right. That’s why I mentioned that you would need to copy images between containers and referred you to the KB for the same.

Reply