How to Migrate Machines from Existing Host Connection to New Host Connection in XenDesktop

How to Migrate Machines from Existing Host Connection to New Host Connection in XenDesktop

book

Article ID: CTX140486

calendar_today

Updated On:

Description

This article describes how to migrate the machines from existing host connection to a new host connection in XenDesktop.


Instructions

Complete the following steps to migrate the machines from existing host connection to a new host connection in XenDesktop:

  1. Find HypervisorConnectionUid using the following commands:
    For one machine - Get-BrokerMachine -MachineName 'MyDomain\machine_name'
    For a set of machines - $machines = Get-BrokerMachine -MachineName 'MyDomain\*'
    $machines.count

  2. In XenDesktop Studio, create a new host connection.

  3. On new host connection, create a test01 machine and using the preceding commands, find out HypervisorConnectionUid,.

  4. Run the following command to change HypervisorConnectionUid for an existing machine to the new host connection:
    Set-BrokerMachine -MachineName 'MyDomain\MyMachine' -HypervisorConnectionUid 9

  1. Validate in XenDesktop studio, and boot the device to validate the machines on new host connection.

  2. Perform Steps 1 to 4 for all existing machines to move to new host connections by using the following command:
    Get-BrokerMachine -MachineName 'MyDomain\*' | Set-BrokerMachine -HypervisorConnectionUid 9

  3. Validate in XenDesktop studio, and boot the device to validate the machines on new host connection.
    Note: If you find any Action Pending State, run the following command:
    Get-BrokerHostingPowerAction -Filter { State -eq "Pending" } | Remove-BrokerHostingPowerAction

Issue/Introduction

This article describes how to migrate the machines from existing host connection to a new host connection in XenDesktop.

Additional Information

This works for PVS and Manual provisioned machine.