Bug 822538
Summary: | libguestfs tools hang on qcow2 encrypted disks | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | hartsjc, mbooth, mzatko, rbalakri, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-04-02 13:59:02 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: |
Description
Richard W.M. Jones
2012-05-17 14:53:28 UTC
This is the reproducer: qemu-img create -f qcow2 -o encryption test.qcow2 10M virt-df -a test.qcow2 The virt-df command hangs. If you enable debugging (LIBGUESTFS_DEBUG=1) then you will notice that it hangs just after qemu is started, which is where it is asking for the passphrase. It turns out the encryption key is passed to qemu using the monitor, which we don't yet use. However we'll need to use it when we support hotplugging, although it's probably easier to reserve this feature for libvirt users. https://www.berrange.com/posts/2015/03/17/qemu-qcow2-built-in-encryption-just-say-no-deprecated-now-to-be-deleted-soon/ tl;dr "So just to sum up. Do not ever use QCow2 built-in encryption as it exists today. It is unfixably broken by design. It is deprecated in QEMU 2.3.0 and is likely to be deleted in QEMU 2.4.0." |