You need to sign in or sign up before continuing.
luks-disks.xml 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<domain type='qemu'>
  <name>encryptdisk</name>
  <uuid>496898a6-e6ff-f7c8-5dc2-3cf410945ee9</uuid>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
16
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
17
    <disk type='file' device='disk'>
18
      <driver name='qemu' type='raw'/>
19 20 21 22 23 24 25 26
      <source file='/storage/guest_disks/encryptdisk'/>
      <target dev='vda' bus='virtio'/>
      <encryption format='luks'>
        <secret type='passphrase' uuid='0a81f5b2-8403-7b23-c8d6-21ccc2f80d6f'/>
      </encryption>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='disk'>
27
      <driver name='qemu' type='raw'/>
28 29 30
      <source file='/storage/guest_disks/encryptdisk2'/>
      <target dev='vdb' bus='virtio'/>
      <encryption format='luks'>
31
        <secret type='passphrase' usage='/storage/guest_disks/encryptdisk2'/>
32 33 34 35 36 37 38 39 40 41 42 43 44 45
      </encryption>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </memballoon>
  </devices>
</domain>