Microsoft Virtualization Discussions

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

Solvinity
3,578 Views

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: (:) [ConvertTo-NaVmdk], ArgumentException

 

2 REPLIES 2

Aparajita
3,548 Views

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?

Solvinity1
3,537 Views

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

Public