Skip to content
Snippets Groups Projects
Commit 95a2f9bc authored by François Revol's avatar François Revol Committed by Anthony Liguori
Browse files

block/vdi: allow disk sizes not multiple of block size


The disk image I created from my old laptop disk with VBoxManage
internalcommand converthd obviously was not a multiple of 1MB as when
created from scratch. This fixes QEMU refusing it. We still require the
size to be a multiple of sector size though.
It then boots correctly.

Allow opening VDI images with size not multiple of 1MB (as when converted from a raw disk).

Signed-off-by: default avatarFrançois Revol <revol@free.fr>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent ceb69615
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment