mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 16:45:26 +00:00
ecfc4094d8
The storage driver was wired up to support creating raw volumes in LUKS format, but was never adapted to support LUKS-in-qcow2. This is trivial as it merely requires the encryption properties to be prefixed with the "encrypt." prefix, and "encrypt.format=luks" when creating the volume. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
32 lines
891 B
XML
32 lines
891 B
XML
<volume type='file'>
|
|
<name>OtherDemoLuks.img</name>
|
|
<key>/var/lib/libvirt/images/OtherDemoLuks.img</key>
|
|
<source>
|
|
</source>
|
|
<capacity unit='bytes'>5368709120</capacity>
|
|
<allocation unit='bytes'>294912</allocation>
|
|
<target>
|
|
<path>/var/lib/libvirt/images/OtherDemoLuks.img</path>
|
|
<format type='qcow2'/>
|
|
<permissions>
|
|
<mode>0644</mode>
|
|
<owner>0</owner>
|
|
<group>0</group>
|
|
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
|
</permissions>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' uuid='e78d4b51-a2af-485f-b0f5-afca709a80f4'/>
|
|
</encryption>
|
|
</target>
|
|
<backingStore>
|
|
<path>/dev/null</path>
|
|
<format type='raw'/>
|
|
<permissions>
|
|
<mode>0644</mode>
|
|
<owner>0</owner>
|
|
<group>0</group>
|
|
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
|
</permissions>
|
|
</backingStore>
|
|
</volume>
|