How to Duplicate a vDisk in Provisioning Services

This blog posts explains how to duplicate a vDisk for Provisiong Service 6.x. I used 6.1.

A vDisk can be copied and renamed to make it available for use by Provisioning Server clients.

In earlier versions, like 3.x, 4.x and 5.x you could copy a vDisk and use the copied disk in the Create new Device wizard. This options is not available in version 6.x. You will receive the following error when importing the copied disk:

image

image

I borrowed the text from http://www.out-web.net/?p=1177 and added the screenshots and experience.

 

Copy the versioned vDisk including all *.vhd, *.ahvd, and *.pvp files. (Don’t copy *.lok files).  
Rename or label the copied files as required. clip_image001clip_image002
Open the PVS console, right click the source vDisk, and choose ‘Export vDisk…’. A dialog appears.

Make sure the disk is not locked, because then the Export vDisk options is not available.

clip_image003
In the export dialog, choose the the latest version in the drop-down menu named ‘Export versions starting at’, then click OK. After a short delay the dialog closes. In the source vDisk’s store you’ll find a manifest file containing the entire information about the versions of that vDisk. The manifest file name matches with the name of the vDisk and it has a .xml suffix clip_image005clip_image006
Rename the manifest file using the name of the copied vDisk. clip_image007

clip_image008

Open the manifest file in a text editor and accurately replace all references to the name of the source vDisk with the name of the copied vDisk. Double-check the changes, then save the file. clip_image010
Now, you should have a set of VHD/AVHD/PVP file and an XML file with the same base file name. And the manifest/XML refers to the new VHD and AVHD files. clip_image012
In the PVS console, right click the vDisk store, and choose ‘Add or Import Existing vDisk…’. A dialog appears. clip_image013
the copied vDisk will be displayed.  
In the import dialog, check the settings for Site, Store, and Server, then click Search. After a short delay  
Check the vDisk, check/uncheck the load balancing option as wanted, then click Add. After a short delay a popup appears saying that the import was successful. Click OK, then click Close in the import dialog. clip_image014

 

Can’t get the solution to work? Contact me and let me do the trick.

 

 

 

Advertisements
This entry was posted in Citrix Provisioning Services. Bookmark the permalink.

3 Responses to How to Duplicate a vDisk in Provisioning Services

  1. Thomas Riedel says:

    DONT DO THIS IN PRODUCTION!

    Unfortunatly this will lead to an invalid avhd chain and is not recommended or supported! I did the same and had to open a Citrix case, after the issues started.

    Try this and then monitor the PVS server with ProcessMonitor. Filter Process monitor to StreamProcess.exe and you will see, that only the latest avhd file will be used from the copy. It will refer to the original file. The resaon for this are the avhd files. If you load the avhd into a hex editor like HxDen, which can open huge files, you find the reference to the original files.

    However, it is possible to merge the vDisk you want to copy to a new base and copy only the vhd. The vhd can be exported and renamed without issues!

  2. David says:

    so if i need only the latest avhd version i am good to go!?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s