Modify predefined devices

Add virtio memory balloon device, reduce default memory
allocation to 1024MB, disable secureboot,
bump QEMU machine to 7.2, add netboot.iso
and CDROM device
This commit is contained in:
lukas 2023-06-21 11:28:23 -05:00
parent b78d81a9d7
commit e69874470d

View File

@ -1,15 +1,18 @@
<domain type='kvm'> <domain type='kvm'>
<name>Linux</name> <name>Linux5.4</name>
<memory unit='KiB'>4194304</memory> <memory unit='KiB'>4194304</memory>
<description>System-based Q35 UEFI-based virtual machine optimized for Linux guests using a modern distribution</description> <description>QEMU Virtual machine model optimized for Linux guests running at least kernel 5.4. Secure boot is disabled</description>
<currentMemory unit='KiB'>4194304</currentMemory> <memory unit="KiB">4194304</memory>
<currentMemory unit="KiB">1048576</currentMemory>
<memoryBacking> <memoryBacking>
<source type="memfd"/> <source type="memfd"/>
<access mode="shared"/> <access mode="shared"/>
</memoryBacking> </memoryBacking>
<vcpu placement='static'>4</vcpu> <vcpu placement='static'>4</vcpu>
<os firmware="efi"> <os>
<type arch='x86_64' machine='pc-q35-7.0'>hvm</type> <type arch='x86_64' machine='pc-q35-7.2'>hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<boot dev='cdrom'/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
@ -33,6 +36,12 @@
</pm> </pm>
<devices> <devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator> <emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw"/>
<source file="/var/lib/libvirt/isos/netboot.xyz.iso"/>
<target dev="sda" bus="sata"/>
<readonly/>
</disk>
<controller type='virtio-serial' index='0'> <controller type='virtio-serial' index='0'>
</controller> </controller>
<interface type="network"> <interface type="network">
@ -67,7 +76,7 @@
<acceleration accel3d="yes"/> <acceleration accel3d="yes"/>
</model> </model>
</video> </video>
<memballoon model='none'/> <memballoon model="virtio"/>
<rng model='virtio'> <rng model='virtio'>
<backend model='random'>/dev/urandom</backend> <backend model='random'>/dev/urandom</backend>
</rng> </rng>