MrBeatnik
Hot Shot
Hot Shot

Send-LinkedCloneRecompose doesn't update Image name on pool

Jump to solution

Hi all,

Using the "Send-LinkedCloneRecompose" Powershell command, everything appears to work fine:

  • The PS command indicates that the desktops are going to recompose (shows VMs Unchanged: 0).
  • The pool shows a recompose task for all desktops.
  • The pool task window shows that the recompose action is for the correct snapshot.
  • A new replica is created in vSphere.
  • Desktops are recomposed OK.

Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true

Problem:

  • Checking the pool information in View Administrator, the "Image" name still shows the old snapshot- this is obviously incorrect. This would normally change to the new snapshot name if the recompose operation is performed from within View Administrator.
  • Using Powershell to interrogate the pool information, the same details are shown - the old snapshot name is written.

    > Get-Pool -Pool_id "$poolID"

    > ...

    > parentVMSnapshotPath    : **original old snapshot path**

    > ...

So, is this a bug? Can this be reproduced, or is it a problem only I am experiencing?

Any ideas?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
Htclee
Contributor
Contributor

Using Send-LinkedCloneRecompose does not update the pool configuration - it only recomposes the VMs to the image specified.

You need to use the Update-AutomaticLinkedClonePool command, using it as below would only change the parent VM and snapshot leaving all other pool settings as they are.

Run this first and then use the Send-LinkedCloneRecompose to rebuild the VMs to the latest image.

Update-AutomaticLinkedClonePool -pool_id "$poolID" -parentVMPath "$parentPath" -parentSnapshotpath "newSnapPath"

Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true

View solution in original post

0 Kudos
3 Replies
Htclee
Contributor
Contributor

Using Send-LinkedCloneRecompose does not update the pool configuration - it only recomposes the VMs to the image specified.

You need to use the Update-AutomaticLinkedClonePool command, using it as below would only change the parent VM and snapshot leaving all other pool settings as they are.

Run this first and then use the Send-LinkedCloneRecompose to rebuild the VMs to the latest image.

Update-AutomaticLinkedClonePool -pool_id "$poolID" -parentVMPath "$parentPath" -parentSnapshotpath "newSnapPath"

Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true

0 Kudos
MrBeatnik
Hot Shot
Hot Shot

Htclee

Thanks for this.

I assume you are saying that whilst my command alone recomposed successfully, as soon as those desktops are destroyed, any new desktop will use the original snapshot?

0 Kudos
Htclee
Contributor
Contributor

Yes - exactly that.

0 Kudos