virt-install-singleton-config-2.xml 9.71 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<domain type="kvm">
  <name>foobar</name>
  <uuid>00000000-1111-2222-3333-444444444444</uuid>
  <title>my-title</title>
  <description>my-description</description>
  <memory>1048576</memory>
  <currentMemory>524288</currentMemory>
  <blkiotune>
    <weight>100</weight>
    <device>
      <path>/home/test/1.img</path>
      <weight>200</weight>
    </device>
  </blkiotune>
  <memtune>
    <hard_limit>10</hard_limit>
    <soft_limit>20</soft_limit>
    <swap_hard_limit>30</swap_hard_limit>
    <min_guarantee>40</min_guarantee>
  </memtune>
  <memoryBacking>
    <nosharepages/>
    <locked/>
    <hugepages>
      <page size="1" unit="G" nodeset="1,2-5"/>
    </hugepages>
  </memoryBacking>
  <vcpu>4</vcpu>
  <numatune>
    <memory mode="strict" nodeset="1-3,4"/>
  </numatune>
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
  <resource>
    <partition>/virtualmachines/production</partition>
  </resource>
  <sysinfo type="smbios">
    <bios>
      <entry name="vendor">Acme LLC</entry>
      <entry name="version">1.2.3</entry>
      <entry name="date">01/01/1970</entry>
      <entry name="release">10.22</entry>
    </bios>
    <system>
      <entry name="manufacturer">Acme Inc.</entry>
      <entry name="product">Computer</entry>
      <entry name="version">3.2.1</entry>
      <entry name="serial">123456789</entry>
      <entry name="uuid">00000000-1111-2222-3333-444444444444</entry>
      <entry name="sku">abc-123</entry>
      <entry name="family">Server</entry>
    </system>
    <baseBoard>
      <entry name="manufacturer">Acme Corp.</entry>
      <entry name="product">Motherboard</entry>
      <entry name="version">A01</entry>
      <entry name="serial">1234-5678</entry>
      <entry name="asset">Tag</entry>
      <entry name="location">Chassis</entry>
    </baseBoard>
  </sysinfo>
60 61 62 63
  <os>
    <type arch="x86_64">hvm</type>
    <loader>/foo/bar</loader>
    <boot dev="network"/>
64
    <smbios mode="sysinfo"/>
65 66 67 68 69 70 71 72 73
    <bootmenu enable="no"/>
  </os>
  <idmap>
    <uid start="0" target="1000" count="10"/>
    <gid start="0" target="1000" count="10"/>
  </idmap>
  <features>
    <apic eoi="on"/>
    <privnet/>
74
    <pmu state="off"/>
75
    <hyperv>
76
      <reset state="on"/>
77
      <spinlocks state="on" retries="1234"/>
78
      <synic state="on"/>
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
    </hyperv>
    <vmport state="off"/>
  </features>
  <cpu mode="custom" match="strict">
    <model>foobar</model>
    <vendor>meee</vendor>
    <topology sockets="2" cores="2" threads="2"/>
    <feature policy="force" name="x2apic"/>
    <feature policy="force" name="x2apicagain"/>
    <feature policy="require" name="reqtest"/>
    <feature policy="optional" name="opttest"/>
    <feature policy="disable" name="distest2"/>
    <feature policy="disable" name="distest"/>
    <feature policy="forbid" name="foo"/>
    <feature policy="forbid" name="bar"/>
94
    <numa>
95 96 97 98 99 100 101 102 103 104 105 106
      <cell id="0" cpus="1,2,3" memory="1024">
        <distances>
          <sibling id="0" value="10"/>
          <sibling id="1" value="21"/>
        </distances>
      </cell>
      <cell id="1" cpus="5-8" memory="256">
        <distances>
          <sibling id="0" value="21"/>
          <sibling id="1" value="10"/>
        </distances>
      </cell>
107
    </numa>
108
    <cache mode="emulate" level="3"/>
109 110 111 112 113 114 115
  </cpu>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="merge"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
116
  <on_crash>preserve</on_crash>
117 118 119 120 121 122 123 124
  <pm>
    <suspend-to-mem enabled="yes"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <controller type="usb" index="0" model="nec-xhci"/>
    <controller type="virtio-scsi" index="0"/>
125
    <filesystem type="mount" accessmode="mapped">
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
      <source dir="/foo/source"/>
      <target dir="/bar/target"/>
    </filesystem>
    <interface type="bridge">
      <source bridge="eth0"/>
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
    </interface>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" port="-1"/>
    <console type="pty"/>
    <channel type="unix">
      <source mode="bind"/>
      <target type="virtio" name="org.qemu.guest_agent.0"/>
    </channel>
    <watchdog model="ib700" action="pause"/>
    <memballoon model="virtio"/>
    <tpm model="tpm-tis">
      <backend type="passthrough">
        <device path="/dev/tpm0"/>
      </backend>
    </tpm>
    <rng model="virtio">
      <backend model="egd" type="udp">
        <source mode="bind" host="127.0.0.1" service="8000"/>
        <source mode="connect" host="foo" service="708"/>
      </backend>
    </rng>
154
    <panic model="isa">
155 156 157 158 159 160
      <address iobase="0x506" type="isa"/>
    </panic>
  </devices>
  <seclabel type="static" model="selinux" relabel="yes">
    <label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
  </seclabel>
161
  <on_lockfailure>ignore</on_lockfailure>
162 163 164
  <cputune>
    <vcpupin vcpu="0" cpuset="0-3"/>
  </cputune>
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
</domain>
<domain type="kvm">
  <name>foobar</name>
  <uuid>00000000-1111-2222-3333-444444444444</uuid>
  <title>my-title</title>
  <description>my-description</description>
  <memory>1048576</memory>
  <currentMemory>524288</currentMemory>
  <blkiotune>
    <weight>100</weight>
    <device>
      <path>/home/test/1.img</path>
      <weight>200</weight>
    </device>
  </blkiotune>
  <memtune>
    <hard_limit>10</hard_limit>
    <soft_limit>20</soft_limit>
    <swap_hard_limit>30</swap_hard_limit>
    <min_guarantee>40</min_guarantee>
  </memtune>
  <memoryBacking>
    <nosharepages/>
    <locked/>
    <hugepages>
      <page size="1" unit="G" nodeset="1,2-5"/>
    </hugepages>
  </memoryBacking>
  <vcpu>4</vcpu>
  <numatune>
    <memory mode="strict" nodeset="1-3,4"/>
  </numatune>
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
  <resource>
    <partition>/virtualmachines/production</partition>
  </resource>
  <sysinfo type="smbios">
    <bios>
      <entry name="vendor">Acme LLC</entry>
      <entry name="version">1.2.3</entry>
      <entry name="date">01/01/1970</entry>
      <entry name="release">10.22</entry>
    </bios>
    <system>
      <entry name="manufacturer">Acme Inc.</entry>
      <entry name="product">Computer</entry>
      <entry name="version">3.2.1</entry>
      <entry name="serial">123456789</entry>
      <entry name="uuid">00000000-1111-2222-3333-444444444444</entry>
      <entry name="sku">abc-123</entry>
      <entry name="family">Server</entry>
    </system>
    <baseBoard>
      <entry name="manufacturer">Acme Corp.</entry>
      <entry name="product">Motherboard</entry>
      <entry name="version">A01</entry>
      <entry name="serial">1234-5678</entry>
      <entry name="asset">Tag</entry>
      <entry name="location">Chassis</entry>
    </baseBoard>
  </sysinfo>
225 226 227 228 229 230 231
  <os>
    <type arch="x86_64">hvm</type>
    <loader>/foo/bar</loader>
    <boot dev="cdrom"/>
    <boot dev="fd"/>
    <boot dev="hd"/>
    <boot dev="network"/>
232
    <smbios mode="sysinfo"/>
233 234 235 236 237 238 239 240 241
    <bootmenu enable="no"/>
  </os>
  <idmap>
    <uid start="0" target="1000" count="10"/>
    <gid start="0" target="1000" count="10"/>
  </idmap>
  <features>
    <apic eoi="on"/>
    <privnet/>
242
    <pmu state="off"/>
243
    <hyperv>
244
      <reset state="on"/>
245
      <spinlocks state="on" retries="1234"/>
246
      <synic state="on"/>
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
    </hyperv>
    <vmport state="off"/>
  </features>
  <cpu mode="custom" match="strict">
    <model>foobar</model>
    <vendor>meee</vendor>
    <topology sockets="2" cores="2" threads="2"/>
    <feature policy="force" name="x2apic"/>
    <feature policy="force" name="x2apicagain"/>
    <feature policy="require" name="reqtest"/>
    <feature policy="optional" name="opttest"/>
    <feature policy="disable" name="distest2"/>
    <feature policy="disable" name="distest"/>
    <feature policy="forbid" name="foo"/>
    <feature policy="forbid" name="bar"/>
262
    <numa>
263 264 265 266 267 268 269 270 271 272 273 274
      <cell id="0" cpus="1,2,3" memory="1024">
        <distances>
          <sibling id="0" value="10"/>
          <sibling id="1" value="21"/>
        </distances>
      </cell>
      <cell id="1" cpus="5-8" memory="256">
        <distances>
          <sibling id="0" value="21"/>
          <sibling id="1" value="10"/>
        </distances>
      </cell>
275
    </numa>
276
    <cache mode="emulate" level="3"/>
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
  </cpu>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="merge"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>preserve</on_crash>
  <pm>
    <suspend-to-mem enabled="yes"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <controller type="usb" index="0" model="nec-xhci"/>
    <controller type="virtio-scsi" index="0"/>
293
    <filesystem type="mount" accessmode="mapped">
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
      <source dir="/foo/source"/>
      <target dir="/bar/target"/>
    </filesystem>
    <interface type="bridge">
      <source bridge="eth0"/>
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
    </interface>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" port="-1"/>
    <console type="pty"/>
    <channel type="unix">
      <source mode="bind"/>
      <target type="virtio" name="org.qemu.guest_agent.0"/>
    </channel>
    <watchdog model="ib700" action="pause"/>
    <memballoon model="virtio"/>
    <tpm model="tpm-tis">
      <backend type="passthrough">
        <device path="/dev/tpm0"/>
      </backend>
    </tpm>
    <rng model="virtio">
      <backend model="egd" type="udp">
        <source mode="bind" host="127.0.0.1" service="8000"/>
        <source mode="connect" host="foo" service="708"/>
      </backend>
    </rng>
322
    <panic model="isa">
323 324 325 326 327 328
      <address iobase="0x506" type="isa"/>
    </panic>
  </devices>
  <seclabel type="static" model="selinux" relabel="yes">
    <label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
  </seclabel>
329
  <on_lockfailure>ignore</on_lockfailure>
330 331 332
  <cputune>
    <vcpupin vcpu="0" cpuset="0-3"/>
  </cputune>
333
</domain>