ContainerBox icon indicating copy to clipboard operation
ContainerBox copied to clipboard

Can multiple users of a Linux desktop "server" all access the same ContainerBox container GUI & all have audio?

Open bmullan opened this issue 7 years ago • 2 comments

Alexandre

I was wondering how/whether multiple simultaneous users of a desktop linux system could access the same LXD container's Desktop GUI created by ContainerBox all have audio?

At first thought I figured this might not be possible because of the pulseaudio proxy device.

I saw that your script for ContainerBox from what I could see for

ContainerBox configure sound <container_name> pa_enable

only installs it for the "current" (ie the installing UserID).

I had no problem running "ContainerBox start" for a 2nd user but there was obviously no audio. If I attempted to execute

ContainerBox config sound <container_name> pa_enable for User #2 that fails indicating that device already exists !

But would it be possible for say users 1, 2 etc ?

Obviously user #1 would create, start the ContainerBox & "config sound pa_enable" but what about user's #2, etc in regards to audio?

Hope this isn't a dumb question but I wanted to ask as it would be great to

Brian

bmullan avatar Sep 07 '18 17:09 bmullan

Hi Brian,

Pulseaudio is started with the users sessions, and (from what I understand) every user has its own pulse server, so I'm not sure it is a good idea to run simultaneously on one of the users' server.

You could maybe passthrough the sound card (snd_enable) and configure pulseaudio inside the guest (I haven't tested though)

AlexandreDey avatar Sep 12 '18 07:09 AlexandreDey

Alexandre

Thats correct I think regarding Pulseaudio when it runs in "user" mode. It does also support a "system" mode but I've never gotten that to work quite right myself.

In the container tho' you can install/run pulseaudio also but then since there is no sound card you as you suggested would have to pass the sound card thru.

Send me a direct email to my gmail ID as I have had a remote desktop solution that I'd worked on for a few years that now runs in LXD containers on a cloud server (I use AWS, Digital Ocean & Hetzner). The Host I connect to can have many LXD containers with a variety of desktop environments (I use Mate, XFCE4 & Budgie) but I finally (after 3 yrs) figured out my last nagging problem of getting the audio to work from the containers w/out having the user required to keep a Host session alive as well.

I can set you up w/a login ID to several of the containers so you could see what I have going if you are curious.

Brian

On Wed, Sep 12, 2018 at 3:34 AM AlexandreDey [email protected] wrote:

Hi Brian,

Pulseaudio is started with the users sessions, and (from what I understand) every user has its own pulse server, so I'm not sure it is a good idea to run simultaneously on one of the users' server.

You could maybe passthrough the sound card (snd_enable) and configure pulseaudio inside the guest (I haven't tested though)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AlexandreDey/ContainerBox/issues/9#issuecomment-420543956, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtpzQ1cRrjsZsSFopggpy_luW0f4qCks5uaLkWgaJpZM4WfMKn .

bmullan avatar Sep 12 '18 11:09 bmullan