No sound

ppg73

New Member
Mar 6, 2022
3
0
1
51
I have proxmox on PRIME B660M-A D4, Intel i5-12400
I installed a pop-os vm but couldn't hear any sound.
on the host I don't hear any sound if I run speaker-test.

when trying to fix this I ran this:
apt-get install xfce4 chromium lightdm
and then speaker-test worked i,e I could hear.
But with that as well, I could not hear anything in the pop-os vm.

since then I've uninstalled xfce4 etc because the systemd-udevd process started consuming 30% cpu. after i uninstalled xfce4 etc that issue went away.

I tried to google for the issue and ran alsactl init and then tried many things but nothing worked.

so what do I do to get sound in my vm? I assume I should first hear sound on the host. if not required, that's fine but what about sound in the vm?
everything else in proxmox works fine.
Also, I tried ubuntu live install and could not hear a sound there as well. so is the hardware new and the driver's not available?
how do I fix this?
Thanks.
 
Thats not how virtualization works. A VM has no access to any hardware of your host. So a VM can't use any GPU, soundcard or whatever unless you use PCI passthrough to passthroug that device from your host to that single VM and in that case no other VM also not your host can use that device anymore. So if you want to have a physical sound output you need to PCI passthrough a PCI soundcard or USB passthrough a USB soundcard.

Or try a LXC instead of VM which shares the kernel and hardware with the host.
 
Last edited:
  • Like
Reactions: webfab66
When you use SPICE (qxl) as the VM display and add a virtual audio device to the VM, you can hear sound on another computer that runs the Spice virt-viewer. The OS inside the VM needs to have support for Spice and drivers for the virtual audio device, of course.
The Proxmox host itself is usually a head-less server that does not support viewing (or listening) to VMs. That is done from other computers in the network using noVNC (which does not support sound) or Spice (which can support sound).
 
Thats not how virtualization works. A VM has no access to any hardware of your host. So a VM can't use any GPU, soundcard or whatever unless you use PCI passthrough to passthroug that device from your host to that single VM and in that case no other VM also not your host can use that device anymore. So if you want to have a physical sound output you need to PCI passthrough a PCI soundcard or USB passthrough a USB soundcard.

Or try a LXC instead of VM which shares the kernel and hardware with the host.
Thanks for the reply. I tried to follow the steps at https://pve.proxmox.com/wiki/Pci_passthrough but the pop_os vm just hung and the proxmox web admin became unresponsive. I reverted my changes. Is there a good guide for newbies on how to get started with proxmox? I have all sorts of problems:
* No sound in the vm
* systemd-udevd consumes 30% cpu. each time I reboot I have to bring it down.
* had to kill a jitterentropy process, consumes one cpu at 100%.

I was hoping proxmox wouldn't be hard and work quietly out of the box.
I have rather simple requirements:
I want to run nextcloud to store important files,photos.
raid-5 (I already setup) for the storage.
run a graphical vm for any GUI apps.
There's lots of youtube tutorials but they just sleep walk through the installation.
 
When you use SPICE (qxl) as the VM display and add a virtual audio device to the VM, you can hear sound on another computer that runs the Spice virt-viewer. The OS inside the VM needs to have support for Spice and drivers for the virtual audio device, of course.
The Proxmox host itself is usually a head-less server that does not support viewing (or listening) to VMs. That is done from other computers in the network using noVNC (which does not support sound) or Spice (which can support sound).
o.k. so I guess I need to readup and hunt for Spice related information.
 
Thats not how virtualization works. A VM has no access to any hardware of your host. So a VM can't use any GPU, soundcard or whatever unless you use PCI passthrough to passthroug that device from your host to that single VM and in that case no other VM also not your host can use that device anymore. So if you want to have a physical sound output you need to PCI passthrough a PCI soundcard or USB passthrough a USB soundcard.

Or try a LXC instead of VM which shares the kernel and hardware with the host.
Hello. Thank you very much for this very clear, simple and complete explanation.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!