mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
12 lines
572 B
Plaintext
12 lines
572 B
Plaintext
|
qemu-img create -f luks \
|
||
|
--object secret,id=encrypt2.img_encrypt0,file=/path/to/secretFile \
|
||
|
-o key-secret=encrypt2.img_encrypt0 \
|
||
|
/var/lib/libvirt/images/encrypt2.img 5242880K
|
||
|
qemu-img convert --image-opts -n --target-image-opts \
|
||
|
--object secret,id=encrypt2.img_encrypt0,file=/path/to/secretFile \
|
||
|
--object secret,id=encrypt1.img_encrypt0,file=/path/to/inputSecretFile \
|
||
|
driver=luks,file.filename=/var/lib/libvirt/images/encrypt1.img,\
|
||
|
key-secret=encrypt1.img_encrypt0 \
|
||
|
driver=luks,file.filename=/var/lib/libvirt/images/encrypt2.img,\
|
||
|
key-secret=encrypt2.img_encrypt0
|