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.
当你有福inished 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.
- ClickOK.
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 selectAction > Edit Connection.
- In the Connection Properties tab, selectEdit 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.
- SelectOK.
- Change the previously defined storage to the new storage for the hosting resource on your new hosting resource.
- Select the hosting resource and selectAction > 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.
- SelectOK.
- 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 =
- Set the network path to the new network:
Set-Item -Path XDHyp:\HostingUnits\
-NetworkPath - Run the command that changes the network interface:
Set-Item -Path "XDHyp:\HostingUnits\
- 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, selectMove VM.
- Using the wizard, enter values for the following:
- Destination:
- Target Server:Not needed
- Place all virtual disks on the same:New storage location
- Target Network:
- Storage Network: Storage network on new hosting resource
- Destination:
- SelectFinish.
Test the migration
To test that the migration was successful:
- Start the VM from the Provisioning console.
- 启动VM从工作室。
- 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 optionVerbose mode.
- Right-click the HDD BDM-booting provisioned VM and selectTarget > 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, clickRead 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!