Update Snapshot for Static Pooled Machine Catalog

by Uddave Jajoo, Indianapolis CUGC Leader

Usually with Citrix MCS, there is no specific option to update the snapshots for the dedicated machine catalogs (Static Pooled Catalogs). However, this blog post will help you further with this process of updating the snapshots on the static pool machine catalog.

All you would need is the new snapshot for the master image or, even if the master image is changed to a different one, to point to the respective Hypervisor connection of the new master image with the snapshot details. Below are the steps to accomplish the task for updating static pooled machine catalog.

1. Login to one of the DDC server, launch Citrix Studio Open PowerShell on the server as administrator and enter asnp Citrix*

2. Run command Get-ProvScheme – This displays a list of Provisioning Scheme(s) from the XenDesktop site. Make a note of the MasterImageVM entry:

PS C:\Users\UserName> Get-ProvScheme -ProvisioningSchemeName “CatalogName”    
CleanOnBoot: False
ControllerAddress: {controller1,controller2}
CpuCount: 2
DiskSize: 120
MachineCount: 0
MasterImageVM: XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm\MVM-PRD1.snapshot 
MasterImageVMDate: 9/21/2020 3:22:58 PM  

3. Run the following command to display the list of snapshots on the virtual machine:
PS C:\Users\UserName> Get-ChildItem -Recurse -Path ‘XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm’

PSPath: Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm\MVM-PRD2.snapshot

PSParentPath: Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm

PSChildName: MVM-PRD2.snapshot
PSDrive: XDHyp
PSProvider: Citrix.Host.Admin.V2\Citrix.Hypervisor
PSIsContainer: True
AdditionalData :
FullName: MVM-PRD2.snapshot
FullPath: XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm\MVM-PRD2.snapshot
IsContainer: True
IsMachine: False
IsSnapshotable: False
IsSymLink: False
Name: MVM-PRD2
ObjectPath: /DataCenterName.datacenter/Citrix ClusterName.cluster/MVM.vm/MVM-PRD2.snapshot
ObjectType: Snapshot
ObjectTypeName: snapshot

4. Run the following command to publish the details of the master virtual machine:

Publish-ProvMasterVmImage -ProvisioningSchemeName “%provisioningSchemeName%” -MasterImageVM “%templatePSPath%”

PS C:\Users\UserName> Publish-ProvMasterVmImage -ProvisioningSchemeName “CatalogName” -MasterImageVM “Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm\MVM-PRD2.snapshot

TaskId: a9c5dad7-f812-462b-904c-9ceabffed6b3
Active: False
Host: ControllerName
DateStarted: 9/30/2020 4:09:02 PM
Metadata: {}
Type: PublishImage
Status: Finished
TaskExpectedCompletion: 9/30/2020 4:12:08 PM
LastUpdateTime: 9/30/2020 4:12:08 PM
ActiveElapsedTime: 186
DateFinished: 9/30/2020 4:12:08 PM
WorkflowStatus: Completed
ProvisioningSchemeName: CatalogName
MasterImage: XDHyp:\HostingUnits\ConnectionAndResourceName\MVM.vm\MVM-PRD2.snapshot
HostingUnitName: ConnectionAndResourceName
TaskState: Finished
TaskStateInformation: Completed
TaskProgress: 100
Warnings: {}
DiskSize: 120

5. You can also monitor in the Studio actions pane the task will show up as Running with status updating catalog Image.

Under Logging tab, you would be able to monitor the progress for update catalog.
Reference – https://support.citrix.com/article/CTX129205


Leave a Reply