Simplified steps to reproduce (without Azure cli / credentials)
1. Start as in the SRU Template: 2. qemu-img convert -f raw -o subformat=fixed,force_size -O vpc source-disk.img dest-disk-old.vhd 3. upgrade 4. qemu-img convert -f raw -o subformat=fixed,force_size -O vpc source-disk.img dest-disk-new.vhd 5. qemu-img convert -f raw -o subformat=fixed -O vpc source-disk.img dest-disk-new-forced.vhd 6. check alignment: $ stat dest-disk-old.vhd dest-disk-new.vhd dest-disk-new-forced.vhd | awk '/^ Size:/ {print ($2-512)/1024/1024}' 4096.48 4096.48 4096
Simplified steps to reproduce (without Azure cli / credentials)
1. Start as in the SRU Template: fixed,force_ size -O vpc source-disk.img dest-disk-old.vhd fixed,force_ size -O vpc source-disk.img dest-disk-new.vhd new-forced. vhd new-forced. vhd | awk '/^ Size:/ {print ($2-512) /1024/1024} '
2. qemu-img convert -f raw -o subformat=
3. upgrade
4. qemu-img convert -f raw -o subformat=
5. qemu-img convert -f raw -o subformat=fixed -O vpc source-disk.img dest-disk-
6. check alignment:
$ stat dest-disk-old.vhd dest-disk-new.vhd dest-disk-
4096.48
4096.48
4096