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.