PVS Target Device Software update with Hyper-V – Reverse Image

If you are running PVS Target Device software version 7.6 or below and want to upgrade, unfortunately you will need to reverse your PVS image to boot as a local hard drive from a VM.

Reason being, the software update will break network communications between the Target VM and PVS Server, interrupting the vDisk streaming of course, and causing the VM to hang. Even updating virtual machine hypervisor tools or NIC drivers will break communication.

Now I did say 7.6 or below. If you are on version (minimum) 7.6 Cumulative Update 1, you can now upgrade within a Maintenance Mode version to the latest Target Device software version. No more needing to reverse image. Great right!?

To upgrade the older versions, we need to reverse the image and boot directly to the VHD rather than receive it via stream.

Now, depending on which Hypervisor platform you use, methods could be different. An example of this is VMware does not deal with the VHD/X files that are used with PVS today, so it’s not as simple as attaching the vDisk to a VM and booting.

There are several roads you can take to achieve the same result of reversing an image. If you look on the internet there are articles explaining how to use BCDEdit, VMware Workstation, XenConvert and more to get vDisks upgraded. If your business runs Hyper-V, it will be very simple to reverse the image. If you don’t have Hyper-V but use a Windows 8 or above workstation, it will also be very easy to reverse the image.

How many of us use Windows 8 and above? Probably all of us have access to one of these Operating Systems. Well, from there you can use the Hyper-V component straight from a workstation which this post will explain how to do.

Firstly we need to install the Hyper-V components. If you have already done this or know how to do so you can skip the next few sections.

Navigate to Program and Features -> Turn Windows Features on or off and check the boxes for Hyper-V GUI Management Tools, Hyper-V Hypervisor and Hyper-V Services. Click OK.


The Hyper-V components are being installed.2

Click Restart now once the install is complete.3

After a restart, open Hyper-V Manager and create a Virtual Switch by clicking Virtual Switch Manager. Create a Virtual Switch of type External and click Create Virtual Switch.4 5

Specify a name and any other desired parameters and click OK.6

Click Yes. The VM network connectivity will be briefly disrupted.7

Right-click your Hyper-V server (PC name) and click New -> Virtual Machine.8

Click Next.9

Specify a virtual machine name and click Next.10

Click Next.11

Assign memory for the VM, click Next.12

Select the newly created virtual switch and click Next.13

Select Use an existing virtual hard disk. You should have copied the PVS vDisk to the local PC or a network share where you have the correct permissions delegated. Click Next.14

Click Finish.15

Start the VM.16 17

Download Provisioning Services 7.6 Cumulative Update 1 for Target Device x64 from http://support.citrix.com/article/CTX142616.18

Double click PVS_Device_x64 to start the install.19

Remember to uninstall any previous versions of the Target Device software before installing 7.6.1. If not, you’ll get the below message.

20 21

Once any previous versions are uninstalled, continue on with the install. Click Next.22

Select I accept the terms in the license agreementand click Next.23

Click Next.24

Specify the install location and click Next.25

Click Install.26

Uncheck the Launch Imaging Wizard and click Finish. 27

Using Add/Remove Programs we can see the new version that is installed.28

Click Yes to restart the VM and complete the install. 29

Copy the vDisk to your PVS server(s) again and import the vDisk using the PVS Console. It is also possible to copy the updated vDisk over the top of the existing older vDisk containing the 7.6.0 software. This way you won’t need to import the vDisk to the PVS Console as it already exists and the existing vDisk properties file will continue to work.30

Now once Target Devices start using the vDisk, we can launch the Virtual Disk status tool to check the correct version shows.


Upgrading Target Device Software 7.6.1+

As I mentioned above, the need to reverse a vDisk when upgrading PVS Target Device software 7.6.1 or above is no more. We can simply perform an in-place upgrade using a maintenance mode vDisk version.

With a maintenance version created and a maintenance Target VM online, launch the PVS software you wish to upgrade to and select Target Device Installation.32-min

Click Next.33-min

If using VMWare you may be presented with the following information. Hotfixes are available for Windows Server 2008 R2, Windows 7 and both SP1 variants to prevent blue screens. Check Acknowledged and click Next.34-min

Click I accept the terms in the license agreement and click Next.35-min

Click Next.36-min

Choose your desired installation path and click Next.37-min

Click Install.38-min 39-min

Click Yes to restart.40-min

Once the VM has restarted, check the Virtual Disk status tool to confirm the new PVS Target Device version shows. Promote the vDisk to test or production.41-min

One Comments

Leave a Reply