Audio in VM with Volumio

sadek

New Member
Dec 2, 2020
13
1
3
44
Here I am with another question.

I created a VM with the Volumio distro for x86, the machine starts up and runs, but I can't get the audio to work properly.

Using the command speaker-test, I can hear audio from the two sources.

Using the command aplay -l, I get this:

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC3236 Analog [ALC3236 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Is it possible to hear the audio?
 
here it is:

Code:
audio0: device=ich9-intel-hda,driver=spice
bios: ovmf
boot: order=ide0;net0
cores: 1
efidisk0: local-lvm:vm-101-disk-1,size=4M
ide0: local-lvm:vm-101-disk-2,size=3700M
ide2: none,media=cdrom
machine: q35
memory: 1024
name: Volumio
net0: virtio=B2:58:D8:EB:23:39,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=89791901-f3c6-4d08-b59d-abd4688be203
sockets: 1
unused1: local-lvm:vm-101-disk-0
usb0: spice,usb3=1
usb1: host=13d3:3362,usb3=1
vga: qxl,memory=8
vmgenid: c716d21c-5891-48b7-bc7f-c7648f8bbed2
 
Hi again,

Please try to change Audio Device to intel-hda then stop & start the VM, and see if works.
 
I get this error on Volumio;

Failed to open "alsa" [alsa]; Failed to open ALSA device "hw:0,0": No such file or directory
 
When I give the command to check if iommu has been enabled I get this:

Code:
root@sadekserver:~# dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
[   18.877312] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[   18.877316] AMD-Vi: AMD IOMMUv2 functionality not available on this system

Is my device not compatible?
 
It's an older laptop with AMD A4-5000, and in the BIOS I don't have any options to enable, it's very basic