Sound in VirtualBox from MacOS X Host

Lack of sound has been a big drag on my day to day use of OpenSolaris, often forcing me to return to OS X when I need to hear something. Earlier today Gregg pointed me to New OSS Drivers Fix Sound Issues in OpenSolaris on Mac OS X - and lo and behold - they do - at least in VirtualBox

Some other things to note is that in VirtualBox for Mac OS X, the audio is disabled by default. To enable the audio, select Settings (the OpenSolaris virtual machine must be powered down) and then Audio. Select Enable Audio and set the Host Audio Driver to CoreAudio:

Leave the Audio Controller as ICH AC97. Now when you start OpenSolaris, it will believe it has the Intel AC97 audio controller. If you installed the OSS drivers w/out first enabling the audio, you can run ossdetect to rediscover the devices. If all goes well, you should see the audio driver in the Device Driver Utility:

You can also run osstest to ensure the package is correctly installed:

bleonard@opensolaris:~$ osstest
Sound subsystem and version: OSS 4.0 (b1016/200806171344) (0x00040003)
Platform: SunOS/i86pc 5.11 snv_86

\*\*\* Scanning sound adapter #-1 \*\*\*
/dev/oss/ich0/pcm0 (audio engine 0): Intel ICH (2415)
Note! Device is in use (by PID 0/VMIX) but will try anyway
- Performing audio playback test... 
  <left> OK <right> OK <stereo> OK <measured srate="" 47860.00="" hz="" (-0.29%)=""> 

\*\*\* All tests completed OK \*\*\*
bleonard@opensolaris:~$ 
I also tested this build of OSS (1016) on my native installation of OpenSolaris and was disappointed that I still hear silence. Oh well, I'll try once again when OSS build 1017 is released.
Comments:

Great:)

Posted by javathreads on August 13, 2008 at 01:12 AM GMT #

I am using OpenSolaris VDI via VirtualBox on a windows vista system. But somehow my Solaris never picks up any audio hardware. All it says is "No Gstreamer plugin and devices found"
Plz help

Posted by udit on October 04, 2008 at 12:30 AM GMT #

The forums at virtualbox.org might have some information that would help, in particular this thread: http://forums.virtualbox.org/viewtopic.php?t=8569&sid=401d5df5b1100324a3b6d767bab4259c

Posted by Gregg Sporar on October 07, 2008 at 10:17 AM GMT #

But when I tried in OpenSolaris 11,it was working but performace of the VM is so bad,I had to uninstall OSS!

Posted by jywang on November 21, 2008 at 05:51 AM GMT #

Doesn't work for me unfortunately (with 2008.05 or 2008.11)-- works for the first app that tries to play a sound, alright, but after that, I just get a "device busy" error.

Posted by Calum Benson on January 15, 2009 at 07:10 AM GMT #

Thanks for this info. I wasn't sure how to go about getting sound working. I followed your procedure and now it seems to be working, but I'm seeing one glitch. When I shut down my VirtualBox VM and restart it, and then when OpenSolaris comes back up, it's not recognizing the OSS driver (i.e., Device Driver Utility can't find it). I run ossdetect and that fixes the problem. Any idea how to make OSS permanently recognizable?

Posted by alan mcclellan on January 15, 2009 at 09:38 AM GMT #

Follow-up to my previous comment...not sure what I did, but now looks like the OSS driver is routinely recognized. Problem solved. :-)

Posted by Alan McClellan on January 20, 2009 at 09:55 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today