Bug 491381 - Can't use AES encryption in qcow2
Summary: Can't use AES encryption in qcow2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-20 17:39 UTC by Miloslav Trmač
Modified: 2009-03-25 11:53 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-03-25 11:53:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miloslav Trmač 2009-03-20 17:39:06 UTC
Version-Release number of selected component (if applicable):
qemu-img-0.9.1-10.fc10.x86_64
kvm-74-10.fc10.x86_64

Steps to Reproduce:
1. qemu-img create -f qcow2 foo.img 100M
2. qemu-kvm -m 128 -hda foo.img 
=> qemu window opens, system starts booting (and fails because there is no OS installed)
3. qemu-img create -e -f qcow2 foo.img 100M
   (note: no password prompt - I'd sort of expect one)
4. qemu-kvm -m 128 -hda foo.img
=> qemu-kvm just sits there, no window opens, no prompt appears.  strace shows
   a loop of
        select(0, [], [], [], {0, 10000})

Comment 1 Eduardo Habkost 2009-03-20 17:52:16 UTC
There was some monitor rework done by Jan Kiszka upstream, but I don't know if the new code entered the Fedora package. There were two patches I've sent to fix a similar issue, but before the monitor rework. They are on this thread:

http://article.gmane.org/gmane.comp.emulators.qemu/37762

Comment 2 Mark McLoughlin 2009-03-25 11:53:01 UTC
Thanks for the report. I've confirmed this is broken in F10.

With rawhide, it works for me using '-monitor stdio':

qemu-kvm -S -monitor stdio -vnc :1 -m 128 -hda foo.img
QEMU 0.10.0 monitor - type 'help' for more information
(qemu) cont
ide0-hd0 (foo.img) is encrypted.
Password: ****
(qemu) quit

Without '-monitor stdio', you need to hit Ctrl-Alt-2 to get to the qemu monitor and you'll see that you've been prompted for the password.

Closing as fixed in rawhide because we're unlikely to fix it in F10.


Note You need to log in before you can comment on or make changes to this bug.