Migrate VM to a new hosting resource
You can migrate VMs provisioned with Citrix Provisioning and without changing the Citrix Virtual Apps and Desktops and provisioning power functions. You might migrate the VM when you are retiring a hosting resource and want to migrate the provisioned VMs to a new hosting resource instead of provisioning new VMs.
Important: After you migrate the VM, the provisioned MCS catalog in the old host no longer works.
Shut down the VM. Then, do these processes in any order:
- Edit the hosting unit.
- Change the host resource to point to your new hosting resource.
- Migrate the provisioned VM from your old hosting resource to the new one.
When you have finished performing these processes, test your VM.
Edit the hosting unit
- In the Provisioning console, edit the host unit.
- Change the host address to your new host resource main IP address.
- On the Credentials tab, change the user name and password to the ones you want to use for the new hosting resource.
- Click OK.
Change the hosting resource
For the provisioning VM to migrate successfully:
- Change the hosting resource to point to your new hosting resource.
- Change the storage to the storage server.
- Specify the new network.
- Open Citrix Studio.
- Edit the connection:
- On the Hosting tab, select the hosting resource hosting connection and select Action > Edit Connection.
- In the Connection Properties tab, select Edit settings.
- In the Edit settings screen, change the address to the new hosting resource pool main IP.
- On the Credentials tab, change the user name and password to be used for the new hosting resource pool.
- Select OK.
- Change the previously defined storage to the new storage for the hosting resource on your new hosting resource.
- Select the hosting resource and select Action > Edit Storage.
- In the OS Storage tab, clear the local storage location to remove it from use.
- Select the new storage server to put it in use.
- On the Temporary Storage tab, clear the local storage location and select the new storage location.
- Select OK.
- Change the network interface in an existing hosting connection. Still in the Citrix Cloud Connector, open a PowerShell session with administrator privileges. Run these commands.
- Import PowerShell modules:
Add-PSSnapinCitrix*
- Get the host connection details. Note the values for PSChildName and the network path (NewNetworkPath) that are returned:
dir XDHyp:\HostingUnits
- Set the PSChildName to the new hosting resource:
PSChildName = <NewHostingResource>
- Set the network path to the new network:
Set-Item -Path XDHyp:\HostingUnits\<PSChildName> -NetworkPath <NewNetworkPath>
- Run the command that changes the network interface:
Set-Item -Path "XDHyp:\HostingUnits\<NewHostingResource\" -NetworkPath "XDHyp:\Connections\XS2\<New Network Path>
- Import PowerShell modules:
Migrate the provisioned VM from the old hosting resource to the new one
- In Citrix Studio, select the provisioned VM.
- From the context menu, select Move VM.
- Using the wizard, enter values for the following:
-
Destination:
<NewHostingResource>
- Target Server: Not needed
- Place all virtual disks on the same: New storage location
-
Target Network:
<NewNetworkPath>
- Storage Network: Storage network on new hosting resource
-
Destination:
- Select Finish.
Test the migration
To test that the migration was successful:
- Start the VM from the Provisioning console.
- Start the VM from Studio.
- Verify the BDM update. To do so:
- Record the IPs in the bootstrap. Configure the bootstrap of the provisioning server that you are currently logged into using invalid IPs.
- Enable the bootstrap option Verbose mode.
- Right-click the HDD BDM-booting provisioned VM and select Target > Update BDM Partitions.
- Boot the provisioned VM from the Provisioning console.
- Verify that the VM is trying to boot from the invalid IP. Shut down the VM.
- Configure the bootstrap and fix the IPs in the bootstrap to valid ones. Or, click Read Servers from database. Disable verbose mode if necessary. Do the BDM update on the previous client again.
- Verify that the VM can boot.
Migrate VM to a new hosting resource
Copied!
Failed!