Date: Mon, 20 Jul 2020 16:00:22 -0700 From: "Russell L. Carter" <rcarter@pinyon.org> To: freebsd-questions@freebsd.org Subject: Re: forwarding audio from a (bhyve) vm Message-ID: <42870245-d3c6-be29-242b-67b7697d7402@pinyon.org> In-Reply-To: <08284be8-6508-0451-312b-b575dc6d4331@pinyon.org> References: <295d43ec-b5dc-2899-5d22-fb0b5d8ff5cb@pinyon.org> <20200720120813.4b020a5b.freebsd@edvax.de> <08284be8-6508-0451-312b-b575dc6d4331@pinyon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-07-20 15:06, Russell L. Carter wrote: > > Right. Perfect, this is what I needed to um, 'hear'. ;-) > Thank you. > > Comments inline. > > On 2020-07-20 03:08, Polytropon wrote: > > On Sun, 19 Jul 2020 19:10:09 -0700, Russell L. Carter wrote: > >> I have unifi-video up and running in a debian 9 bhyve vm. What's the > >> current best practice for forwarding the audio from the bhyve vm? I'd > >> like to be able to listen to the camera audio anywhere in my very > >> heterogeneous OS network. My main desktop is FreeBSD, so that's what > >> I mainly need. Is that possible? Do the *vnc's do sound? > >> > >> What's the most efficient method? > > > > Maybe you can achieve this using virtual networking? There > > are solutions that use UDP for audio streaming (called "Seren"), > > or tunneling pulseaudio (if you're using it), or use XRDP with > > its pulseaudio plugin. > > Seren looks perfect. However it uses alsa to access the "sound card", > which I see from googling should be achievable in a bhyve vm by > configuring the HDA emulation. Evidently, after consulting > https://wiki.freebsd.org/SummerOfCode2016/HDAudioEmulationForBhyve > and > https://forums.freebsd.org/threads/what-is-the-current-status-of-audio-emulation-in-bhyve.74557/ > > > I should be able to achieve this using vm-bhyve by setting > > bhyve_options="-s 9,hda,play=/dev/dsp1,rec=/dev/dsp1" > > in the vm template file. Oh well, the vm fails to start with this template configuration. I am not sure how to fix it. There is only one vm running, so I don't think bhyve should be running out of slots/devices. There is no audio hardware in the bhyve host... is that a problem? I don't want to listen on the bhyve host, I want to ship the audio over the physical network to another FreeBSD system. Both the bhyve host and the target system are running FreeBSD 12/stable from the beginning of July. Russell > (Although I have no idea why the forum post uses a "9" whereas > the SummerOfCode post uses "x:y" for the first entry in the > config list, I'm a bhyve noob). > > I'll report if it works. > > Thanks, > Russell > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42870245-d3c6-be29-242b-67b7697d7402>