LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-28-2019, 03:44 PM   #1
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
OpenBSD in VM and sound


I have latest OpenBSD 6.6 installed in VirtualBox. with latest patches
Quote:
doas syspatch -l
001_bpf
002_ber
All works except sound.
I tried AC97 and Intel HD Audio without success.
Both drivers are visible but no sound is produced when playing mp4 or wav.

I understand that OpenBSD is not supporting VirtualBox (no client) so obviously if there is no solution the the problem that is o.k.

I am hoping that maybe there is some sort of trick (sa the one I am using to run OpenBSD in VM in full screen) which will let me enable sound.

this is an output from mixerctl with VM with enabled Intel HD Audio (azalia)

Quote:
inputs.dac-6:7_mute=off
inputs.dac-6:7=254,254
inputs.dac-2:3_mute=off
inputs.dac-2:3=254,254
inputs.dac-4:5_mute=off
inputs.dac-4:5=254,254
inputs.dac-0:1_mute=off
inputs.dac-0:1=254,254
record.dig-adc-0:1_sou=SPDIF-in
outputs.hp_source=dac-6:7
outputs.hp_dir=output
outputs.hp_boost=off
outputs.spkr_source=dac-4:5
outputs.spkr_dir=output
outputs.spkr2_source=dac-2:3
outputs.spkr2_dir=output
outputs.mic_source=dac-6:7
outputs.mic_dir=input-vr80
outputs.mic_boost=off
outputs.spkr3_source=dac-0:1
outputs.spkr3_mute=off
outputs.spkr3=254,254
outputs.spkr3_dir=output
outputs.SPDIF_source=dig-dac-0:1
outputs.SPDIF-in_eapd=on
inputs.sel_source=line-in
inputs.sel2_source=cd
record.adc-0:1_source=sel
record.adc-0:1_mute=off
record.adc-0:1_sel=126,126
record.adc-2:3_source=sel2
record.adc-2:3_mute=off
record.adc-2:3_sel2=126,126
outputs.hp_sense=unplugged
outputs.spkr_sense=plugged
outputs.spkr2_sense=plugged
outputs.mic_sense=plugged
outputs.line-in_sense=unplugged
outputs.SPDIF-in_sense=unplugged
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-6:7,dac-0:1,spkr3
outputs.mode=analog
record.mode=analog
record.enable=sysctl
thank you,
 
Old 11-09-2019, 07:57 PM   #2
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Original Poster
Rep: Reputation: Disabled
installed and configured pulseaudio

now sound works
 
Old 01-05-2021, 04:59 PM   #3
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
I opted to use sndiod instead of installing pulseaudio.

Compiled sndiod in Linux (host) and set it listening

sndiod -f rsnd/1 -L-

... that's for sound card 1 (running alsa), use rsnd/0 if you're using card 0 for sound.

Then in OpenBSD (guest booted using kvm/qemu), you can run for instance AUDIODEVICE=snd@192.168.1.5/0 firefox-esr to have the sndio forwarded to the Linux (hosts) IP (192.168.1.5 in this example).

Or just export AUDIODEVICE in OpenBSD
export AUDIODEVICE=snd@192.168.1.5/0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD: nvidia drivers, screen resolution and FreeBSD binaries on OpenBSD ::: *BSD 2 08-21-2009 04:18 AM
LXer: Fsck errors in the Linux filesystem on my OpenBSD laptop NOT caused by OpenBSD LXer Syndicated Linux News 1 08-31-2008 03:15 AM
LXer: OpenBSD: The OpenBSD Foundation LXer Syndicated Linux News 0 07-26-2007 10:31 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 5 04-08-2005 07:09 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 08:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration