Re: [PATCH 11/14] qemu: command: Add support for qcow2 + luks

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

 



On Thu, Mar 29, 2018 at 01:51:08PM +0200, Peter Krempa wrote:
The old qcow2 encryption format was buggy, so the new approach is to use
luks inside qcow2. As it turns out, it didn't require that many changes.

It was necessary to fix the command line formatter to stop mangling the
format when secrets are present and specify the encryption format and
secret in correct format.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
You can easily create a qcow2+luks disk image by:

qemu-img create --object secret,id=sec0,data=asdf -f qcow2 \
   -o encrypt.format=luks,encrypt.key-secret=sec0 luks.qcow2 10M

src/qemu/qemu_command.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)


ACK

Jano

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux