What's happening [in the Perl test case, not necessarily in
Yaniv's
case] is that libguestfs is opening the VMDK file for write, and at
the same time ‘qemu-img info’ is opening the VMDK file for read.
You're right about this, so I am thinking of using list_devices() and
blockdev_getsize64() to get the disk size from the appliance.