Problem:
How to convert a vhd to vhdx.
Resolution;
To help facilitate this process Liquidware has developed a VHD conversion tool. This tools will hep automate the conversion of existing vhd's to vhdx's.
Binaries and Information on the tool can be found here:
Within the command line arguments using /ConvertTo <VHD|VHDX> allows for this
Converts VHD files to VHDX files (or vice versa). Must be used with /VHDDir or /VHDFile.
Example command line: See Tool information for argument explanations.
LwL.ProfileUnity.Client.CompactVHD.exe /VHDDir \\server.local\home
/MinDaysSinceLastCompaction 30 /BackupPath \\bk.local\bkUserProfileDisks
/MinDiskMB 1024 /MaxHours 53 /SMTPServer smtp.server.local /MailTo IT@local.com
/MailFrom ProU_Compact@local.com /ConvertTo VHDX /AcceptEULA
This will also compact the vhd during the process. In the end the result will look like this on the filesystem. Leaving the original in case you need to go back. These though can be deleted post conversion with additional command line arguments as noted in the documentation.
Some additional notes to consider:
- Make sure the user running the LwL.ProfileUnity.Client.CompactVHD.exe tool has administrative access to the share where the vhd's are.
- This is intended for Profiledisks or VHD's created and used in the Virtual Disk module. FlexApps can be cloned by default from vhd/vhdx in 6.8.4 FlexApp packaging console
- During the course of conversion the vhdx is optimized so you don't need to run a separate task for this.
- As VHDX is a larger format than VHD disks, 500MB or lower could result in a slightly larger disk.
- By default the conversion doesn't process VHD's lower than 500MB. As you will want to convert these regardless you can modify the command line parameter /MinDiskMB 1024 to something like /MinDiskMB 1
Product: ProfileUnity-FlexApp
Product Version: 6.8.4+