I have had a recent need to migrate a working XenDesktop environment from VMware over to XenServer.
Following are some guidelines that can be used by most anyone who is in this situation.
A video companion to this article can be found at the end.
The (fully) Virtual Environment:
- XenDesktop 4 Desktop Delivery Controller (Windows 2003 R2, x64, 2vCPU, 4GB RAM, 1 NIC)
- Licensing Server (Windows 2008, x86, 1 vCPU, 2GB RAM, 1 NIC)
- Web Interface server (Windows 2008 R2, 2 vCPU, 4GB RAM, 1 NIC)
- Provisioning Server (Windows 2008, x64, 4 vCPU, 16GB RAM, 1 NIC)
- Master VM (the VM where the desktop image is installed, Windows 1, 1 vCPU, 1GB RAM, 1 NIC)
- PvS Template (the VM template that is cloned to create new Desktop virtual machines)
- Desktop VM (the actual virtual machines that the Provisioning Server image is streamed to and runs the users applications)
- Use vApp containers to export OVF packages as groups of machines
- Organize the XenDesktop application tier machines into a vApp container named “Infrastructure”. This is so they can be exported as a group of machines in a single OVF package.
- Power off the Infrastructure vApp (this can also be done individually by virtual machine).
- Export the Infrastructure to an OVF package
- Be sure to select the Infrastructure container and choose File, Export, Export OVF Template. Leave the option to export to an OVF (a folder of files) – this speeds up the process since there is no requirement for creating a single OVA file (which takes longer to export and import).
- Export the Master VM
- To keep the Master VM as uncluttered and clean as possible it is recommended to uninstall the VMware Tools prior to export.
- Export the PvS VM Template
- If for no reason other than documentation purposes because the OVF contains all of the settings of the original template. With XenServer it is recommended to use an included base template for optimal configuration.
- Export the virtual desktops – an additional export consideration
- Before exporting the currently deployed virtual desktops there are two options to think about. Do you export your existing virtual desktops (this is highly useful if they have local cache disks on the hypervisor) or do you not export your existing virtual desktops. In both cases you need to create new desktop groups on the Desktop Delivery Controller.
- If your Desktop VM images were derived from a template (for example: using the XenDesktop Setup Wizard) the deployed desktop virtual machines probably have dynamic MAC addresses assigned to the VMs.
The VMware OVF does not record the currently assigned MAC address if it is set to dynamic. This means that when imported these machines will be assigned new MAC addresses.
- If Provisioning Server is used; the “auto add” feature can be implemented, to automatically add the Imported desktop VMs to Provisioning Server or the MAC addresses of each VM can be updated in the XXX configuration of Provisioning Server.
- If you choose to not export the existing Desktop virtual machines you can create new Desktop groups using the PvS Template with the XenDesktop Setup Wizard on the XenServer environment.In this example I elected not to export the virtual desktops. Primarily because they are pooled and there is little benefit in doing so.
- Import the OVF packages into XenServer using the fix-up option
- From XenCenter select a target XenServer, Resource Pool, or folder and launch the Appliance Import Wizard from the File menu.
- Browse to the Infrastructure OVF package and begin the import. Be sure to use the “fix-up” option because these machines were built on ESX server.
- Install XenTools into each VM in the environment
- Before powering on each VM be sure to check that the original VM is powered off (or disconnected from the network). Otherwise there will be two of the same machine on the network at the same time.
- Log into each VM and install the XenServer tools, reboot, and proceed to manually fix any network settings. Don’t forget the Master VM.
Application Configuration Update
- Make any setting changes to the XenDesktop and Provisioning Server applications
- If you didn’t already do so login to the XenDesktop console and disable the Desktop Groups specific to the VMware environment
- The XenDesktop installation uses Fully Qualified Domain Names and therefore relies on DNS, so make sure that all of the machine names are resolving properly.
- Double check all Provisioning Server Settings
- If the IP address of the Provisioning Server VM has changed be sure to make that configuration change in the Server configuration of your Site.
Update the Desktops and Desktop Groups
- Update the vDisk Image from the Master VM
- Be sure to set the vDisk to read / write mode in its settings in Provisioning Server. Also, modify the machine configuration in Provisioning Server with the new MAC address of the Master VM.
- A gotcha to be aware of: the PVS driver binds to the NIC driver of the machine when it is installed. Migrating the VM to XenServer and installing XenTools and uninstalling VMware tools all cause the NIC and / or driver in the VM to be changed and therefore breaks the PVS Image driver. To resolve this uninstall and re-install the PVS “Target Device” software on the Master VM.
- Run XenConvert to update the vDisk with the latest working Master VM image.
- Set the vDisk back to Standard Image mode.
- Use the XenDesktop Setup Wizard to create new Desktop Groups
- Create a new VM in your XenServer environment (using a XenServer template)
- Convert this to a Template
- Run the XenDesktop Setup Wizard to build out a new set of replacement desktop images.
- Verify it is working
- Now that all settings are in place; wait for the DDC to refresh the new desktop groups and to spin up virtual machines for the idle desktop pool.
- Check the console of a few VMs to see that the PVS image is streaming properly and connect to a desktop.
With one practice run I would feel confident in understanding the process to do this with a production environment – I would probably handle it in stages – but I would know enough to be able to properly plan.
- Use vApp containers to export OVF packages that contain groups of machines.
- Import the OVF packages into XenServer and use the fix-up option.
- Install XenTools into each VM in the environment.
- Double check network settings (including DNS) of each infrastructure VM.
- Make any modifications I needed in Provisioning Server settings for new VM MAC addresses and Server IP address changes.
- Update the vDisk Image
- Uninstall and re-install the PVS client due to the virtual NIC driver changing.
- Re-create the desktop pools
The Video Companion