Subscribe

ConvertTo-NaVmdk : Source and destination offsets are not WAFL block-aligned.

We try to convert multiple Hyper-V harddisk to VMware .vmdk disks. We are unable to convert some of the windows 2003 misalgned virtual harddisks. Fixing the disk alignment with Repair-NaVirtualDiskAlignment did not help?

 

ConvertTo-NaVmdk -SourceVhd "harddisk01"

 

Mode                LastWriteTime     Length Name                                                                                                                                                                

----                -------------     ------ ----                                                                                                                                                                

-a---         2/17/2016   2:58 PM        337 Harddisk01.vmdk                                                                                                                                                     

ConvertTo-NaVmdk : Source and destination offsets are not WAFL block-aligned.

At line:1 char:1

+ ConvertTo-NaVmdk -SourceVhd "harddisk01"  ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (Smiley Happy [ConvertTo-NaVmdk], ArgumentException

 

Re: ConvertTo-NaVmdk : Source and destination offsets are not WAFL block-aligned.

What is the size of the vhd file? If it's not a multiple of 4kb, would it be possible to resize it to the nearest multiple of 4096 and retry?

Re: ConvertTo-NaVmdk : Source and destination offsets are not WAFL block-aligned.

Hi Aparajita,

 

Many thanks for your help.

 

the size of the vhd was 21,484,431,872 bytes after resizing it to a multiple of 4k (21,484,433,408 bytes) i was able to convert this vhd to vmk.

 

Problem solved!

 

Regards,

 

Denny