<div dir="ltr"><div>Hi,</div><div><br></div><div>I'd like to use virt-install to create a new VM which imports an existing volume. This volume is luks-encrypted. When I manually attach the VM with the correct encryption settings, the resulting XML looks like this:</div><div><br></div><div>    <disk type='block' device='disk'><br>      <driver name='qemu' type='raw' cache='none' io='io_uring'/><br>      <source dev='/dev/p1/my-vm.pgdata' index='2'/><br>      <backingStore/><br>      <target dev='sdb' bus='scsi'/><br>      <encryption format='luks'><br>        <secret type='passphrase' uuid='27a023d0-5afa-11ed-9822-c3a776c2fdff'/><br>      </encryption><br>      <alias name='scsi0-0-0-1'/><br>      <address type='drive' controller='0' bus='0' target='0' unit='1'/><br>    </disk></div><div><br></div><div>I'm able to create all of the above XML with the exception of<br></div><div><br></div><div>      <encryption format='luks'><br>        <secret type='passphrase' uuid='27a023d0-5afa-11ed-9822-c3a776c2fdff'/><br>      </encryption></div><div><br></div><div>Is there a way to have virt-install (or virt-xml) generate this as part of the VM definition?</div><div><br></div><div><br></div><div>Regards,<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Bye,<div><br></div><div>Erik.</div><div><br></div><div><a href="http://efficito.com/" target="_blank">http://efficito.com</a> -- Hosted accounting and ERP.</div><div>Robust and Flexible. No vendor lock-in.</div></div></div></div></div>