Launchpad has imported 15 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=548723.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2009-12-18T11:36:07+00:00 Richard wrote: Description of problem: qemu-img convert cannot convert a VMDK4 format file to (eg) raw (or anything else). It silently produces a large file that mostly contains zero bytes, and is completely unusable. Version-Release number of selected component (if applicable): Tested with qemu-img 0.10.5, 0.11.0, and git d9a50a366f2178 (2009-12-11). How reproducible: Always. Steps to Reproduce: 1. Export to OVF from VMWare vSphere / ESX 4.0.0. 2. Copy the resultant disk image to a Fedora machine. 3. Check the SHA1 sums (from *.mf file) to make sure image was not corrupted during the copy. 4. Run: qemu-img convert -O raw TestLinux-disk1.vmdk TestLinux-disk1.raw 5. Try to mount / use the resulting raw file, eg. using guestfish. Actual results: The raw file contains mostly zeroes, see below. It contains zeroes where there should be partition tables, superblocks etc. and so is totally unusable. Expected results: A usable disk image. Additional info: Compare the entropy of the VMDK file with the resulting raw disk. I would expect the entropy to be about the same, but you can see the raw disk is mostly compressible (zeroes). $ ls -l TestLinux-disk1.vmdk -rw-rw-r-- 1 rjones rjones 887312896 2009-12-18 10:35 TestLinux-disk1.vmdk $ gzip -c TestLinux-disk1.vmdk | wc -c 860846320 $ gzip -c TestLinux-disk1.raw | wc -c 8744715 VMWare's OVF metadata says the following about the disk format: <References> <File ovf:href="TestLinux-disk1.vmdk" ovf:id="file1" ovf:size="887312896" /> </References> <DiskSection> <Info>Virtual disk information</Info> <Disk ovf:capacity="8" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" /> </DiskSection> qemu-img 0.10.5 fails in a different way. It gives the error message: qemu-img: error while reading qemu-img >= 0.11.0 fail silently, no error message or error code. I've tried this with several disk images exported from vSphere 4 and they have all failed to convert in the same way. Test files (at time of writing these are STILL UPLOADING, with ETA of 2009-12-19). http://homes.merjis.com/~rich/TestLinux-disk1.vmdk SHA1: 2C81BAE89210B075ACC51DA9D025935470149D55 http://homes.merjis.com/~rich/TestLinux.ovf SHA1: 30831689B8C6F1B1A1FCBB728769B5F71056A580 Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/0 ------------------------------------------------------------------------ On 2010-03-09T16:53:51+00:00 Fedora wrote: This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/1 ------------------------------------------------------------------------ On 2010-03-09T17:19:45+00:00 Fedora wrote: This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/2 ------------------------------------------------------------------------ On 2010-03-11T19:25:48+00:00 Justin wrote: You don't happen to know if this reproduces with qemu-img > 0.12.x or have a test image I can convert to reproduce handy? Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/3 ------------------------------------------------------------------------ On 2010-03-11T22:04:16+00:00 Richard wrote: Nothing much has changed in the qemu vmdk block driver since I looked at it before (I just checked upstream git), so it's very likely to be still broken. I have some VMDK images, but I warn you that they are very large! If you have somewhere I can upload them to, I can send some your way ... Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/4 ------------------------------------------------------------------------ On 2010-03-15T13:36:49+00:00 Bug wrote: This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle. Changing version to '13'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/5 ------------------------------------------------------------------------ On 2011-03-23T12:40:49+00:00 Richard wrote: I just checked upstream git for the driver again, and apart from code cleanups the code is still the same as ever. Therefore moving the bug -> Rawhide. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/6 ------------------------------------------------------------------------ On 2011-04-18T10:55:16+00:00 Richard wrote: Updated links: http://oirase.annexia.org/tmp/TestLinux-disk1.vmdk SHA1: 2c81bae89210b075acc51da9d025935470149d55 http://oirase.annexia.org/tmp/TestLinux.ovf SHA1: 30831689b8c6f1b1a1fcbb728769b5f71056a580 Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/7 ------------------------------------------------------------------------ On 2011-04-18T11:02:12+00:00 Richard wrote: Latest qemu-img no longer silently converts to zeroes. Instead it gives a strange error: $ qemu-img convert -f vmdk -O raw TestLinux-disk1.vmdk TestLinux-disk1.raw qemu-img: Could not open 'TestLinux-disk1.vmdk': Operation not permitted qemu-img: Could not open 'TestLinux-disk1.vmdk' Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/8 ------------------------------------------------------------------------ On 2011-04-18T11:10:33+00:00 Daniel wrote: > qemu-img: Could not open 'TestLinux-disk1.vmdk': Operation not permitted This is probably because qemu-img.c code expects brdv_open() to return an errno value ret = bdrv_open(bs, filename, flags, drv); if (ret < 0) { error_report("Could not open '%s': %s", filename, strerror(-ret)); goto fail; } while the vmdk_open function just returns -1 for everything: ... return 0; fail: qemu_free(s->l1_backup_table); qemu_free(s->l1_table); qemu_free(s->l2_cache); return -1; } and by coincidence, '1 == EPERM'. There are ~4 codepaths in vmdk_open that could fail, the VMDK magic check and then a couple of reads of metadata Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/9 ------------------------------------------------------------------------ On 2011-06-14T22:01:16+00:00 Richard wrote: There is hope: http://lists.gnu.org/archive/html/qemu-devel/2011-05/msg03130.html http://lists.gnu.org/archive/html/qemu-devel/2011-06/threads.html#00033 Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/10 ------------------------------------------------------------------------ On 2012-02-17T09:02:03+00:00 yuping wrote: The vmdk from "Export as OVF..." doesn't work. # qemu-img convert -O raw esx4.1-rhel5.7-i386-disk1.vmdk test-vmdk.raw qemu-img: Could not open 'esx4.1-rhel5.7-i386-disk1.vmdk' qemu-img: Could not open 'esx4.1-rhel5.7-i386-disk1.vmdk' I copied a vmdk file from ESX storage directly,and then use qemu-img to convert it to raw,it works. # qemu-img convert -O raw esx4.1-rhel5.7-i386-flat.vmdk test-vmdk.raw # ll test-vmdk.raw -rw-r--r--. 1 root root 8589934592 Feb 17 16:58 test-vmdk.raw Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/18 ------------------------------------------------------------------------ On 2012-02-17T09:43:15+00:00 Richard wrote: (In reply to comment #11) > I copied a vmdk file from ESX storage directly,and then use qemu-img to > convert > it to raw,it works. > # qemu-img convert -O raw esx4.1-rhel5.7-i386-flat.vmdk test-vmdk.raw > # ll test-vmdk.raw > -rw-r--r--. 1 root root 8589934592 Feb 17 16:58 test-vmdk.raw *-flat.vmdk files are not VMDK. They are just raw files which happen to have a .vmdk extension. So this doesn't really prove anything. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/19 ------------------------------------------------------------------------ On 2012-03-15T17:58:28+00:00 Fedora wrote: This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/20 ------------------------------------------------------------------------ On 2012-12-14T23:30:18+00:00 Cole wrote: This bug has lingered for forever, so I don't think tracking this in Fedora is going to solve much. Rich, if you can still reproduce this with qemu.git, I'd recommend filing an upstream bug and publishing a reproducer image like you did before. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/905095/comments/27 ** Changed in: qemu-kvm (Fedora) Status: Unknown => Won't Fix ** Changed in: qemu-kvm (Fedora) Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905095 Title: qemu-img can't convert vmdk file: Operation not permitted To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/905095/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs