Ticket #9643 (closed enhancement: fixed)
VBoxManage showhdinfo should show data alignment
|Reported by:||sven.koehler||Owned by:|
Description (last modified by frank) (diff)
it would be very useful, if VBoxManage would show the alignment of the datablocks inside the VDI file. There are tools out there (CloneVDI, tool announced in the forums) which modify the alignment of the data such that sector 63 of the virtual harddisk is aligned to 4K. While this is good for Windows XP/DOS and the default partition layout, it is bad for Windows where partitions start at a 1MB boundary.
Also, there seem to be "old" VDI files, where data blocks are not aligned on a 4K boundary which AFAIK results in poor AIO/DIO performance. For example I have a flat VDI file with Windows 7 on it, where the MBR is at offset 0x20200 within the file (which is a 512 byte boundary, and not a 4KB boundary). I had to verify this using a hex editor.
I would suggest that VBoxManage shows
- the offset of the first data block in the VDI file
- the first sector of the virtual harddisk which is aligned to a 4K boundary (some value in the range of 0 to 7)