Apparently shrinking a Windows VM (actually any kind of VM) cannot be done with XenServer and XenCenter. You need to create an image of the original volume to a smaller virtual disk in order to do that.
On top of that, the tool that used to work fine for this, Citrix XenConvert, has been deprecated by Citrix and is no longer available for download.
Now, where do we get XenConvert? It’s available for download here in various versions. I took version 2.5. and followed the instructions in the above mentioned article. You might want to virus check the installer before running it.
- Create a new virtual disk with the desired size.
- Attach it to your VM.
- Start the VM.
- Optionally, shrink the source drive (partition) from within the virtual machine (Windows 7+ comes with the tools for that).
- Format the newly created virtual disk.
- Install XenConvert
- Start XenConvert, select From: Volume and To: Volume (That’s not the default.)
- Select source and destination volumes.
- Run the conversion (which takes forever).
- Activate the new partition in the Disk Manager (if you forget this, you won’t be able to boot from it).
- Shutdown the VM.
- Detach the original virtual disk.
- Boot the VM (from the new virtual disk).
If everything works, you can now delete the original virtual disk.