Verified Proposed: dd if=/dev/zero of=source-disk.img bs=1M count=4096 qemu-img convert -f raw -o subformat=fixed -O vpc source-disk.img dest-disk-old.vhd #upgrade $qemu-img convert -f raw -o subformat=fixed -O vpc source-disk.img dest-disk-new.vhd $qemu-img convert -f raw -o subformat=fixed,force_size -O vpc source-disk.img dest-disk-new-forced.vhd #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
That means: 1. without adding the new parm no behaviour change (good since it is SRU) 2. with the force_size parm the size is aligned That is enough for verification, but it would be even greater if that could also be tested on real azure. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1490611 Title: Using qemu >=2.2.1 to convert raw->VHD (fixed) adds extra padding to the result file, which Microsoft Azure rejects as invalid To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1490611/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs