VMware
I have used this method to migrate PVS images from VMware 4.x to 5.x, updating the VMware tools and hardware versions as well as applying PVS agent hotfixes. This method is a bit more involved than using Hyper-V or XenServer, but it works well.
- Merge all versions and the base image into one VHD from within PVS.
- Download and install WinImage. There is a 30 day trial for WinImage, which should be fine to complete this process.
- Using WinImage, convert the VHD file to VMDK.
- Copy the VMDK file to the VMware datastore.
- Create a new VM using the VMDK you just copied.
- Log in with the local administrator account (you may have to rejoin the domain).
- Uninstall the PVS agent and reboot.
- Install any VMware tools updates or VMware hardware version updates.
- Install the PVS agent.
- At this point you can either copy the VMDK image and use WinImage to convert the image back to VHD, or use the PVS agent wizard.
XenServer
Using XenServer is a bit quicker than using VMware as you don't have to perform any VHD conversions.
- Create a NFS share on the PVS server:
- Windows 2003:
- Using WinSCP, copy the following files from XenServer to the desktop:
- /etc/passwd
- /etc/group
- Install NFS on Windows:
- Launch the Add/Remove Windows Components Wizard in the Control Panel
- Select the following:
- Other Network File and Print Services | Microsoft Services for NFS
- Other Network File and Print Services | Microsoft Services for NFS | User name mapping
- Configure NFS:
- Open Microsoft Services for NFS.
- Right-click "User name mapping" and click "Properties".
- Select "Use password and group files".
- Browse to the passwd file you downloaded to your desktop for the password file.
- Browse to the group file you downloaded to your desktop for the group file.
- Click "OK".
- Right-click "User maps" and click "Create map".
- Verify the domain and select an administrator account.
- For the Unix user specify "root".
- Click "Add".
- Create a NFS share:
- Create a new directory.
- Right-click the new directory and select "NFS Sharing" tab.
- Select "Share this folder".
- Check "Allow anonymous access".
- Click "Permissions".
- Check "Allow root access".
- Set the "Type of access:" to "Read-Write".
- Click "OK".
- Click "OK".
- Windows 2008:
- Install the file role service "Services for Network File System".
- Create a NFS share:
- Create a directory.
- Right-click the directory and select "NFS Sharing" tab.
- Enable sharing and specify a name.
- Click "Manage NFS Sharing".
- Click "Permissions".
- Set "Type of access" to "Read-Write"
- Check "Allow root access".
- Click "OK".
- Click "OK".
- Click "OK".
- Create a new SR in XenServer and point to the NFS share you created earlier. Remember, the NFS share is case sensitive.
- Create a new VM in XenServer with the same specifications as the existing target devices. Choose the new NFS SR to hold the vDisk for this VM. Do not start this VM automatically.
- Within PVS, set the image you want to update to private mode.
- Copy or cut the VHD to the NFS share directory. You should see another VHD in the NFS share directory with the UUID of that VHD.
- Rename the VHD you just copied into the NFS share directory with the same name of the VHD that was created when you created the VM within XenServer.
- Boot the VM within XenServer.
- Uninstall the PVS agent.
- Restart the VM and update any hypervisor tools.
- Install the new PVS agent.
- Shutdown the VM and cut or copy the VHD back to the PVS store and rename it appropriately back to the original name.
- Boot to the image using one of your target devices to make sure all is working and then close the image as you normally do.
this is very different and seems shorter than http://support.citrix.com/article/CTX128301
ReplyDeletehas any one tested this to work well ?
Converted VMDK doesnt start - Only "J" with prompt is displayed when booting VM with attached imported VMDK.
ReplyDeleteDoesnt work for me.
The XenServer method is the same as I discovered (after much grief) and it does work. Wish I had found this article earlier!
ReplyDelete