[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] qemu-img do not verify encrytption

From: yue-kvm
Subject: [Qemu-discuss] qemu-img do not verify encrytption
Date: Wed, 6 Mar 2013 18:46:47 +0800 (CST)

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.


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.


address@hidden images]# qemu-img info  encryped.qcow2
Disk image 'encryped.qcow2' is encrypted.
image: encryped.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 136K
encrypted: yes
cluster_size: 65536

reply via email to

[Prev in Thread] Current Thread [Next in Thread]