Page 1 of 1

OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 4. Jul 2016, 10:58
by 3eka
Hi All,

I am using OpenIndiana /hipster release (detected by VirtualBox as snv_151) and with upgrade from 5.0.22 to 5.0.24 I have lost sound on all guest:

If I check VBox.log (grep -i audio VBox.log)
5.0.22:

00:00:00.461167 Audio: WARNING: Solaris Audio is deprecated, please switch to OSS!
00:00:00.461197 Audio: Automatically setting host audio backend to OSS
00:00:00.471797 [/Devices/hda/0/AudioConfig/] (level 4)
00:00:00.471800 Driver <string> = "AUDIO" (cb=6)
00:00:00.471802 Driver <string> = "OSSAudio" (cb=9)
00:00:00.471807 Driver <string> = "AUDIO" (cb=6)
00:00:00.471809 Driver <string> = "AudioVRDE" (cb=10)
00:00:00.471812 AudioDriver <string> = "AudioVRDE" (cb=10)
00:00:00.635398 Audio: Initializing OSS driver
00:00:00.635409 Audio: Host audio backend supports 64 output streams and 64 input streams at once
00:00:00.635419 Audio: Initializing VRDE driver
00:00:00.635425 Audio: Host audio backend supports 1 output streams and 2 input streams at once

5.0.24:

00:00:00.404643 [/Devices/hda/0/AudioConfig/] (level 4)
00:00:00.404646 Driver <string> = "AUDIO" (cb=6)
00:00:00.404648 Driver <string> = "NullAudio" (cb=10)
00:00:00.404653 Driver <string> = "AUDIO" (cb=6)
00:00:00.404655 Driver <string> = "AudioVRDE" (cb=10)
00:00:00.404658 AudioDriver <string> = "AudioVRDE" (cb=10)
00:00:00.556910 Audio: Initializing NULL driver
00:00:00.556920 Audio: Host audio backend supports 1 output streams and 2 input streams at once
00:00:00.556930 Audio: Initializing VRDE driver
00:00:00.556938 Audio: Host audio backend supports 1 output streams and 2 input streams at once

No OS changes made, just install/upgrade of VirtualBox. What ever sound driver I choose (have "Solaris Audio" and "OSS Audio", as well as "Null Audio" drivers) - it is always set to "Null Audio" and there is no sound in guest (tested Win7, Win10, CentOS6)

According to Changelog#v24 - nothing suggests what can cause this problem.

Anyone has idea?
Regards.

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 13:32
by mnespen
Hi,
I have the exact same configuration, and ... the exact same problem.
- reverted to 5.0.22 fixed the problem, but I'm hoping someone finds a workaround for .24

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 15:05
by pentagonik
Can you please attach the VM's configuration file (ends with .vbox) here?

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 15:17
by mnespen
Hi,
I don't see what you can do with this? All my VM's looses sound when upgrading to 5.0.24-r108355.
The OSS driver in this setup is just removed and replaced with Null driver.

(just like the the original posting)
My HostOS: 5.11 illumos-c770959 i86pc i386 i86pc Solaris

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 15:22
by pentagonik
Thanks for the file -- this file is after you upgraded to 5.0.24 and ran the guest, right? Just wanted to make sure that the audio driver was set correctly.

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 15:34
by mnespen
No, this file was after:
1 running 5.0.22 - sound works fine
2 upgrade to 5.0.24, sound do NOT work
3 revert to 5.0.22

Here is two new files:
ubuntu1404.vbox.24.preboot.txt : right after upgrading from a working .22
ubuntu1404.vbox.24.postboot.txt : right after bootuyp, and shutdown - no audio working

$ diff ubuntu1404.vbox.24.postboot.txt ubuntu1404.vbox.24.preboot.txt
9c9
< <Machine uuid="{580ff396-8ea6-43fb-8ce0-cd6424af072f}" name="ubuntu1404" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2016-07-07T13:30:17Z">
---
> <Machine uuid="{580ff396-8ea6-43fb-8ce0-cd6424af072f}" name="ubuntu1404" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2016-07-07T09:37:03Z">
141c141
< <AudioAdapter controller="AC97" driver="Null" enabled="true"/>
---
> <AudioAdapter controller="AC97" driver="OSS" enabled="true"/>
167c167
< <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1467898159055271000" flags=""/>
---
> <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1467884223568533000" flags=""/>

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 16:00
by mnespen
Looks like it is written back to the xml-file at the same time sound is started on the VM.
while true ; do
> sleep 1
> cat ubuntu1404.vbox | grep AudioAdapter
> done

<AudioAdapter controller="AC97" driver="OSS" enabled="true"/>
<AudioAdapter controller="AC97" driver="OSS" enabled="true"/>
<AudioAdapter controller="AC97" driver="OSS" enabled="true"/>
<AudioAdapter controller="AC97" driver="Null" enabled="true"/>
<AudioAdapter controller="AC97" driver="Null" enabled="true"/>
<AudioAdapter controller="AC97" driver="Null" enabled="true"/>

Another check, showed me that if I reverted the xml-file (to OSS), the GUI still showed "Null", and when I tried to change this via GUI to OSS, it changed it to Null in the XML-file.

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 17:38
by pentagonik
We just reproduced the issue and a new test build will come soon for you to check out. Thanks!

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 18:11
by pentagonik
We have a new test build for Solaris available:
https://www.virtualbox.org/download/tes ... nOS.tar.gz

This should fix the audio issues on Solaris hosts. The fix also will be included in the next upcoming maintenance version.

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 7. Jul 2016, 18:25
by mnespen
!!
works like a charm!

thx, superb service

Re: OpenIndiana (aka Solaris) host, VirtualBox 5.0.24 removes sound driver for guest

Posted: 8. Jul 2016, 10:43
by pentagonik
Glad it works again, and thanks for verifying!