Cannot enable Pipewire/JACK for qemu

I am following Arch wiki guide to setup Pipewire/Jack for my VMs, but keep hitting a wall…

So, as soon as I make the changes to XML

    <sound model="ich9">
      <codec type="micro"/>
      <audio id="1"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
    </sound>
    <audio id="1" type="jack">
      <input clientName="win10-games" connectPorts="Sound Blaster X5 Digital Stereo Duplex (IEC958)"/>
      <output clientName="win10-games" connectPorts="Sound Blaster X5 Digital Stereo Duplex (IEC958)"/>
    </audio>
...
  <qemu:commandline>
    <qemu:env name="PIPEWIRE_RUNTIME_DIR" value="/run/user/1000"/>
    <qemu:env name="PIPEWIRE_LATENCY" value="512/48000"/>
  </qemu:commandline>

and qemu:

user = "<my_user_name>"

then restart service:

systemctl restart libvirtd.service 

VM starts, tries to load Windows and then shuts down, with this log:

[ 4542.936649] audit: type=1100 audit(1683204098.279:875): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="wizard" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4542.936698] audit: type=1101 audit(1683204098.279:876): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="wizard" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4542.937124] audit: type=1110 audit(1683204098.279:877): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4542.937162] audit: type=1105 audit(1683204098.279:878): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4556.608003] audit: type=1106 audit(1683204111.953:879): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4556.608030] audit: type=1104 audit(1683204111.953:880): pid=23736 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.295879] audit: type=1101 audit(1683204115.639:881): pid=23792 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="wizard" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.296290] audit: type=1110 audit(1683204115.639:882): pid=23792 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.296325] audit: type=1105 audit(1683204115.639:883): pid=23792 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.358049] audit: type=1131 audit(1683204115.703:884): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 4560.403416] audit: type=1130 audit(1683204115.746:885): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 4560.404663] audit: type=1106 audit(1683204115.749:886): pid=23792 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.404682] audit: type=1104 audit(1683204115.749:887): pid=23792 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4560.416327] audit: type=1325 audit(1683204115.759:888): table=mangle:353 family=2 entries=1 op=nft_unregister_rule pid=23824 comm="iptables"
[ 4571.681448] kauditd_printk_skb: 113 callbacks suppressed
[ 4571.681450] audit: type=1100 audit(1683204127.026:926): pid=23935 uid=1000 auid=1000 ses=3 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="wizard" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
[ 4571.681499] audit: type=1101 audit(1683204127.026:927): pid=23935 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="wizard" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
[ 4576.713297] audit: type=2502 audit(1683204132.056:928): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 vm-ctx=+1000:+961 img-ctx=+1000:+961 model=dac exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097468] audit: type=1334 audit(1683204132.439:929): prog-id=92 op=LOAD
[ 4577.097473] audit: type=1300 audit(1683204132.439:929): arch=c000003e syscall=321 success=yes exit=33 a0=5 a1=7efc677fd160 a2=90 a3=0 items=0 ppid=1 pid=23796 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="rpc-libvirtd" exe="/usr/bin/libvirtd" key=(null)
[ 4577.097476] audit: type=1327 audit(1683204132.439:929): proctitle=2F7573722F62696E2F6C69627669727464002D2D74696D656F757400313230
[ 4577.097512] audit: type=2501 audit(1683204132.439:930): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=deny vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=all exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097540] audit: type=2501 audit(1683204132.439:931): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=allow vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=path path="/dev/null" rdev=01:03 acl=rw exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097554] audit: type=2501 audit(1683204132.439:932): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=allow vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=path path="/dev/full" rdev=01:07 acl=rw exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097566] audit: type=2501 audit(1683204132.439:933): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=allow vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=path path="/dev/zero" rdev=01:05 acl=rw exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097579] audit: type=2501 audit(1683204132.439:934): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=allow vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=path path="/dev/random" rdev=01:08 acl=rw exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.097590] audit: type=2501 audit(1683204132.439:935): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=cgroup reason=allow vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 cgroup="/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dwin10\x2dgames.scope/" class=path path="/dev/urandom" rdev=01:09 acl=rw exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4577.150515]  sdb: sdb1 sdb2 sdb3 sdb4
[ 4579.332666] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x19@0x270
[ 4579.332675] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x1b@0x2d0
[ 4579.332679] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x26@0x410
[ 4579.332681] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x27@0x440
[ 4579.477910] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x1e@0x110
[ 4579.477917] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x25@0x1e0
[ 4579.477930] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x19@0x300
[ 4579.477931] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x26@0x340
[ 4579.477932] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x27@0x378
[ 4579.808392] vfio-pci 0000:0e:00.0: vfio_ecap_init: hiding ecap 0x1e@0x178
[ 4585.207276]  sdb: sdb1 sdb2 sdb3 sdb4
[ 4585.297269]  sdb: sdb1 sdb2 sdb3 sdb4
[ 4585.459480] kauditd_printk_skb: 30 callbacks suppressed
[ 4585.459483] audit: type=1334 audit(1683204140.803:966): prog-id=92 op=UNLOAD
[ 4585.466082] audit: type=2500 audit(1683204140.809:967): pid=23796 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm op=stop reason=failed vm="win10-games" uuid=51a536be-f2d4-45aa-9274-6171d572f867 vm-pid=0 exe="/usr/bin/libvirtd" hostname=? addr=? terminal=? res=success'
[ 4585.493926]  sdb: sdb1 sdb2 sdb3 sdb4
[ 4596.878337] audit: type=1101 audit(1683204152.223:968): pid=24241 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="wizard" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4596.878542] audit: type=1110 audit(1683204152.223:969): pid=24241 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 4596.878569] audit: type=1105 audit(1683204152.223:970): pid=24241 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'

inxi -F

System:
  Host: wizzy-linux-am5 Kernel: 6.1.25-1-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.4 Distro: Manjaro Linux
Machine:
  Type: Desktop System: Gigabyte product: X670E AORUS MASTER v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X670E AORUS MASTER v: x.x
    serial: <superuser required> UEFI: American Megatrends LLC. v: F10c
    date: 04/26/2023
CPU:
  Info: 16-core model: AMD Ryzen 9 7950X3D bits: 64 type: MT MCP cache:
    L2: 16 MiB
  Speed (MHz): avg: 3055 min/max: 3000/5759 cores: 1: 3000 2: 3000 3: 3000
    4: 3000 5: 3000 6: 3000 7: 3000 8: 3000 9: 3583 10: 3000 11: 3000 12: 3000
    13: 3000 14: 3000 15: 3000 16: 3000 17: 3000 18: 3000 19: 3000 20: 3000
    21: 3000 22: 3000 23: 3000 24: 3000 25: 4200 26: 3000 27: 3000 28: 3000
    29: 3000 30: 3000 31: 3000 32: 3000
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: vfio-pci
    v: N/A
  Device-2: AMD Raphael driver: amdgpu v: kernel
  Device-3: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu
    unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu resolution:
    1: 1200x1920~60Hz 2: 2560x1440~60Hz
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon Graphics (gfx1036
    LLVM 15.0.7 DRM 3.49 6.1.25-1-MANJARO)
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: vfio-pci
  Device-2: Creative Sound Blaster X5 type: USB
    driver: cdc_acm,hid-generic,snd-usb-audio,usbhid
  Device-3: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  API: ALSA v: k6.1.25-1-MANJARO status: kernel-api
  Server-1: PulseAudio v: 16.1 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: vfio-pci
  Device-2: Intel Ethernet I225-V driver: igc
  IF: enp15s0 state: up speed: 1000 Mbps duplex: full mac: 74:56:3c:4b:74:7e
  Device-3: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi
  IF: wlp16s0 state: down mac: 9e:22:e6:f8:6d:75
  IF-ID-1: virbr0 state: down mac: 52:54:00:68:00:fd
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 5.48 TiB used: 1.11 TiB (20.3%)
  ID-1: /dev/nvme1n1 vendor: Seagate model: XPG GAMMIX S50 Lite
    size: 953.87 GiB
  ID-2: /dev/nvme2n1 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB
  ID-3: /dev/sda vendor: Toshiba model: HDWE140 size: 3.64 TiB
  ID-4: /dev/sdb vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
Partition:
  ID-1: / size: 448.43 GiB used: 20.77 GiB (4.6%) fs: ext4 dev: /dev/nvme2n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 312 KiB (0.1%) fs: vfat
    dev: /dev/nvme2n1p1
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme2n1p3
Sensors:
  System Temperatures: cpu: 46.2 C mobo: N/A gpu: amdgpu temp: 39.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 555 Uptime: 1h 25m Memory: 60.48 GiB used: 39.57 GiB (65.4%)
  Shell: Zsh inxi: 3.3.26

vmm 4.1

qemu 7.2.1

Can anybody shed some light here?
Maybe @gnif ? You have done lots of work for that, but even after reading your posts, I couldn’t solve it.

I have not used this backend in a long time, not since I added Audio support to Looking Glass.

You might be better served asking in the VFIO discord for help.

That said, the log you provided doesn’t show anything of use. You need the libvirt log which will give information on why it was terminated.

Will do!

This is the log:

2023-05-04 13:12:45.007+0000: starting up libvirt version: 9.2.0, qemu version: 7.2.1, kernel: 6.1.25-1-MANJARO, hostname: wizzy-linux-am5
LC_ALL=C \
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin \
HOME=/var/lib/libvirt/qemu/domain-2-win10-games \
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-2-win10-games/.local/share \
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain-2-win10-games/.cache \
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain-2-win10-games/.config \
PIPEWIRE_RUNTIME_DIR=/run/user/1000 \
PIPEWIRE_LATENCY=512/48000 \
/usr/bin/qemu-system-x86_64 \
-name guest=win10-games,debug-threads=on \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-2-win10-games/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/edk2/x64/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/win10-games_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-q35-7.1,usb=off,vmport=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=off,topoext=on,svm=on,amd-stibp=on,hypervisor=off,hv-time=on,hv-passthrough=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,kvm=off,host-cache-info=on,l3-cache=off \
-m 32768 \
-object '{"qom-type":"memory-backend-file","id":"pc.ram","mem-path":"/dev/hugepages/libvirt/qemu/2-win10-games","discard-data":true,"share":false,"x-use-canonical-path-for-ramblock-id":false,"prealloc":true,"size":34359738368}' \
-overcommit mem-lock=on \
-smp 16,sockets=1,dies=1,cores=8,threads=2 \
-object '{"qom-type":"iothread","id":"iothread1"}' \
-object '{"qom-type":"iothread","id":"iothread2"}' \
-uuid 51a536be-f2d4-45aa-9274-6171d572f867 \
-smbios 'type=0,vendor=American Megatrends International,, LLC.,version=F10c,date=04/26/2023,release=5.26' \
-smbios 'type=1,manufacturer=Gigabyte Technology Co.,, Ltd.,product=X670E AORUS MASTER,version=-CF,serial=Default string,sku=Default string,family=X670 MB' \
-smbios 'type=2,manufacturer=Gigabyte Technology Co.,, Ltd.,product=X670E AORUS MASTER,version=x.x,serial=Default string,asset=Default string,location=Default string' \
-smbios 'type=3,manufacturer=Default string,version=Default string,serial=Default string,asset=Default string,sku=Default string' \
-smbios 'type=11,value=Default string' \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=32,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-global ICH9-LPC.disable_s3=1 \
-global ICH9-LPC.disable_s4=1 \
-boot strict=on \
-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' \
-device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' \
-device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' \
-device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' \
-device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}' \
-device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}' \
-device '{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}' \
-device '{"driver":"pcie-root-port","port":23,"chassis":8,"id":"pci.8","bus":"pcie.0","addr":"0x2.0x7"}' \
-device '{"driver":"pcie-root-port","port":24,"chassis":9,"id":"pci.9","bus":"pcie.0","multifunction":true,"addr":"0x3"}' \
-device '{"driver":"pcie-root-port","port":25,"chassis":10,"id":"pci.10","bus":"pcie.0","addr":"0x3.0x1"}' \
-device '{"driver":"pcie-root-port","port":26,"chassis":11,"id":"pci.11","bus":"pcie.0","addr":"0x3.0x2"}' \
-device '{"driver":"pcie-root-port","port":27,"chassis":12,"id":"pci.12","bus":"pcie.0","addr":"0x3.0x3"}' \
-device '{"driver":"pcie-root-port","port":28,"chassis":13,"id":"pci.13","bus":"pcie.0","addr":"0x3.0x4"}' \
-device '{"driver":"pcie-root-port","port":29,"chassis":14,"id":"pci.14","bus":"pcie.0","addr":"0x3.0x5"}' \
-device '{"driver":"pcie-root-port","port":30,"chassis":15,"id":"pci.15","bus":"pcie.0","addr":"0x3.0x6"}' \
-device '{"driver":"pcie-pci-bridge","id":"pci.16","bus":"pci.6","addr":"0x0"}' \
-device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.2","addr":"0x0"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.3","addr":"0x0"}' \
-blockdev '{"driver":"host_device","filename":"/dev/sdb","aio":"native","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-hd","bus":"ide.1","drive":"libvirt-2-format","id":"sata0-0-1","bootindex":1,"write-cache":"on"}' \
-blockdev '{"driver":"file","filename":"/home/wizard/Downloads/Linux/virtio-win-0.1.229.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"ide.3","drive":"libvirt-1-format","id":"sata0-0-3"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev spicevmc,id=charchannel0,name=vdagent \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"}' \
-audiodev '{"id":"audio1","driver":"jack","in":{"client-name":"win10-games","connect-ports":"Sound Blaster X5 Digital Stereo Duplex (IEC958)"},"out":{"client-name":"win10-games","connect-ports":"Sound Blaster X5 Digital Stereo Duplex (IEC958)"}}' \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on,image-compression=off,seamless-migration=on \
-device '{"driver":"virtio-vga","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}' \
-device '{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}' \
-device '{"driver":"hda-micro","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}' \
-global ICH9-LPC.noreboot=off \
-watchdog-action reset \
-chardev spicevmc,id=charredir0,name=usbredir \
-device '{"driver":"usb-redir","chardev":"charredir0","id":"redir0","bus":"usb.0","port":"2"}' \
-chardev spicevmc,id=charredir1,name=usbredir \
-device '{"driver":"usb-redir","chardev":"charredir1","id":"redir1","bus":"usb.0","port":"3"}' \
-device '{"driver":"vfio-pci","host":"0000:03:00.0","id":"hostdev0","bus":"pci.1","addr":"0x0"}' \
-device '{"driver":"vfio-pci","host":"0000:03:00.1","id":"hostdev1","bus":"pci.5","addr":"0x0"}' \
-device '{"driver":"vfio-pci","host":"0000:04:00.0","id":"hostdev2","bus":"pci.8","addr":"0x0"}' \
-device '{"driver":"usb-host","hostdevice":"/dev/bus/usb/005/008","id":"hostdev3","bus":"usb.0","port":"1"}' \
-device '{"driver":"vfio-pci","host":"0000:0e:00.0","id":"hostdev4","bus":"pci.7","addr":"0x0"}' \
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.4","addr":"0x0"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2023-05-04 13:12:45.007+0000: Domain id=2 is tainted: custom-argv
char device redirected to /dev/pts/1 (label charserial0)
jack: JACK output configured for 48000Hz (1024 samples)
jack: JACK input configured for 48000Hz (1024 samples)
2023-05-04T13:12:47.829029Z qemu-system-x86_64: vfio: Cannot reset device 0000:03:00.1, depends on group 17 which is not owned.
2023-05-04 13:12:52.763+0000: shutting down, reason=crashed
2023-05-04 13:14:15.853+0000: starting up libvirt version: 9.2.0, qemu version: 7.2.1, kernel: 6.1.25-1-MANJARO, hostname: wizzy-linux-am5
LC_ALL=C \
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin \
HOME=/var/lib/libvirt/qemu/domain-3-win10-games \
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-3-win10-games/.local/share \
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain-3-win10-games/.cache \
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain-3-win10-games/.config \
PIPEWIRE_RUNTIME_DIR=/run/user/1000 \
PIPEWIRE_LATENCY=512/48000 \
/usr/bin/qemu-system-x86_64 \
-name guest=win10-games,debug-threads=on \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-3-win10-games/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/edk2/x64/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/win10-games_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-q35-7.1,usb=off,vmport=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=off,topoext=on,svm=on,amd-stibp=on,hypervisor=off,hv-time=on,hv-passthrough=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,kvm=off,host-cache-info=on,l3-cache=off \
-m 32768 \
-object '{"qom-type":"memory-backend-file","id":"pc.ram","mem-path":"/dev/hugepages/libvirt/qemu/3-win10-games","discard-data":true,"share":false,"x-use-canonical-path-for-ramblock-id":false,"prealloc":true,"size":34359738368}' \
-overcommit mem-lock=on \
-smp 16,sockets=1,dies=1,cores=8,threads=2 \
-object '{"qom-type":"iothread","id":"iothread1"}' \
-object '{"qom-type":"iothread","id":"iothread2"}' \
-uuid 51a536be-f2d4-45aa-9274-6171d572f867 \
-smbios 'type=0,vendor=American Megatrends International,, LLC.,version=F10c,date=04/26/2023,release=5.26' \
-smbios 'type=1,manufacturer=Gigabyte Technology Co.,, Ltd.,product=X670E AORUS MASTER,version=-CF,serial=Default string,sku=Default string,family=X670 MB' \
-smbios 'type=2,manufacturer=Gigabyte Technology Co.,, Ltd.,product=X670E AORUS MASTER,version=x.x,serial=Default string,asset=Default string,location=Default string' \
-smbios 'type=3,manufacturer=Default string,version=Default string,serial=Default string,asset=Default string,sku=Default string' \
-smbios 'type=11,value=Default string' \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=32,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-global ICH9-LPC.disable_s3=1 \
-global ICH9-LPC.disable_s4=1 \
-boot strict=on \
-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' \
-device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' \
-device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' \
-device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' \
-device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}' \
-device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}' \
-device '{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}' \
-device '{"driver":"pcie-root-port","port":23,"chassis":8,"id":"pci.8","bus":"pcie.0","addr":"0x2.0x7"}' \
-device '{"driver":"pcie-root-port","port":24,"chassis":9,"id":"pci.9","bus":"pcie.0","multifunction":true,"addr":"0x3"}' \
-device '{"driver":"pcie-root-port","port":25,"chassis":10,"id":"pci.10","bus":"pcie.0","addr":"0x3.0x1"}' \
-device '{"driver":"pcie-root-port","port":26,"chassis":11,"id":"pci.11","bus":"pcie.0","addr":"0x3.0x2"}' \
-device '{"driver":"pcie-root-port","port":27,"chassis":12,"id":"pci.12","bus":"pcie.0","addr":"0x3.0x3"}' \
-device '{"driver":"pcie-root-port","port":28,"chassis":13,"id":"pci.13","bus":"pcie.0","addr":"0x3.0x4"}' \
-device '{"driver":"pcie-root-port","port":29,"chassis":14,"id":"pci.14","bus":"pcie.0","addr":"0x3.0x5"}' \
-device '{"driver":"pcie-root-port","port":30,"chassis":15,"id":"pci.15","bus":"pcie.0","addr":"0x3.0x6"}' \
-device '{"driver":"pcie-pci-bridge","id":"pci.16","bus":"pci.6","addr":"0x0"}' \
-device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.2","addr":"0x0"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.3","addr":"0x0"}' \
-blockdev '{"driver":"host_device","filename":"/dev/sdb","aio":"native","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-hd","bus":"ide.1","drive":"libvirt-2-format","id":"sata0-0-1","bootindex":1,"write-cache":"on"}' \
-blockdev '{"driver":"file","filename":"/home/wizard/Downloads/Linux/virtio-win-0.1.229.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"ide.3","drive":"libvirt-1-format","id":"sata0-0-3"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev spicevmc,id=charchannel0,name=vdagent \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"}' \
-audiodev '{"id":"audio1","driver":"jack","in":{"client-name":"win10-games","connect-ports":"Sound Blaster X5 Digital Stereo Duplex (IEC958)"},"out":{"client-name":"win10-games","connect-ports":"Sound Blaster X5 Digital Stereo Duplex (IEC958)"}}' \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on,image-compression=off,seamless-migration=on \
-device '{"driver":"virtio-vga","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}' \
-device '{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}' \
-device '{"driver":"hda-micro","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}' \
-global ICH9-LPC.noreboot=off \
-watchdog-action reset \
-chardev spicevmc,id=charredir0,name=usbredir \
-device '{"driver":"usb-redir","chardev":"charredir0","id":"redir0","bus":"usb.0","port":"2"}' \
-chardev spicevmc,id=charredir1,name=usbredir \
-device '{"driver":"usb-redir","chardev":"charredir1","id":"redir1","bus":"usb.0","port":"3"}' \
-device '{"driver":"vfio-pci","host":"0000:03:00.0","id":"hostdev0","bus":"pci.1","addr":"0x0"}' \
-device '{"driver":"vfio-pci","host":"0000:04:00.0","id":"hostdev1","bus":"pci.8","addr":"0x0"}' \
-device '{"driver":"usb-host","hostdevice":"/dev/bus/usb/005/008","id":"hostdev2","bus":"usb.0","port":"1"}' \
-device '{"driver":"vfio-pci","host":"0000:0e:00.0","id":"hostdev3","bus":"pci.7","addr":"0x0"}' \
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.4","addr":"0x0"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2023-05-04 13:14:15.854+0000: Domain id=3 is tainted: custom-argv
char device redirected to /dev/pts/1 (label charserial0)
jack: JACK output configured for 48000Hz (1024 samples)
jack: JACK input configured for 48000Hz (1024 samples)
2023-05-04T13:14:18.659300Z qemu-system-x86_64: vfio: Cannot reset device 0000:03:00.0, depends on group 16 which is not owned.
2023-05-04T13:14:18.955678Z qemu-system-x86_64: vfio: Cannot reset device 0000:03:00.0, depends on group 16 which is not owned.
2023-05-04 13:14:24.206+0000: shutting down, reason=crashed

Device 0000:03:00.0 is my VGA, which works fine before I make the JACK changes…