From: yue-kvm <kvmluck@163.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] qemu-img do not verify encrytption
Date: Thu, 7 Mar 2013 14:49:30 +0800 (CST) [thread overview]
Message-ID: <6923f8cd.be08.13d439c9dd1.Coremail.kvmluck@163.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
i create qcow2 format image with -o encryption, and assign password.
but when i qemu-img info encryt.qcow2 , it display encryt.qcow2 info no master what i input, even just hit enter.
the 'Password Authentication ' of qemu-img may be invalid.
thanks.
my steps:
--------
Create an encrypted disk
#qemu-img create -e -f qcow2 image.qcow2 10G
If you pass the option -e or -o encryption when you create an image, the resulting image will be encrypted, with an empty (blank) password – there is no option to set a password in a single step at the time of creation.
To set a password, again use qemu-img , but this time with the convert option
#qemu-img convert -e -O qcow2 image.qcow2 encrypted.qcow2
You will be asked to give a password twice. At the first prompt hit enter (as the password is blank), at the second prompt you will set the password for your resulting encrypted disk.
------------
[root@kvm images]# qemu-img info encryped.qcow2
Disk image 'encryped.qcow2' is encrypted.
password:
image: encryped.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 136K
encrypted: yes
cluster_size: 65536
[-- Attachment #2: Type: text/html, Size: 2328 bytes --]
next reply other threads:[~2013-03-07 7:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 6:49 yue-kvm [this message]
2013-03-07 9:56 ` [Qemu-devel] qemu-img do not verify encrytption Stefan Hajnoczi
2013-03-07 10:57 ` yue-kvm
2013-03-07 11:00 ` 陳韋任 (Wei-Ren Chen)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6923f8cd.be08.13d439c9dd1.Coremail.kvmluck@163.com \
--to=kvmluck@163.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).