Upgrading a Citrix Provisioning Server when the vDisk has Two Volumes

By Kaysel Adrover
Posted in Virtualization
On October 03, 2012

I ran into an interesting issue when a customer upgraded from Citrix Provisioning Server (PVS) version 5.6 to version 6.1. What made this upgrade unusual was that their vDisk had two volumes instead of the usual one volume. Because the client’s virtual machine image had an O-drive and P-drive configured, extra steps and utility were necessary. I wanted to share the steps taken during the upgrade process.

Because the PVS 5.6 farm and the PVS 6.1 farm would reside on the same subnet for a short period of time, the PVS 6.1 farm needed to be configured to boot from a Boot ISO created with the PVS Boot Device Manager utility (see Creating a Boot ISO using BDM below).

Imaging Back To Hard-Disk Drive

1. On the worker machine in vSphere, add a 36 GB drive and a 17 GB drive.

2. Boot the worker machine from the vDisk in Private Image Mode.

3. From Windows Administrative Tools, select the Computer Management menu option. The Computer Management window appears.

4. In the tree, under Storage, select Disk Management.

5. Create a new primary partition, as the first partition (0, 0), assign a drive letter to it, and then format the partition.

6. Right-click on the newly created partition, then choose Mark Partition as Active.

7. Create a new secondary partition, as the second partition (0, 1), assign a drive letter to it, and then format the partition.

8. If there is a boot.ini.hdisk, delete it. If there is no file, move to the next step.

9. Run the Image Builder utility on the target device. This utility is located at \Program Files\Citrix\Provisioning Services\BNImage.exe.

10. Specify the drive letter of the newly created partition (or the original boot HHD partition) as the destination drive. The destination drive should point to the vDisk first partition by default.

11. Proceed with cloning the hard drive image to the vDisk destination drive.

To image a second drive, continue with the following:

12. Run the XenConvert wizard utility.

Note: The Image Builder only works for the primary drive; it will not convert the second drive.

13. Select volume to volume conversion. Specify the drive letter of the second newly created partition as the destination drive.

14. Proceed with cloning the hard drive image to the vDisk destination drive.

15. When completed, shut down the worker machine.

Uninstalling Windows Target Device Software

1. Set the system BIOS to boot from the original hard drive.

2. Boot the target device directly from the hard drive.

Note: At this stage, there should be no connection to the PVS server.

3. On the target device, open the system’s control panel.

4. Double-click on the Add>Remove Program icon.

5. Use Add>Remove Programs from the control panel to uninstall the product software. A reboot is required.

6. Re-install the VMware tools when the target device boots up. A reboot is required.

7. Install the new PVS 6.1 Windows Target Device agent when the workstation boots up. A reboot is required.

Creating New Image

1. Launch the Imaging Wizard. This tool will allow you to image both drives into one image file.

2. Enter the PVS server name or IP address.

3. Select Create new vDisk.

4. Provide a name for the new vDisk to be created.

5. Select None for the Microsoft Volume Licensing.

6. On the Configure Image Volumes window, verify that the boot drive and the second drives are selected as #1 and #2. Verify there are no red errors in the Configure Image Volumes window.

7. Select the Optimize for Provisioning Services button.

8. Proceed with cloning the hard drives.

9. Once the conversion has been completed, turn off the machine device.

10. Under the virtual device settings within vSphere, remove, but do not delete, the hard drives.

11. Change BIOS to boot from PXE\BDM.

12. Change the vDisk image within PVS to boot from vDisk.

13. Start the virtual device and verify it boots up with no error messages.

Creating a Boot ISO Using BDM

This procedure was used to deliver the necessary information for a provisioned device to boot up. This replaces the use of PXE boot.

1. Launch the PVS Services Boot Device Manager: Start > All Programs > Citrix > Provisioning Services.

2. For high availability, up to four PVS server addresses can be entered by selecting Use static IP address for the server.

3. Select Verbose Mode to display diagnostic information when the virtual machine is booting up.

4. Select Citrix ISO Image Recorder.

5. Click Burn.

6. Save the ISO file and upload it to the hypervisor data store.

7. Set the system BIOS to boot from the DVD drive.

8. Attach the BootISO file to the virtual device DVD drive. Verify the DVD drive is set to always connect.

For more information, visit the following Citrix Knowledge Center links:

Kaysel Adrover

Kaysel Adrover

Kaysel has over 10 years’ experience in systems consulting and Citrix operations management. He implements virtual desktop infrastructure (VDI) solutions utilizing Provisioning Virtual Server 5.6 farms, XenDesktop 4.0 and XenDesktop 5; integrates XenApp application farms with VDI on XenServer, ESX, and Hyper-V environments, and configures Web Interface and Citrix Profile Management.