We build our vm images using packer and ansible and upload them to different endpoints.
First time I uploaded the images to Prism Central using API v3 and batch processing. Prism Central deploys the image to all the cluster that are registrated.
That works fine…
BUT… HOW can i define the destination storage container on each cluster?? I can define placement policies etc but I cannot assign a category or policy to Storage Container. Prism Central always deploys the images to “SelfServiceContainer”. But we dont want that.
Best answer by AlonaView original
Admittedly API reference is not the most exhaustive imaginable so I did some digging in the Prism guide and found the below:
“To set up an image placement policy, do the following:
For information about creating a category, see Creating a Category.
- Clusters (for example, create categories based on cluster location or region)
- Images (for example, create categories based on operating system and size)
As you can see image placement policy is not configurable for a storage container entity.
I also found a possible solution in APIv2 which allows to specify the container. I understand that’s not exactly what you were looking for but you will find quite often at least at this stage that API functionality while overlapping is not exactly mirrored in each version. Some versions will have options that others miss.
Please let me know if that helps.
Hi, thanks to this information - but I still found them.
And I know that API v2 is able to place images to defined storage container - but API v2 is only available on cluster itself.
We have multiple AHV Cluster and I want to manage this images Centralized by Prism Central but this seems to wo work while missing this feature…
My current workaround is to upload the images to each cluster separately using API v2 - but nice is other...
I’m guessing you’re working on clone-base images for disks, since container location matters much less for ISO images to be attached on the virtual CD-ROM drive.
You might find one of the options in this article useful:
“Transferring Virtual Disks to an AHV Cluster”