[lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-21 Thread Jäkel , Guido
Dear all, this is my 2nd try to get an "Ubuntu Desktop" container running on a hosting server using "Gentoo" at home. The server is used as a router, media server, audio player. It is used and administrated "headless" via ssh. But it's hardware is a vanilla PC and now it also should be usable

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-23 Thread Guido Jäkel
Dear all, i move forward a first step, now I get a user session if i log in via ssh. The issue was, that there was no systemd cgroup mounted. This is done by /etc/init/systemd-logind.conf , but this (trusty) version, it is inhibited in a container. Because i have lxcfs running on the host, I

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-25 Thread Alain St-Denis
Hi, I experience the exact same problem. Similar setup (wily host, elementary freya container). No user session is created when I login the desktop so polkit won't grant elevated privileges. In the container, /proc/1/cgroup shows: 10:cpu,cpuacct:/lxc/topaze 9:freezer:/lxc/topaze 8:devices:/lxc

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-25 Thread Serge Hallyn
Quoting Alain St-Denis (al...@zenfolie.org): > Hi, > > I experience the exact same problem. Similar setup (wily host, elementary > freya container). No user session is created when I login the desktop so > polkit won't grant elevated privileges. > > In the container, /proc/1/cgroup shows: > >

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-26 Thread Alain St-Denis
Le 2016-01-26 02:55, Serge Hallyn a écrit : > Quoting Alain St-Denis (al...@zenfolie.org): >> Hi, >> >> I experience the exact same problem. Similar setup (wily host, elementary >> freya container). No user session is created when I login the desktop so >> polkit won't grant elevated privileges

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-02-08 Thread Alain St-Denis
Hi, I was able to work around the issue. There appear to be two reasons why the polkit authentication agent can't find a user session. First, no session can be created if /dev/tty0 doesn't exist as per this code in systemd-204/src/login/logind.c manager_connect_console: if (access("/dev/tty0", F_

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-02-08 Thread Serge Hallyn
Quoting Alain St-Denis (al...@zenfolie.org): > Hi, > > I was able to work around the issue. There appear to be two reasons why > the polkit authentication agent can't find a user session. First, no > session can be created if /dev/tty0 doesn't exist as per this code in > systemd-204/src/login/logi