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:26:54 -05:00
parent 10bf571d55
commit 046b41d77d

View File

@ -1,12 +1,14 @@
<domain type='kvm'> <domain type='kvm'>
<name>Linux</name> <name>Linux5.4</name>
<memory unit='KiB'>4194304</memory> <memory unit='KiB'>4194304</memory>
<description>Session-based Q35 UEFI-based virtual machine optimized for Linux guests using a modern distribution</description> <description>Rootless 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>
<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 secure='yes'/> <loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<boot dev='cdrom'/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
@ -30,6 +32,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='user'> <interface type='user'>
@ -63,7 +71,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>