| Summary: | image exported by qemu-nbd couldn't get right 'file format' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Han Han <hhan> |
| Component: | qemu-kvm-rhev | Assignee: | Virtualization Maintenance <virt-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | amit.shah, berrange, cfergeau, chayang, dwmw2, dyuan, extras-qa, itamar, juzhang, pbonzini, pingl, rjones, virt-maint, virt-maint, xuzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1379929 | Environment: | |
| Last Closed: | 2016-09-28 09:07:40 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: | |
| Bug Depends On: | 1379929 | ||
| Bug Blocks: | |||
|
Description
Han Han
2016-09-28 07:20:46 UTC
When you ran 'qemu-nbd' you gave it a --format=qcow2 argument, so it is exporting the *contents* of the qcow2 image, ie a *raw* volume. So the qemu-img info command is correct in reporting that it is raw. (In reply to Daniel Berrange from comment #2) > When you ran 'qemu-nbd' you gave it a --format=qcow2 argument, so it is > exporting the *contents* of the qcow2 image, ie a *raw* volume. So the > qemu-img info command is correct in reporting that it is raw. I try to use 'qemu-nbd -t -p 30001 --format=raw' and get qcow2 format when using qemu-img info. Well, for the issue in comment0, it is not a bug. But the manual of qemu-nbd is confusing: -f, --format=fmt Force the use of the block driver for format fmt instead of auto-detecting I couldn't get the info of 'exporting the *contents* of the qcow2 image'. Maybe we should improve the manual page and give some examples. I don't think there's anything that needs fixing here, this behaviour is consistent with elsewhere. |