Missing audio in libvirt/qemu/virt-manager VM, suspect missing audio driver

No. I don’t use it much

That works to reconfigure again. Unfortunately, it does add sound.

Let’s check

$ herd status
Started:
 + dbus
 + pipewire
 + pipewire-pulseaudio
 + redshift
 + root
 + timer
 + transient
 + wireplumber
 + x11-display
Running timers:
 + log-rotation
> sudo herd status
Started:
...
dbus-system
...
Stopped:
 - dbus
 - pipewire
 - pipewire-pulseaudio
 - redshift
 - wireplumber

Oh wow! I do recall a lot of services not being there before juipeltje’s advice.

No pulseaudio-service in sight.
And it looks like on the root user side all the pipewire services have stopped for some reason.

Does this VM also have XFCE and X11?

I try to keep it real light, my computer is weak and old, so LXDE and yes, X11.

Does pipewire need to be installed system-wide?

It looks like I’ve got it installed as yet another user package.

Usually, when you add a service, guix also adds the basic relevant packages.

if pipewire is running, try running wpctl status. A GUI like qpwgraph in your user packages will help. There are lots of new tools. See mikeroyal/PipeWire-Guide.

pavucontrol will test the pulseaudio interface that pipewire provides. if both qpwgraph and pavucontrol are open at the same time, it shows how nodes are added to the pipewire audio graph. pavucontrol makes it easier to adjust volume.

if nothing’s showing in qpwgraph or pavucontrol doesn’t allow you to select audio devices, there’s something else wrong. probably something between the VM and the host.

if pipewire is running, try running wpctl status

Alright..

$ wpctl status
W 15:57:25.616273             mod.rt ../source/src/modules/module-rt.c:329:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
W 15:57:25.616359             mod.rt ../source/src/modules/module-rt.c:993:do_rtkit_setup: RTKit does not give us MaxRealtimePriority, using 1
W 15:57:25.616703             mod.rt ../source/src/modules/module-rt.c:329:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
W 15:57:25.616733             mod.rt ../source/src/modules/module-rt.c:998:do_rtkit_setup: RTKit does not give us MinNiceLevel, using 0
PipeWire 'pipewire-0' [1.6.2, folaht@Pjehrsohmehj, cookie:2639726490]
 └─ Clients:
        33. pipewire                            [1.6.2, folaht@Pjehrsohmehj, pid:14170]
        35. WirePlumber                         [1.6.2, folaht@Pjehrsohmehj, pid:14174]
        47. WirePlumber [export]                [1.6.2, folaht@Pjehrsohmehj, pid:14174]
        66. xfce4-pulseaudio-plugin             [1.6.2, folaht@Pjehrsohmehj, pid:14350]
        67. Xfce volume daemon                  [1.6.2, folaht@Pjehrsohmehj, pid:15006]
        68. Telegram Desktop                    [1.6.2, folaht@Pjehrsohmehj, pid:2]
        69. Chromium input                      [1.6.2, folaht@Pjehrsohmehj, pid:184]
        70. Chromium input                      [1.6.2, folaht@Pjehrsohmehj, pid:148]
        71. qpwgraph                            [1.6.2, folaht@Pjehrsohmehj, pid:22721]
        73. Chromium                            [1.6.2, folaht@Pjehrsohmehj, pid:148]
        82. wpctl                               [1.6.2, folaht@Pjehrsohmehj, pid:896]

Audio
 ├─ Devices:
 │      48. Built-in Audio                      [alsa]
 │      49. Webcam C170                         [alsa]
 │  
 ├─ Sinks:
 │  *   56. Built-in Audio Analog Stereo        [vol: 0.40]
 │  
 ├─ Sources:
 │  *   44. Webcam C170 Mono                    [vol: 1.00]
 │      57. Built-in Audio Analog Stereo        [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:
        75. Chromium                                                    
             72. output_FL       > ALC892 Analog:playback_FL	[active]
             74. output_FR       > ALC892 Analog:playback_FR	[active]

Video
 ├─ Devices:
 │      34. Webcam C170                         [v4l2]
 │      45. Webcam C170: Webcam C170            [libcamera]
 │      46. Webcam C170                         [v4l2]
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  *   64. Webcam C170 (V4L2)                 
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:

By “nothing showing”, are you talking about virt-manager should be showing in the playback tab?