Skip to content

DOMAIN-XML-LAB(1)

Build a domain definition

Change the guest model and inspect the XML libvirt would persist. This is a teaching surface; it does not connect to the host daemon.

Firmware
Firmware
Disk bus
Disk bus
Network
Network
/etc/libvirt/qemu/field-lab01.xmlgenerated
<domain type='kvm'>
  <name>field-lab01</name>
  <memory unit='MiB'>4096</memory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='q35'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.fd</loader>
  </os>
  <devices>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/field-lab01.qcow2'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <model type='virtio'/>
    </interface>
  </devices>
</domain>

Preflight

  • PASSMemory is at least 1 GiB
  • PASSLab CPU allocation remains within the 8-vCPU guardrail
  • PASSParavirtualized disk bus selected
  • PASSNetwork supports normal host-managed connectivity