• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
The Citrix Blog
Personal Blog
Trevor Mansell
Related Tags
posted by Trevor Mansell

After going through the Direct VHD Boot process for HyperV which was a feature of PVS 5.1 the next question that came up was "Does it work with Xenserver?" and the answer that came back was "It technically should work but it is not officially supported yet." So we decided to do the next logical thing and give it a try.
( "New way to upgrade with PVS 5.1 and HyperV"
http://community.citrix.com/blogs/citrite/trevorm/2009/07/28/New+Way+to+Upgrade+with+PVS+5.1+and+HyperV )
The process works similar to HyperV but there are a few details to consider before using this feature with Xenserver.
First the XS storage repository being used needs to support VHD so that would include a NFS share or EXT2/3(Local SR, SAN, or ISCSI) SR partitions not LVM.

We will need the following items to get started:
-PVS 5.1 Server
-Xenserver 5.5 with a EXT or NFS Storage Repository
-Windows 7 RC PVS VHD image captured from a PC(in my case a wyse Rx0)
-SCP ssh client utility

1. First we will start by copying our win7 VHD file using SCP ssh utility from our PVS store to the Xenserver storage repository. In our case is a Local SR formatted with EXT3.

2. In XenCenter create a new VM from a template(vista or 2008) and make sure to choose the correct SR for the disk which is EXT or NFS. Uncheck the box to start automatically.

3. Rename the PVS VHD file we copied over with the same name as the one which was created by our VM. We can do this at the xenserver host console or in my case the SCP ssh utility console.
We should see a new VHD disk created for our new VM and the VHD we copied from the PVS server. For my SR the path is /var/run/sr-mount/"new uuid".vhd

4. Power on the virtual Machine. Windows 7 will boot up and start installing the default drivers for xenserver using plug n play. It will not find the new scsi device driver but you can ignore for now. Then when prompted to reboot choose to manually reboot later.

5. Before rebooting go to the command prompt and run bcdedit /set loadoptions "PV|=2000" to modify boot.ini and then reboot.

6. Uninstall PVS client from add remove programs then reboot.

7. Install the Xenserver 5.5. Tools and then reboot. It will finish adding the drivers at next boot up so I rebooted a second time. (may not be necessary)

8. Install the PVS 5.1 client but before rebooting (very important) You will be prompted to choose which NICs you want PVS to bind to. Choose all inactive and active nics. If you using a XP or 2003 image you might need to manually start "c:\program files\citrix\provisioning services\bindcfg.exe"

9. Next go to the command prompt and run bcdedit /deletevalue loadoptions then Shutdown.

10. Now we copy our updated VHD back to PVS.

11. Rename our VHD file to the appropriate name and then add back into the PVS console.

12. You now have a updated PVS VHD file which can be streamed to a physical server/PC, Xenserver host VM,
or directly booted in Xenserver.

**Eventhough this process seemed to work fine it is not yet officially supported and testing has been limited.
**To save time in updating pvs client or NIC software you could use NFS which will provide you the ability to present the NFS SR to the PVS server and Xenserver. Doing this would allow you to skip the steps of copying the VHD to and from the Xenserver SR.
**The use of Xenconvert as a method to move the VHD to and from the Xenserver in this process could be a great option but we are still testing that out for this process.

Labels

virtualization vdi pvs xendesktop xenserver virtualization_vdi_pvs_xendesktop_xenserver Delete
xendesktop xendesktop Delete
xenserver xenserver Delete
provisioning-server provisioning-server Delete
nonspecific nonspecific Delete
lang-eng lang-eng Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 24

    Anonymous says:

    Thank you for posting this info. I am going to test this in my lab. I noticed yo...

    Thank you for posting this info. I am going to test this in my lab. I noticed you are editing the boot.ini. Why is this required? Also what would the ini settings be if this is a windows xp image?

  2. Nov 12

    Ron Decker says:

    I got this working in my environment.  Although I had to convert my local S...

    I got this working in my environment.  Although I had to convert my local SR to EXT from LVM which was a little tedious, but after that it worked fine.  One thing to add, the VHD xfer to Xenserver took forever using SCP, like 5 hours for 25 GB VHD.  I was using WinSCP with unlimited bandwidth. Any tips on speeding up the xfer speed? 

    1. Nov 15

      Anonymous says:

      Ron, Not sure why your copy is taking so long. I would try adjusting(lowering) ...

      Ron,

      Not sure why your copy is taking so long. I would try adjusting(lowering) the compression setting in winscp and also verify your antivirus is not set to scan on access while this is taking place.

      I saw some posts of similar behavior but i have not had this issue.

      -Trevor 

  3. Nov 12

    Ron Decker says:

    Another thing, bcdedit cmd not recognized on my 03 xenapp server.  Also, I ...

    Another thing, bcdedit cmd not recognized on my 03 xenapp server.  Also, I noticed when you do this, in XenCenter the SR reports the wrong sizes.  But it seemed to work, haven't tested in prod yet.

    1. Nov 15

      Anonymous says:

      Ron, Should have noted that. For 2003 and XP you will just edit the boot.ini d...

      Ron,

      Should have noted that.

      For 2003 and XP you will just edit the boot.ini directly by adding "PV|=2000" to the load options.

      For vista, win7, 2008 you will use bcedit.

      I am going to verify my SR sizes now that you mention it.

      THanks,

      Trevor

Add Comment