Bug 1124636
Summary: | qemu-img fail to recognize the Hyper-V Virtual Hard Disk (VHD) format image | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
Component: | qemu-kvm | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | bsarathy, chayang, drjones, hhuang, jcody, juzhang, michen, mkenneth, qzhang, rbalakri, virt-bugs, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1124144 | Environment: | |
Last Closed: | 2014-11-25 16:02:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1124144 | ||
Bug Blocks: |
Comment 1
Sibiao Luo
2014-07-30 02:18:12 UTC
By default VPC images have a footer, however dynamically growing images have a mirror of it as a header. The original author of the code probably misunderstood the spec and assumed that fixed size images have a header too. (The specs are quite easy to misinterpret...). Since this bug reproduces on upstream as well, I created a patchset which fixes this issue and I will send it to the mailing list soon. Thanks! There was a lengthy qemu-devel thread on image format probing that was triggered by Levente's upstream post. I'll reassign this to virt-maint for an image person to pick-up as I'm not sure what the result of the discussion is. (In reply to Andrew Jones from comment #5) > There was a lengthy qemu-devel thread on image format probing that was > triggered by Levente's upstream post. I'll reassign this to virt-maint for > an image person to pick-up as I'm not sure what the result of the discussion > is. We probe on the header of an image, and don't open the image up to allow the driver to read the image, which would be required for footer probing. There are existing security issues around the concept of probing, and solutions are still being worked out upstream. I do not think we will support probing of formats that don't contain identifiable information in the first sector or so of the image. For a format such as fixed vhd/vpc, that means the format will need to be explicitly specified. I'll leave this bug open, however, until the probing discussion settles upstream. Closing this as WONTFIX, as we don't support probing except on the first 2048 (soon to be 512) bytes. |