Compare commits

..

7 Commits

6 changed files with 68 additions and 47 deletions

View File

@ -1,27 +1,27 @@
<domain type='kvm'> <domain type='kvm'>
<name>linux515</name> <name>linux515</name>
<memory unit='KiB'>4194304</memory>
<description>Rootless QEMU virtual machine model optimized for Linux guests running at least kernel 5.15. Secure boot is disabled</description> <description>Rootless QEMU virtual machine model optimized for Linux guests running at least kernel 5.15. Secure boot is disabled</description>
<memory unit="KiB">4194304</memory> <memory unit="GiB">4</memory>
<currentMemory unit="KiB">1048576</currentMemory> <currentMemory unit="GiB">1</currentMemory>
<memoryBacking>
<source type="memfd"/>
<access mode="shared"/>
</memoryBacking>
<vcpu placement='static'>4</vcpu> <vcpu placement='static'>4</vcpu>
<os> <os firmware="efi">
<type arch='x86_64' machine='q35'>hvm</type> <type arch="x86_64" machine="q35">hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <loader secure='no'/>
<boot dev='cdrom'/> <boot dev="cdrom"/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
<apic/> <apic/>
<vmport state='off'/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="on"> <cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset='utc'> <clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/> <timer name='kvmclock' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot> <on_reboot>restart</on_reboot>
@ -39,42 +39,50 @@
<readonly/> <readonly/>
</disk> </disk>
<controller type='virtio-serial' index='0'> <controller type='virtio-serial' index='0'>
<model type='virtio-non-transitional'/>
</controller> </controller>
<smartcard mode='host'/>
<interface type='user'> <interface type='user'>
<backend type='passt'/>
<model type='virtio'/> <model type='virtio'/>
</interface> </interface>
<console type='pty'> <console type='pty'>
<target type='virtio' port='0'/> <target type='virtio' port='0'/>
</console> </console>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
<address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>
<channel type='unix'> <channel type='unix'>
<target type='virtio' name='org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0'/>
<address type='virtio-serial' controller='0' bus='0' port='2'/> <address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel> </channel>
<input type='keyboard' bus='virtio'> <input type='keyboard' bus='virtio'>
</input> </input>
<input type='tablet' bus='virtio'> <input type='mouse' bus='virtio'>
</input> </input>
<tpm model="tpm-crb"> <tpm model="tpm-crb">
<backend type="emulator" version="2.0"/> <backend type="emulator" version="2.0"/>
</tpm> </tpm>
<graphics type="spice"> <graphics type="dbus">
<listen type="none"/>
<image compression="off"/>
<gl enable="yes"/> <gl enable="yes"/>
<audio id="1"/>
</graphics> </graphics>
<video> <video>
<model type="virtio" heads="1" primary="yes"> <model type="virtio" heads="1" primary="yes">
<acceleration accel3d="yes"/> <acceleration accel3d="yes"/>
</model> </model>
</video> </video>
<memballoon model="virtio"/> <sound model="virtio"/>
<rng model='virtio'> <memballoon model="virtio-non-transitional"/>
<rng model="virtio-non-transitional">
<backend model='random'>/dev/urandom</backend> <backend model='random'>/dev/urandom</backend>
</rng> </rng>
<filesystem type="mount" accessmode="passthrough">
<driver type="virtiofs"/>
<source dir="/mnt"/>
<target dir="mnt"/>
<readonly/>
</filesystem>
<vsock model="virtio-non-transitional">
<cid auto="yes"/>
</vsock>
<iommu model="virtio"/> <iommu model="virtio"/>
</devices> </devices>
</domain> </domain>

View File

@ -71,6 +71,7 @@
<acceleration accel3d="yes"/> <acceleration accel3d="yes"/>
</model> </model>
</video> </video>
<sound model="virtio"/>
<memballoon model="virtio"/> <memballoon model="virtio"/>
<rng model='virtio'> <rng model='virtio'>
<backend model='random'>/dev/urandom</backend> <backend model='random'>/dev/urandom</backend>

View File

@ -9,10 +9,10 @@
<access mode="shared"/> <access mode="shared"/>
</memoryBacking> </memoryBacking>
<vcpu placement='static'>4</vcpu> <vcpu placement='static'>4</vcpu>
<os> <os firmware="efi">
<type arch='x86_64' machine='q35'>hvm</type> <type arch="x86_64" machine="q35">hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <loader secure='no'/>
<boot dev='cdrom'/> <boot dev="cdrom"/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
@ -80,12 +80,13 @@
<rng model='virtio'> <rng model='virtio'>
<backend model='random'>/dev/urandom</backend> <backend model='random'>/dev/urandom</backend>
</rng> </rng>
<sound model="virtio"/>
<filesystem type="mount" accessmode="passthrough"> <filesystem type="mount" accessmode="passthrough">
<driver type="virtiofs"/> <driver type="virtiofs"/>
<source dir="/mnt/"/> <source dir="/var/lib/libvirt/isos/"/>
<target dir="share"/> <target dir="isos"/>
<readonly/>
</filesystem> </filesystem>
<iommu model="virtio"/> <iommu model="virtio"/>
</devices> </devices>
</domain> </domain>

View File

@ -76,6 +76,7 @@
<acceleration accel3d="yes"/> <acceleration accel3d="yes"/>
</model> </model>
</video> </video>
<sound model="virtio"/>
<memballoon model="virtio"/> <memballoon model="virtio"/>
<rng model='virtio'> <rng model='virtio'>
<backend model='random'>/dev/urandom</backend> <backend model='random'>/dev/urandom</backend>

View File

@ -17,17 +17,22 @@
<acpi/> <acpi/>
<apic/> <apic/>
<hyperv mode="custom"> <hyperv mode="custom">
<relaxed state="on"/> <relaxed state='on'/>
<vapic state="on"/> <vapic state='on'/>
<spinlocks state="on" retries="8191"/> <spinlocks state='on' retries='4096'/>
<vpindex state="on"/> <vpindex state='on'/>
<runtime state="on"/> <runtime state='on'/>
<synic state="on"/> <synic state='on'/>
<stimer state="on"/> <stimer state='on'>
<vendor_id state='on' value='Phyllome OS'/> <direct state='on'/>
<frequencies state="on"/> </stimer>
<tlbflush state="on"/> <reset state='on'/>
<ipi state="on"/> <frequencies state='on'/>
<reenlightenment state='on'/>
<tlbflush state='on'>
<direct state='on'/>
<extended state='on'/>
</tlbflush>
</hyperv> </hyperv>
<kvm> <kvm>
<hidden state='on'/> <hidden state='on'/>

View File

@ -19,18 +19,23 @@
<hyperv mode="custom"> <hyperv mode="custom">
<relaxed state="on"/> <relaxed state="on"/>
<vapic state="on"/> <vapic state="on"/>
<spinlocks state="on" retries="8191"/> <spinlocks state="on" retries="4096"/>
<vpindex state="on"/> <vpindex state="on"/>
<runtime state="on"/> <runtime state="on"/>
<synic state="on"/> <synic state="on"/>
<stimer state="on"/> <stimer state="on">
<vendor_id state='on' value='Phyllome OS'/> <direct state="on"/>
</stimer>
<reset state="on"/>
<frequencies state="on"/> <frequencies state="on"/>
<tlbflush state="on"/> <reenlightenment state="on"/>
<ipi state="on"/> <tlbflush state="on">
<direct state="on"/>
<extended state="on"/>
</tlbflush>
</hyperv> </hyperv>
<kvm> <kvm>
<hidden state='on'/> <hidden state="on"/>
</kvm> </kvm>
<vmport state="off"/> <vmport state="off"/>
</features> </features>