libvirt-xmls/simple-linux-novid.xml

101 lines
3.1 KiB
XML

<domain type="kvm">
<name>template</name>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://libosinfo.org/linux/2022"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="GiB">4</memory>
<currentMemory unit="GiB">4</currentMemory>
<vcpu placement="static">2</vcpu>
<os firmware="efi">
<type arch="x86_64" machine="q35">hvm</type>
<firmware>
<feature enabled="no" name="enrolled-keys"/>
<feature enabled="yes" name="secure-boot"/>
</firmware>
</os>
<features>
<acpi/>
<apic eoi="on"/>
<kvm>
<hint-dedicated state="on"/>
<poll-control state="on"/>
<pv-ipi state="on"/>
<dirty-ring state="on" size="4096"/>
</kvm>
<vmport state="off"/>
<smm state="on"/>
<ioapic driver="kvm"/>
</features>
<cpu mode="host-passthrough" check="full" migratable="off">
<feature policy="require" name="pcid"/>
<feature policy="require" name="spec-ctrl"/>
<feature policy="require" name="stibp"/>
<feature policy="require" name="ssbd"/>
<feature policy="require" name="pdpe1gb"/>
<feature policy="require" name="md-clear"/>
<feature policy="require" name="invtsc"/>
</cpu>
<clock offset="utc">
<timer name="kvmclock"/>
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
<timer name="tsc" mode="native"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled="no"/>
<suspend-to-disk enabled="no"/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="network" device="disk">
<driver name="qemu" type="raw" cache="none" io="io_uring" discard="unmap"/>
<auth username="libvirt">
<secret type="ceph" uuid="dda829f3-4c28-41b8-b1fb-59ecf92a8928"/>
</auth>
<source protocol="rbd" name="libvirt/template">
<host name='2a04:5b81:2060:b00b:921b:eff:fe53:8b67' port='3300'/>
<host name='2a04:5b81:2060:b00b:921b:eff:fee3:9e84' port='3300'/>
</source>
<target dev="vda" bus="virtio"/>
<boot order="2"/>
</disk>
<controller type="virtio-serial" index="0">
<address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
</controller>
<interface type="network">
<source network="v6:b00b"/>
<model type="virtio"/>
</interface>
<serial type="pty">
<target type="isa-serial" port="0">
<model name="isa-serial"/>
</target>
</serial>
<video>
<model type='none'/>
</video>
<audio id='1' type='none'/>
<console type="pty">
<target type="serial" port="0"/>
</console>
<channel type="unix">
<target type="virtio" name="org.qemu.guest_agent.0"/>
</channel>
<tpm model="tpm-crb">
<backend type="emulator" version="2.0"/>
</tpm>
<watchdog model="itco" action="reset"/>
<memballoon model="virtio">
</memballoon>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
</devices>
</domain>