How to Migrate PVS created machines to another host

How to Migrate PVS created machines to another host

book

Article ID: CTX216875

calendar_today

Updated On:

Description

To be able to power manage machine post migration. The machines in this case should be created using PVS and the catalog type should be Streamed

Instructions

The following needs to be done in order to migrate desktops 

1. Take a backup of the database 
2. Run the following commands in powershell : 

asnp citrix*  //To import Citrix snap-ins
  • Run Get-BrokerMachine "<machine name>" to check the old HypervisorConnectionUid for the machines.
  • Run Get-BrokerHypervisorConnection to list the HypervisorConnectionUid for all the existing Hypervisor connections. Make a note of the old and new HypervisorConnectionUID.
  • Then, to change the connection Uid for the machines in order to point them to the new connection, run the command : 
Get-BrokerMachine –HypervisorConnectionUid <oldUid> | Set-BrokerMachine –HypervisorConnectionUid <newUid> 

3. Put the old connection in maintenance mode. 
  • Select Configuration > Hosting in the Studio navigation pane.
  • Select the old hosting connection. To turn maintenance mode on, select Turn On Maintenance Mode in the Actions pane. 
HostingCOnnection

4. Restart Citrix Broker service on all Controllers 
5. Reopen Studio 
If this does not work, we can revert to the database backup immediately