I run two non-global zones on my workstation - one for web/dns/blog, and one for my VPN connection to Sun. Yesterday realised that there was an internal webcast I really needed to listen, so I started playing around with audio in the zone. First off, there wasn't any audio output. No /dev/audio* or /dev/sound/*.

After a bit of searching, I found that I should add a "set match" option to my zonecfg:


# zoneadm -z knockout
zonecfg:knockout> add device
zonecfg:knockout:device> set match=/dev/sound/*
zonecfg:knockout:device> end
zonecfg:knockout> commit
zonecfg:knockout> exit
# zoneadm -z knockout boot

But that didn't work. I was rather annoyed at that point, so I logged 6701076 zones should not be sound proof!. Perhaps I was a bit hasty - the RE updated the bug overnight (my time) asking "Why didn't you do the obvious thing and add a 'set match=/dev/audio*' ?"

Which was the "well, duh!" moment for me. Boy do I feel like a nong:


# zoneadm -z knockout halt
# zoneadm -z knockout
# zonecfg -z knockout
zonecfg:knockout> add device
zonecfg:knockout:device> set match=/dev/audio*
zonecfg:knockout:device> end
zonecfg:knockout> commit
zonecfg:knockout> exit
# zoneadm -z knockout boot

/me looks around sheepishly.... it works :-)

Comments:

LOL

We all have these moments. ;)

More so as I get older... ahem

Posted by Dave on May 15, 2008 at 02:28 AM EST #

Post a Comment:
Comments are closed for this entry.

This blog copyright 2009 by jmcp