<div dir="ltr"><div>I was encouraged [1] to use the storage encryption mechanism of libvirt [2]. However, it is not clear to me how to generate a corresponding encrypted volume. Preferably, I would like to use virt-install to arrive at such an encrypted volume, similar to e.g.<br><br>virt-install --connect qemu:///system -n testImage  -r 2048 --os-type=linux --disk testImage.img,device=disk,bus=virtio,size=8,sparse=true,format=raw --os-variant debian10 --vnc  --location  <a href="ftp://ftp2.de.debian.org/debian/dists/buster/main/installer-amd64/">ftp://ftp2.de.debian.org/debian/dists/buster/main/installer-amd64/</a><br></div><div><br></div><div>I already asked a related question on server fault [3], but this is a better targeted audience. Sorry for double-posting.<br></div><div><br></div><div>[1] <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933385">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933385</a></div><div>[2] <a href="https://libvirt.org/formatstorageencryption.html#StorageEncryption">https://libvirt.org/formatstorageencryption.html#StorageEncryption</a></div><div>[3] <a href="https://serverfault.com/questions/986488/how-to-enable-volumeencryption-during-virt-install">https://serverfault.com/questions/986488/how-to-enable-volumeencryption-during-virt-install</a></div></div>