[vserver] Sound devices under vservers?

From: Andrew Ruthven <andrew.ruthven_at_catalyst.net.nz>
Date: Wed 07 Sep 2016 - 12:33:48 BST
Message-ID: <1473248028.5465.5.camel@catalyst.net.nz>

Hey,

I run slimserver and squeezelite within a vserver, and until recently
they've worked nicely. But now squzeelite (which actually plays the
music out a soundcard) has stopped working.

The only thing I can think of which has change is the kernel version.

Platform:     Debian Jessie (both host and container)
Init:         sysvinit
Old kernel:   vmlinuz-3.4.89-vs2.3.3.9+lihas1
New kernel:   vmlinuz-4.1.19-vs2.3.8.4-beng
util-vserver: 0.30.216-pre3126-jessie0.1-1

The files in /dev/snd within the container still match what is on the
hypervisor.

Running strace when I start squeezelite gives me:

open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
ioctl(4, SNDRV_CTL_IOCTL_CARD_INFO or UI_DEV_CREATE, 0x7ffcc50789d0) =
-1 ENOTTY (Inappropriate ioctl for device)

Has the approach to allow access to sound cards changed?  This is a PCI
device.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
MIITP, ITCP
At work: andrew.ruthven@catalyst.net.nz
At home: andrew@etc.gen.nz
Cloud  : NZs only real cloud - https://catalyst.net.nz/cloud
GPG fpr: C603 FC4E 600F 1CEC D1C8  D97C 4B53 D931 E4D3 E863
LCA2017: The Future of Open Source, Hobart, AU - http://linux.conf.au
Received on Wed Sep 7 12:32:41 2016
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 07 Sep 2016 - 12:32:41 BST by hypermail 2.1.8