Whenever there is an updated version of Citrix Provisioning target device driver or XenServer tools, you have to go through reverse imaging on each image to update the drivers. This is very time consuming, especially if you have many images. There is a way to update each image in just a few minutes, and it’s VERY simple.
This method is based on booting the image directly using NFS on the PVS server. Why? Because when you create a NFS share on the same disk as PVS image store, you don’t need to copy anything, just move the file from PVS store into NFS folder and back to PVS store when finished. The good thing is that Windows supports NFS out of the box. Here are 4 commands for you to prepare for this method. On one of the PVS servers run on command line:
ServerManagerCmd.exe -install FS-NFS-Services MD E:PVSNFS nfsshare -o rw=10:0.0.10:10.0.0.11 root=10:0.0.10:10.0.0.11 PVSNFS= E:PVSNFS "c:Program Files (x86)CitrixXenCenterxe.exe" -s 10.0.0.10 -u root -pw passord sr-create content-type=user type=nfs name-label=PVSNFS shared=true device-config:server=pvsserver.mydomain.local device-config:serverpath=/PVSNFS
In above example, replace 10.0.0.10:10.0.0.11 with IP address from all your XenServers in a pool, replace 10.0.0.10 with your master XenServer IP and pvsserver.mydomain.local with the IP or FQDN of your PVS server.
Create a VM to use for image updates and put the disk of this VM on the shared NFS volume you just created
On you PVS server, open the e:PVSNFS folder. You will see a uniqueid folder. Open it.
Here you will see the uiniqueid of the disk you just created. Rename it as .org or something like this:
We keep the file there just to remember the ID of the file.
Now, go to your PVS image store on the same disk, cut and paste the vhd image you want to update into the e:pvsnfsuiniqueid folder:
Rename the image to the same uinqueid as the disk you created:
Boot the imageupdate VM and update the drivers and tools. When finished, shut down the imageupdate VM.
Rename the image back to the original name.
Cut and paste the image into the PVS store again.
Now you may boot the servers using this updated image.
Repeat the process for each image. Using this process, each image update should take only about 10 minutes.