I've now done a few qualification tests, and have observed something curious.
The test was to VBOOT from a USB stick (your Ubuntu 10.10 appliance), image a hard drive direct to VHD, mount the VHD, and compare the 3rd partition (a 17gb root FS) with the original.
The physical drive is:
The finally mounted VHD is:
The "curiosity" is that you can see few billion terabytes (or <0, depending on which number you read) of free space at the end of the disk on the second picture (hilighted).
Now, I didn't image the whole disk, just the first three partitions and a few blocks of the fourth (which is large and not needed), using:
dd if=/dev/sda bs=1M count=26700 | VBoxManage convertfromraw stdin --format VHD /P/disk.vhd 27996979200
That's 1M x 26700 = 27996979200 bytes = 54681600 sectors, which is 153600 sectors into the 4th partition.
Of course, you'd expect errors trying to actually access the fourth partition in the image, if it wasn't all there, but you wouldn't expected the above strange free space in Disk Utility. However fdisk showed exactly the same output for both /dev/sda (the source hard drive) and /dev/vloop1 (the mounted VHD image).
The VHD was mounted in immutable mode, in case that makes any difference.
Comments? Is this a bug? If so, in what?