Update vfio config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -46,10 +46,8 @@ modprobe -r nvidia
|
|||||||
virsh nodedev-detach $VIRSH_GPU_VIDEO
|
virsh nodedev-detach $VIRSH_GPU_VIDEO
|
||||||
virsh nodedev-detach $VIRSH_GPU_AUDIO
|
virsh nodedev-detach $VIRSH_GPU_AUDIO
|
||||||
|
|
||||||
# Load VFIO kernel modules
|
# Load VFIO kernel module
|
||||||
modprobe vfio
|
modprobe vfio-pci
|
||||||
modprobe vfio_pci
|
|
||||||
modprobe vfio_iommu_type1
|
|
||||||
|
|
||||||
# Create looking glass shm
|
# Create looking glass shm
|
||||||
systemd-tmpfiles --create /etc/tmpfiles.d/10-looking-glass.conf
|
systemd-tmpfiles --create /etc/tmpfiles.d/10-looking-glass.conf
|
||||||
|
@@ -18,10 +18,8 @@ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
|||||||
# Delete looking glass shm
|
# Delete looking glass shm
|
||||||
rm /dev/shm/looking-glass
|
rm /dev/shm/looking-glass
|
||||||
|
|
||||||
# Unload VFIO kernel modules
|
# Unload VFIO kernel module
|
||||||
modprobe -r vfio_pci
|
modprobe -r vfio-pci
|
||||||
modprobe -r vfio_iommu_type1
|
|
||||||
modprobe -r vfio
|
|
||||||
|
|
||||||
# Rebind the GPU to display driver
|
# Rebind the GPU to display driver
|
||||||
virsh nodedev-reattach $VIRSH_GPU_VIDEO
|
virsh nodedev-reattach $VIRSH_GPU_VIDEO
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
||||||
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
|
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
|
||||||
virsh edit win10-igpu
|
virsh edit win11-igpu
|
||||||
or other application using the libvirt API.
|
or other application using the libvirt API.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
||||||
<name>win10-igpu</name>
|
<name>win11-igpu</name>
|
||||||
<uuid>fcac9afe-ee92-4803-a744-62b940e23e18</uuid>
|
<uuid>fcac9afe-ee92-4803-a744-62b940e23e18</uuid>
|
||||||
<title>Windows 10 - Passthrough (Hybrid Mode)</title>
|
<title>Windows 11 - Passthrough (Hybrid Mode)</title>
|
||||||
<metadata>
|
<metadata>
|
||||||
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
<libosinfo:os id="http://microsoft.com/win/10"/>
|
<libosinfo:os id="http://microsoft.com/win/10"/>
|
||||||
@@ -37,9 +37,10 @@ or other application using the libvirt API.
|
|||||||
<os>
|
<os>
|
||||||
<type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
|
<type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
|
||||||
<loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
|
<loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
|
||||||
<nvram>/var/lib/libvirt/qemu/nvram/win10-igpu_VARS.fd</nvram>
|
<nvram>/var/lib/libvirt/qemu/nvram/win11-igpu_VARS.fd</nvram>
|
||||||
<boot dev='hd'/>
|
<boot dev='hd'/>
|
||||||
<bootmenu enable='no'/>
|
<bootmenu enable='no'/>
|
||||||
|
<smbios mode='host'/>
|
||||||
</os>
|
</os>
|
||||||
<features>
|
<features>
|
||||||
<acpi/>
|
<acpi/>
|
||||||
@@ -88,7 +89,7 @@ or other application using the libvirt API.
|
|||||||
</disk>
|
</disk>
|
||||||
<disk type='file' device='cdrom'>
|
<disk type='file' device='cdrom'>
|
||||||
<driver name='qemu' type='raw'/>
|
<driver name='qemu' type='raw'/>
|
||||||
<source file='/home/nick/VMs/Win10/virtio-win-0.1.215.iso'/>
|
<source file='/home/nick/VMs/Win11/virtio-win-0.1.229.iso'/>
|
||||||
<target dev='sdb' bus='sata'/>
|
<target dev='sdb' bus='sata'/>
|
||||||
<readonly/>
|
<readonly/>
|
||||||
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
||||||
@@ -186,6 +187,7 @@ or other application using the libvirt API.
|
|||||||
<mac address='52:54:00:a7:98:7b'/>
|
<mac address='52:54:00:a7:98:7b'/>
|
||||||
<source network='default'/>
|
<source network='default'/>
|
||||||
<model type='virtio'/>
|
<model type='virtio'/>
|
||||||
|
<link state='up'/>
|
||||||
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<channel type='spicevmc'>
|
<channel type='spicevmc'>
|
||||||
@@ -206,11 +208,9 @@ or other application using the libvirt API.
|
|||||||
<gl enable='no'/>
|
<gl enable='no'/>
|
||||||
</graphics>
|
</graphics>
|
||||||
<sound model='ich9'>
|
<sound model='ich9'>
|
||||||
<codec type='micro'/>
|
|
||||||
<audio id='1'/>
|
|
||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
|
||||||
</sound>
|
</sound>
|
||||||
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'/>
|
<audio id='1' type='spice'/>
|
||||||
<video>
|
<video>
|
||||||
<model type='none'/>
|
<model type='none'/>
|
||||||
</video>
|
</video>
|
||||||
@@ -232,6 +232,7 @@ or other application using the libvirt API.
|
|||||||
<redirdev bus='usb' type='spicevmc'>
|
<redirdev bus='usb' type='spicevmc'>
|
||||||
<address type='usb' bus='0' port='3'/>
|
<address type='usb' bus='0' port='3'/>
|
||||||
</redirdev>
|
</redirdev>
|
||||||
|
<watchdog model='itco' action='reset'/>
|
||||||
<memballoon model='none'/>
|
<memballoon model='none'/>
|
||||||
<shmem name='looking-glass'>
|
<shmem name='looking-glass'>
|
||||||
<model type='ivshmem-plain'/>
|
<model type='ivshmem-plain'/>
|
||||||
@@ -241,6 +242,6 @@ or other application using the libvirt API.
|
|||||||
</devices>
|
</devices>
|
||||||
<qemu:commandline>
|
<qemu:commandline>
|
||||||
<qemu:arg value='-acpitable'/>
|
<qemu:arg value='-acpitable'/>
|
||||||
<qemu:arg value='file=/home/nick/VMs/Win10/SSDT1.dat'/>
|
<qemu:arg value='file=/home/nick/VMs/Win11/SSDT1.dat'/>
|
||||||
</qemu:commandline>
|
</qemu:commandline>
|
||||||
</domain>
|
</domain>
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
||||||
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
|
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
|
||||||
virsh edit win10
|
virsh edit win11
|
||||||
or other application using the libvirt API.
|
or other application using the libvirt API.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<domain type='kvm'>
|
<domain type='kvm'>
|
||||||
<name>win10</name>
|
<name>win11</name>
|
||||||
<uuid>f2e93cfa-83b9-4f55-ab44-da4fe7373ac4</uuid>
|
<uuid>f2e93cfa-83b9-4f55-ab44-da4fe7373ac4</uuid>
|
||||||
<title>Windows 10 - No Passthrough</title>
|
<title>Windows 11 - No Passthrough</title>
|
||||||
<metadata>
|
<metadata>
|
||||||
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
<libosinfo:os id="http://microsoft.com/win/10"/>
|
<libosinfo:os id="http://microsoft.com/win/10"/>
|
||||||
@@ -37,7 +37,7 @@ or other application using the libvirt API.
|
|||||||
<os>
|
<os>
|
||||||
<type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
|
<type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
|
||||||
<loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
|
<loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
|
||||||
<nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
|
<nvram>/var/lib/libvirt/qemu/nvram/win11_VARS.fd</nvram>
|
||||||
<boot dev='hd'/>
|
<boot dev='hd'/>
|
||||||
<bootmenu enable='no'/>
|
<bootmenu enable='no'/>
|
||||||
</os>
|
</os>
|
||||||
@@ -87,10 +87,10 @@ or other application using the libvirt API.
|
|||||||
</disk>
|
</disk>
|
||||||
<disk type='file' device='cdrom'>
|
<disk type='file' device='cdrom'>
|
||||||
<driver name='qemu' type='raw'/>
|
<driver name='qemu' type='raw'/>
|
||||||
<source file='/home/nick/VMs/Win10/virtio-win-0.1.215.iso'/>
|
<source file='/home/nick/VMs/Win11/virtio-win-0.1.229.iso'/>
|
||||||
<target dev='sdb' bus='sata'/>
|
<target dev='sda' bus='sata'/>
|
||||||
<readonly/>
|
<readonly/>
|
||||||
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||||
</disk>
|
</disk>
|
||||||
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
|
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
|
||||||
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
||||||
@@ -214,6 +214,7 @@ or other application using the libvirt API.
|
|||||||
<redirdev bus='usb' type='spicevmc'>
|
<redirdev bus='usb' type='spicevmc'>
|
||||||
<address type='usb' bus='0' port='3'/>
|
<address type='usb' bus='0' port='3'/>
|
||||||
</redirdev>
|
</redirdev>
|
||||||
|
<watchdog model='itco' action='reset'/>
|
||||||
<memballoon model='virtio'>
|
<memballoon model='virtio'>
|
||||||
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
|
||||||
</memballoon>
|
</memballoon>
|
||||||
|
Reference in New Issue
Block a user