Solved bhyve audio output still blocking the dsp device?

Some years ago, I played with bhyve and noticed that if I configured an audio output device in the bhyve vm config, the device was used exclusively. So the host could not play sound anymore.
Is that still the case or is it worth to start a new try?
 
I use vm-bhyve, and my typical configuration has a line (gotten from vermaden's vm-bhyve tutorial)
Code:
bhyve_options="-s 8, hda,play=/dev/dsp"

This allows sound to work on my VMS, but doesn't interfere with sound on the machine running the vms. I haven't tried sound on both simultaneously, but I can, for example, run a video with sound on a VM, and then play a video with sound on the machine running the VM.
Does that help?
 
This allows sound to work on my VMS, but doesn't interfere with sound on the machine running the vms. I haven't tried sound on both simultaneously, but I can, for example, run a video with sound on a VM, and then play a video with sound on the machine running the VM.
Does that help?
Well switching audio between guest and host worked vor me, too.
Anyhow my experience was that simultaneous output did _not_ work, so I might just test again.
The reason for this, I want to hear e.g. my browser notification sounds while having the Spotify client playing music in the VM. That works with Virtualbox, but there sound stutters when having heavy load (i.e. compiling) on the host.
 
Sorry, I misunderstood the question. I mostly use sound for playing videos. So, I just tried it for fun, and I was able to play a short vid with sound on the VM (using vncviewer) and a short video, also with sound, on the host machine. So, I *think* that if I understand your question correctly, the answer is yes. I would try putting together a quick VM and trying for yourself. Alpine, for example, takes me 3 minutes to install and perhaps another 5 minutes to get X and sound working. (If that sounds sarcastic, it's not meant to be, I'm just suggesting a really quick way to set up a VM to test).
 
Sorry, I misunderstood the question. I mostly use sound for playing videos. So, I just tried it for fun, and I was able to play a short vid with sound on the VM (using vncviewer) and a short video, also with sound, on the host machine. So, I *think* that if I understand your question correctly, the answer is yes. I would try putting together a quick VM and trying for yourself. Alpine, for example, takes me 3 minutes to install and perhaps another 5 minutes to get X and sound working. (If that sounds sarcastic, it's not meant to be, I'm just suggesting a really quick way to set up a VM to test).
That sounds promising. Thanks!
I am currently spinning up a debian vm.
 
Back
Top