fix audio
This commit is contained in:
parent
dac072e5db
commit
4dbb66353f
|
@ -1,6 +0,0 @@
|
||||||
title Archlinux w/ VFIO
|
|
||||||
linux /vmlinuz-linux
|
|
||||||
initrd /intel-ucode.img
|
|
||||||
initrd /initramfs-linux.img
|
|
||||||
options mitigations=off intel_iommu=on iommu=pt intel_iommu=igfx_off experimental_zcopytx=1 kvm.ignore_msrs=1 acpi_backlight=none root=LABEL=ARCHLINUX rw
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
- virt-manager
|
- virt-manager
|
||||||
- python-evdev
|
- python-evdev
|
||||||
- python-pyudev
|
- python-pyudev
|
||||||
- vendor-reset-dkms-git
|
|
||||||
notify:
|
notify:
|
||||||
- restart libvirtd.service
|
- restart libvirtd.service
|
||||||
- restart virtlogd.socket
|
- restart virtlogd.socket
|
||||||
|
@ -18,6 +17,7 @@
|
||||||
name:
|
name:
|
||||||
- vfio-isolate
|
- vfio-isolate
|
||||||
- persistent-evdev-git
|
- persistent-evdev-git
|
||||||
|
- vendor-reset-dkms-git
|
||||||
|
|
||||||
- name: create hooks directory
|
- name: create hooks directory
|
||||||
file:
|
file:
|
||||||
|
@ -55,14 +55,8 @@
|
||||||
dest: /etc/modprobe.d/kvm.conf
|
dest: /etc/modprobe.d/kvm.conf
|
||||||
notify: regenerate linux initramfs
|
notify: regenerate linux initramfs
|
||||||
|
|
||||||
- name: configure vfio-pci kernel module
|
|
||||||
template:
|
|
||||||
src: modprobe/vfio.conf.j2
|
|
||||||
dest: /etc/modprobe.d/vfio.conf
|
|
||||||
notify: regenerate linux initramfs
|
|
||||||
|
|
||||||
- name: install boot entry
|
- name: install boot entry
|
||||||
copy:
|
template:
|
||||||
src: archlinux_iommu.conf
|
src: archlinux_iommu.conf
|
||||||
dest: /boot/loader/entries/archlinux_iommu.conf
|
dest: /boot/loader/entries/archlinux_iommu.conf
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
title Archlinux w/ VFIO
|
||||||
|
linux /vmlinuz-linux
|
||||||
|
initrd /intel-ucode.img
|
||||||
|
initrd /initramfs-linux.img
|
||||||
|
options mitigations=off vfio-pci.ids={{ ','.join(vfio_pci_ids) }} intel_iommu=on iommu=pt intel_iommu=igfx_off experimental_zcopytx=1 kvm.ignore_msrs=1 acpi_backlight=none root=LABEL=ARCHLINUX rw
|
|
@ -1 +0,0 @@
|
||||||
options vfio-pci ids={{ ','.join(vfio_pci_ids) }}
|
|
|
@ -87,7 +87,7 @@
|
||||||
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
||||||
<disk type='file' device='disk'>
|
<disk type='file' device='disk'>
|
||||||
<driver name='qemu' type='raw'/>
|
<driver name='qemu' type='raw'/>
|
||||||
<source file='/home/marchambault/Documents/virtualmachines/img/win10.img'/>
|
<source file='/data/marchambault/VirtualMachines/img/win10.img'/>
|
||||||
<target dev='sda' bus='scsi'/>
|
<target dev='sda' bus='scsi'/>
|
||||||
<boot order='1'/>
|
<boot order='1'/>
|
||||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
</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/marchambault/Documents/virtualmachines/iso/virtio-win-0.1.171.iso'/>
|
<source file='/data/marchambault/VirtualMachines/iso/virtio-win-0.1.171.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'/>
|
||||||
|
@ -207,7 +207,11 @@
|
||||||
<address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
|
||||||
<audio id='1'/>
|
<audio id='1'/>
|
||||||
</sound>
|
</sound>
|
||||||
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'/>
|
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'>
|
||||||
|
<output mixingEngine='no' voices='1' bufferLength='100'>
|
||||||
|
<!-- <settings frequency='48000' channels='2' format='f32'/> -->
|
||||||
|
</output>
|
||||||
|
</audio>
|
||||||
|
|
||||||
<!-- pci passthrough -->
|
<!-- pci passthrough -->
|
||||||
{% for pci_device_id in pci_device_ids %}
|
{% for pci_device_id in pci_device_ids %}
|
||||||
|
|
Loading…
Reference in New Issue