[Bug 1544157] Re: lxc exec not working in xenial

2020-03-25 Thread Stéphane Graber via ubuntu-bugs
** Changed in: lxc (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage notifications about th

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-21 Thread Stéphane Graber
** No longer affects: lxd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage notifications about this bug go to: https://bugs.launchpad.n

Re: [Bug 1544157] Re: lxc exec not working in xenial

2016-02-16 Thread Serge Hallyn
Oh, yeah, systemd will start it when lxd starts. Please start lxd first (by doing a 'lxc list'), then stop cgmanager and try again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-16 Thread kevin gunn
so i did kg@kg-MacBookPro:~$ sudo systemctl stop cgmanager kg@kg-MacBookPro:~$ sudo systemctl status cgmanager.service ● cgmanager.service - Cgroup management daemon Loaded: loaded (/lib/systemd/system/cgmanager.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 201

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-15 Thread Serge Hallyn
Apparently the fixes we need should already be in the xenial lxc packages. Could you please try (in one root terminal) systemctl stop cgmanager then see whether you're still able to start apps? (If not, then in that terminal again do 'systemctl start cgmanager') -- You received this bug noti

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-15 Thread Serge Hallyn
** Changed in: lxd (Ubuntu) Status: Incomplete => Fix Committed ** Also affects: lxc (Ubuntu) Importance: Undecided Status: New ** Changed in: lxc (Ubuntu) Status: New => Fix Committed ** Changed in: lxd (Ubuntu) Importance: Undecided => High ** Changed in: lxc (Ubunt

Re: [Bug 1544157] Re: lxc exec not working in xenial

2016-02-15 Thread Serge Hallyn
Thanks. fwiw we need at least up to commit 3939a22a481 from git to fix this. I'll mark it fix committed as the fix is in git and ppa, and will hit xenial with the next merge. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bu

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-15 Thread kevin gunn
so i updated and rebooted, but my cgmanager is already running. so i did lxc exec just fine. would be nice to link the fix to this...but otherwise, i'd consider this bug closed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://b

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-12 Thread kevin gunn
it is quite possible - so ironically i had to enable & start cgmanager for testing unity8-desktop, there's a bug where apps fail to launch on the unity8-desktop-session-mir bug 1535058 so i had restarted it already, and just tried to lxc exec and it worked fine. i will reboot sometime later, and s

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-12 Thread Stéphane Graber
We got a similar report on IRC where "systemctl restart cgmanager" somehow helped, does that make any difference for you? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not wo

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
huh app armor denial in dmesg? also, the sudo chroot /var/lib/lxd/containers/xen/rootfs /bin/bash seemed to work -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working i

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
dmesg kg@kg-MacBookPro:~$ lxc exec xen -- /bin/bash kg@kg-MacBookPro:~$ dmesg [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Initializing cgroup subsys cpuacct [0.00] Linux version 4.4.0-2-generic (buildd@lgw01-12) (gcc version

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
The following may be interesting too: sudo chroot /var/lib/lxd/containers/xen/rootfs /bin/bash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
Okay, so the binary is there but it's failing to execute for some reason... The return = -1 hints that the kernel failed to exec the binary. Can you paste "dmesg" and also try lxc exec xen /bin/static-sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is sub

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
Nevermind the static-sh thing, it's not installed by default in that image. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage notifications about

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
thanks guys.../bin/bash is there, here's the debug kg@kg-MacBookPro:~$ sudo ls -lh /var/lib/lxd/containers/xen/rootfs/bin/bash -rwxr-xr-x 1 10 10 1014K Aug 31 18:27 /var/lib/lxd/containers/xen/rootfs/bin/bash kg@kg-MacBookPro:~$ kg@kg-MacBookPro:~$ kg@kg-MacBookPro:~$ kg@kg-MacBookPro:

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
sudo ls -lh /var/lib/lxd/containers/xen/rootfs/bin/bash lxc exec xen --debug -- /bin/bash lxc exec xen --debug -- /bin/sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not wo

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
thanks! here's the first few queries kg@kg-MacBookPro:~$ lxc start xen kg@kg-MacBookPro:~$ lxc list +--+-+--+--+---+---+ | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS | +--+-+--+--+

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
and the strace ** Attachment added: "xx" https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1544157/+attachment/4568840/+files/xx -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lx

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Serge Hallyn
What do the following show exactly: ps -ef lxc info xen for the 'Init:' line in the previous output, ls -l /proc//root/proc strace -f -oxx lxc exec xen -- bash (and attach the 'xx' file which that created) -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread kevin gunn
any hints on how can i debug further - i was heavily relying on this, and after updating yesterday it doesn't work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
On a clean Xenial install here: ubuntu@canonical-lxd:~$ lxc remote add images images.linuxcontainers.org ubuntu@canonical-lxd:~$ lxc init images:ubuntu/xenial/amd64 xen Creating xen Retrieving image: 100% ubuntu@canonical-lxd:~$ lxc start xen ubuntu@canonical-lxd:~$ lxc exec xen -- /bin/bash root@

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Tycho Andersen
I've heard reports of this on ppc64el as well; I thought it was just there, but perhaps not. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage no

[Bug 1544157] Re: lxc exec not working in xenial

2016-02-10 Thread Stéphane Graber
** Package changed: lxc (Ubuntu) => lxd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1544157 Title: lxc exec not working in xenial To manage notifications about this bug go to: https://bu