1. Take a Target Device Virtual Machine and make sure that we don’t have any Hard Disk attached to it.
2. Make sure that this Target VM is mapped to PVS Console, match the MAC Address
3. To this Target in PVS Console, Assign the vDisk for which you need to perform Reverse Imaging
4. Boot this Target over the Network from the vDisk in Private Mode (We should have the versions merged to do this process, we cannot do Reverse Imaging using an AVHD File)
5. Once we confirm that the Target Device booted up fine with vDisk in Private Mode (vDisk Active), attach an external HDD to this Target
6. The Size of the HDD attached should be more than the size of the vDisk (Confirm the size of vDisk in PVS Store)
7. On the Target, go to Disk Management and Initialize the disk that we attached, Format this disk as NTFS, Master Boot Record and make sure is set to Active in Windows Disk Management. Make a New Partition, say D Drive and Mark the partition as Active
8. So now for this Target, we have one C Drive that is your vDisk and one D Drive (Can be different) that is the Blank HDD.
9. We need to copy the C Drive to the D Drive and for that we use P2PVS.exe located at Program FilesCitrixProvisioning ServicesP2PVS.exe
10. We need to perform volume to volume conversion.
11. Run this exe and select C as the Source Drive and D as the destination Drive.
12. Once the Process completes, the D Drive will be a replica of the C Drive (vdisk).
13. Ensure that the Volume shadow copy service and the Microsoft Software Shadow Copy Provider service are both set for Automatic or Manual Startup Type or else reverse imaging will fail at creating snapshots.
14. Change the Boot Order to boot the Target from Local HDD and Boot it.
15. At this point in time we have the VM on Hypervisor with Local HDD attached to it and not associated to PVS.
16. Boot the device to Hard Disk by manually changing the boot order in BIOS.
17. Uninstall Virtual Delivery Agent software and reboot.
18. Uninstall Provisioning Services Target Device target device software and reboot.
19. Uninstall any anti-virus software and reboot.
20. Update hypervisor tools if necessary and reboot.
21. Install antivirus software.
22. Install the new version of Provisioning Services Target Device software and reboot.
23. Now we can do Imaging by using the Imaging Wizard and we can either make changes to the existing vDisk or create a new vDisk.