Sound in FreeBSD on VIrtualBox
I wavered between putting this here or in the Virtualization Forum and then decided on here because I think the answer will more likely be in BSD than in VirtualBox.
I use VMs for distro-hopping and learning. Recently, I've been trying to learn something about BSD (I was inspired to do so by Mary at SMLR). Note that this is not an urgent problem, but I am mighty curious. I have both FreeBSD and PC-BSD in separate VMs and I cannot get audio in FreeBSD. I can get it in PC-BSD; indeed, it works quite nicely and I've been using it to listen to streaming audio just because I can. I tried all the diagnostics in the Free BSD Handbook short of trying to compile my own kernel and have had no luck. Here are the facts: VirtualBox v. 5.0.8 r103449 running on Slackware --Current. Quote:
The host settings for both VM's say Quote:
Here's the output of some diagnostics on PC-BSD. Code:
# dmesg | grep pcm Code:
$ dmesg | grep pcm Any hints would be appreciated. |
Can you check and compare kldstat(8) output for both FreeBSD and PCBSD?
|
Certainly. (I ran the command on each VM and piped it to a file, then scp'd the files to the host which I am using as I type this.)
From FreeBSD: Code:
$ cat fbsdkldstat.txt Code:
$ cat pcbsdkldstat.txt |
What does mixer command print?
|
You mentioned you tried all diagnostics in the Handbook.
Did you add your sound driver to /boot/loader.conf to enable sound to start at boot up? Try # kldload snd_driver To determine which driver was selected for the sound card after loading the snd_driver metadriver, type cat /dev/sndstat https://www.freebsd.org/doc/handbook/sound-setup.html |
I did try kldload snd_driver. It reported that the driver was already loaded or in the kernel.
The output of the mixer command in the FreeBSD VM is Code:
Mixer vol is currently set to 75:75 I should have mentioned this earlier: when I try to play audio in qmmp, the player acts as if it's playing something, but no sound comes out. The little mixer window in the upper left of the main window goes up and down. Sound comes out of my other VMs, so, if there's host setting somewhere for this particular VM that's the issue, I have no idea what it possibly might be. |
What kind of emulated card does FreeBSD see? lspci
|
This is the audio-related output of pciconf -lv (thanks! I learned a new command):
Code:
hdac0@pci0:0:5:0: class=0x040300 card=0x76808384 chip=0x26688086 rev=0x01 hdr=0x00 Code:
hdac0@pci0:0:5:0: class=0x040300 card=0x76808384 chip=0x26688086 |
Below is snippet from my kernel conf (I configure my kernels by hand). I have snd_hda and snd_ich built in for Intel ICH7 sound, you should have them as modules.
Code:
# Sound support |
frankbell,
I ran FreeBSD 10.2 on this box for a few days and I was able to get sound support working. However, I'm back to running OpenBSD 5.8 which supports my sound card out of the box with no messing about. In your OS evaluations you may wish to consider giving OpenBSD 5.8/amd a shot in Virtualbox. I think you might like it. OpenBSD is my favourite BSD compared to FreeBSD and NetBSD. |
Emerson, I'll try to track that down tomorrow, but I might not get to it until Monday. I try not to geek out too much when my girlfriend doesn't have to go to work.;)
hitest, I do want to give OpenBSD a try. I'm having a lot of fun learning about BSDs. I'd kind of like to figure this issue out as part of that learning process. I promise I'll get around to OpenBSD. I'm not going to stop until I can manually partition a hard drive using BSD lingo. |
Quote:
|
I must say I am on completely unfamiliar ground here.
I wandered around my file system and was mildly surprised to find that /proc was empty. I followed the instructions from several pages turned up by a web search and finally found an old post here at LQ to show loaded modules. Here's the output from that post (I added the grep for "snd"). Am I on the right track? Code:
$ ls /boot/kernel | grep -v kernel | grep snd > snd.txt |
This is the output of kldstat ?!
|
frankbell,
Are you running an up to date version of Virtualbox? Guest additions added? I know that vbox can on occasion have difficulty identifying devices. |
All times are GMT -5. The time now is 05:26 AM. |