More of a "philosophical" question for those that ...
# citrix-vad
d
More of a "philosophical" question for those that use MCS with VSphere. How do you guys handle version management for quicker rollbacks? Clone updated golden image to template and just keep several of those templates around? I am considering switching from PVS and one thing that is attractive with PVS is how you can quickly switch back to old ver.
j
Use the new prepared image function. It uses mcs, but separates the mastering process from the catalog update process. And with 2507 and cloud you can deploy that image to multiple clusters or vcenters. Something that was a pain with MCS in the past. And you can keep as many versions as you want.
s
what about just rolling back a single VDA?
j
That would be a PVS only option unfortunately.
👍 1
m
So even without the image prepared function - you simply keep snapshots on the GI. its not best practice for Vmware and the hypervisor guys will usually squawk at you, but you simply select an earlier snapshot if needed. MCS also has a very handy "rollback image" option that will simply rollback to the last image with minimal fuss
d
thats the prob VMWare team would not be thrilled with keeping snaps for too long.
m
Yeah and you just have to explain its a GI and it will always have multiple snapshots. nature of the beast Shrug
d
@Jeff Riechers I am on DaaS, where will the older versions be stored with image prep service? I have not looked at it too much tbh
whats a GI?
j
They get stored in the vcenter datastore you specify in the hosting. It clones the snaphsot you make on your master image, then lives there until you tell it to delete. But it is completely disconnected from the original vm snapshot.
d
so how would an update workflow work? sorry for dumb questions. I patch a master image then do I import it into image management somehow and it stores it on the datastore?
j
Patch your image and shut it down. Take a vmware snapshot. Go to image management and add a new version. Browse to your snapshot and then it goes. When you want to update your catalog, you just go to the catalog you want to update and change to the new version. Or you can create a catalog on any previous image. Or roll back a catalog to an old image.
d
And image management handles the storage of older versions and I can control how many vers it keeps? Also if I have multiple clusters I am guessing I will have to clone the base image to each of them first?
j
Correct. All images are stored as separate folders on the hypervisor datastore. And you can specify where those images are stored. So you can use a single vmware datastore, or you could select multiple datastores in the same cluster. Or even store a replica in completely separate vcenters. Whenever you update them it will update that replica on all the locations. Same with you delete old ones, it will delete them from all the datastores.
This is what they look like in my vcenter. Dont hack my stuff. 😉
d
just to clarify, I have to handle the replication myself?
I have mutliple datastores and clusters
j
Nope. Once you add the new image share option it will do it for you. This is brand new.
d
no way.... ok this alone may a good enough reason to start looking into this. 😄
👍 1
r
@Mike Gray When I was running CVAD on VMware with NFS storage, I took advantage of "native snapshots" courtesy of a VAAI .VIB from NetApp. It was a game-changer for our snapshots. I could keep literally ten snapshots over the course a month on a test system, then I would delete all ten snapshots at once and they'd be gone in seconds. This capability was previously only available in VMware vVols, but a few years ago, they rolled it into VAAI. It's the main thing I miss from VMware now that I've migrated to XCP-NG.
d
@Jeff Riechers I got the image management set up and share image works pretty slick 🙂 Thank you! But it looks like it only works within the same hosting connection?
j
If you have the secondary hosting connection setup, you should be able to add it to the image stack after the first deployment.
d
secondary? I mean like I have a case where a customer wants their envrionment split between two subs in Azure for billing but they want to use the same image. So there are two separate hosting connections - one for each sub. But when you click on the image and select manage image share it only shows the hosting connection where the original image was created.
j
Correct. You setup the 2 hosting connections. 1 for each subscription. Then upload the image to the first subscription. After it is there you can add the second subscription to the existing uploaded image. It will then copy it to the second subscription, and every subsequent update to the image will deploy to both.
d
image.png
this is what I see when I click manage. Just one connection.
Is that a CLI only thing?
j
Let me check my notes.
d
🙏
j
Do you already have a hosting connection in the second subscription? It should be accessible from the gui. https://docs.citrix.com/en-us/citrix-daas/install-configure/create-prepared-image-machine-catalogs-azure#share-the-encrypted-[…]tenants-using-studio
d
Yea I have a number of hosting connections actually. and for some reason I am seeing just the one I created the image from. 🤔
you know, maybe its because it was a VMWare connection and this sharing thing only works with Azure? I can try with Azure image too....
j
You can share vmware to vmware, and azure to azure. If you want to share from vmware to azure, then you need to use IPS to send the image still.
d
hmm, its not seeing other VMWare connections either. 😞
I probably selected wrong option when creating image intitially. I see that with Azure you have to select use gallery
j
Ok, some clarification. Your base hosting connection needs to be the same. Like pointing to a single vcenter with multiple clusters. And you can share that image between clusters. For azure you have a single hosting connection that has multiple subscriptions, and you can share the image among those.
d
ah ok. nbd for VMWare, but for azure - I am not sure you can have multiple subs in the same hosting connection?
j
You can, you just need to make sure the spn has permissions to both.
d
when I right click on existing connection and do add it only allows to add networks. Or is there another way?
Those should get you what you need. Good luck!
👍 1