Hi,

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:

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='io_uring'/>
      <source dev='/dev/p1/my-vm.pgdata' index='2'/>
      <backingStore/>
      <target dev='sdb' bus='scsi'/>
      <encryption format='luks'>
        <secret type='passphrase'
uuid='27a023d0-5afa-11ed-9822-c3a776c2fdff'/>
      </encryption>
      <alias name='scsi0-0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

I'm able to create all of the above XML with the exception of

      <encryption format='luks'>
        <secret type='passphrase'
uuid='27a023d0-5afa-11ed-9822-c3a776c2fdff'/>
      </encryption>

Is there a way to have virt-install (or virt-xml) generate this as part of
the VM definition?


Regards,

-- 
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.

Reply via email to