[lxc-users] Unable to launch a LXC container

2016-04-08 Thread Muneeb Ahmad
I'm trying to run LXC containers on ubuntu mate 15.10 on a raspberry pi 2. The LXD and LXD-client versions are 2.0.0.rc9. Whenever I try to launch a container, I get this error: error: Error calling 'lxd forkstart test02 /var/lib/lxd/containers /var/log/lxd/test02/lxc.conf': err='exit status 1' T

[lxc-users] Unable to launch a LXC container

2016-12-10 Thread Hemavathi Lakkalapudi
Hello All, I am trying to run openWRT Chaos Calmer 15.05 with Malta in a LXC container on Gateway which is MIPS based target. Generated openWRT image with default configuration for MIPS target to run in the container .. I created a container name maltab under /lxc and placed into the files direct

Re: [lxc-users] Unable to launch a LXC container

2016-04-08 Thread Serge Hallyn
Your kernel doesn't support user namespaces. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Unable to launch a LXC container

2016-04-08 Thread Muneeb Ahmad
Thanks for the answer. Is there a work around for this? Or should I just go for some other OS? On Sat, Apr 09, 2016 at 2:41 AM, Serge Hallyn < serge.hal...@ubuntu.com [serge.hal...@ubuntu.com] > wrote: Your kernel doesn't support user namespaces. ___

Re: [lxc-users] Unable to launch a LXC container

2016-04-08 Thread Serge Hallyn
Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > Thanks for the answer. Is there a work around for this? Or should I > just go for some other OS? Sorry I don't know the recommended way to build/use a custom kernel in mint. Actually, check /proc/sys/kernel/*user*. Is there something like unpri

Re: [lxc-users] Unable to launch a LXC container

2016-04-08 Thread Muneeb Ahmad
It's not in there. Do you have any Raspberry pi OS recommendations for me? I'm interested in running lxc containers and openstack(nova only)? Thanks. On Sat, Apr 09, 2016 at 2:51 AM, Serge Hallyn < serge.hal...@ubuntu.com [serge.hal...@ubuntu.com] > wrote: Quoting Muneeb Ahmad (muneeb.ganda..

Re: [lxc-users] Unable to launch a LXC container

2016-04-08 Thread Serge Hallyn
Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > It's not in there. > Do you have any Raspberry pi OS recommendations for me? I'm This is a rpi , not 2 or 3, so ubuntu isn't an option? But debian is, right? And their kernel should have the userns_allow_unpriv or whatever sysctl, which would l

Re: [lxc-users] Unable to launch a LXC container

2016-04-09 Thread Muneeb Ahmad
I'm using Raspberry pi 2 actually. And I'll take a look at debian and see if their kernel have the userns_allow_unpriv option. On Sat, Apr 9, 2016 at 9:00 AM, Serge Hallyn wrote: > Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > > It's not in there. > > Do you have any Raspberry pi OS recomm

Re: [lxc-users] Unable to launch a LXC container

2016-04-09 Thread Serge Hallyn
Ok, fwiw rpi2 should work with Ubuntu as well iiuc. Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > I'm using Raspberry pi 2 actually. And I'll take a look at debian and see > if their kernel have the userns_allow_unpriv option. > > On Sat, Apr 9, 2016 at 9:00 AM, Serge Hallyn > wrote: > >

Re: [lxc-users] Unable to launch a LXC container

2016-04-15 Thread Muneeb Ahmad
I updated the kernel for user namespaces and everything is enabled when I run "lxc-checkconfig". But I encountered the same error when I tried to run a container. Container log shows different errors now: Name: ubuntu-test Architecture: armv7l Created: 2016/04/10 21:41 UTC Status: Stopped Type

Re: [lxc-users] Unable to launch a LXC container

2016-04-15 Thread Serge Hallyn
/usr/share/lxcfs/lxc.mount.hook failed. Can you please who us its contents? What are your versions of lxc and lxcfs? Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > I updated the kernel for user namespaces and everything is enabled when I > run "lxc-checkconfig". But I encountered the same e

Re: [lxc-users] Unable to launch a LXC container

2016-04-20 Thread Muneeb Ahmad
lxcfs=2.0.0 lxc=2.0.0.rc9 And the contents of lxc.mount.hook are; #!/bin/sh -e # We're dealing with mount entries, so expand any symlink LXC_ROOTFS_MOUNT=$(readlink -f *${LXC_ROOTFS_MOUNT}*) # /proc files if [ -d /var/lib/lxcfs/proc/ ]; then for entry in /var/lib/lxcfs/proc/*; do

Re: [lxc-users] Unable to launch a LXC container

2016-04-20 Thread Muneeb Ahmad
Any ideas? Has this anything to do with CGManager? and this is what lxcfs status show: *●* lxcfs.service - FUSE filesystem for LXC Loaded: loaded (/lib/systemd/system/lxcfs.service; enabled; vendor preset: enabled) Active: *active (running)* since Wed 2016-04-20 11:17:05 PKT; 53min ago M

Re: [lxc-users] Unable to launch a LXC container

2016-04-20 Thread Serge Hallyn
Hi, edit that script to do 'set -x', so that we can see what the script is doing in the container debug log. Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > lxcfs=2.0.0 > lxc=2.0.0.rc9 > And the contents of lxc.mount.hook are; > > #!/bin/sh -e > > > # We're dealing with mount entries, so e

Re: [lxc-users] Unable to launch a LXC container

2016-04-25 Thread Muneeb Ahmad
I'm not getting this lxc.mount.hook problem anymore. Maybe because I restart the lxcfs. There are a little different errors this time and fewer ones. It has something like 'Error loading the seccomp policy'. And there are some permissions related errors above. The log look like this now, I'm highli

Re: [lxc-users] Unable to launch a LXC container

2016-04-25 Thread Serge Hallyn
Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): ... > lxc 20160421151846.936 ERRORlxc_utils - utils.c:mkdir_p:253 > - Permission denied - failed to create directory > '/usr/lib/arm-linux-gnueabihf/lxc/sys/firmware/efi/' > ... > lxc 20160421151846.937 ERRORlxc_util

Re: [lxc-users] Unable to launch a LXC container

2016-04-26 Thread Muneeb Ahmad
Probably it is an architecture problem. seccomp is enabled in kernel and lxc-checkconfig shows everything enabled too. Though there's no security in /sys/kernel. I managed to run containers when I told LXD to ignore the policy by "lxc profile set default raw.lxc lxc.seccomp=". I would like to write

Re: [lxc-users] Unable to launch a LXC container

2016-04-27 Thread Serge Hallyn
Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > Probably it is an architecture problem. seccomp is enabled in kernel and > lxc-checkconfig shows everything enabled too. Though there's no security in > /sys/kernel. > I managed to run containers when I told LXD to ignore the policy by "lxc > prof

Re: [lxc-users] Unable to launch a LXC container

2016-04-27 Thread Stéphane Graber
On Wed, Apr 27, 2016 at 02:27:58PM +, Serge Hallyn wrote: > Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > > Probably it is an architecture problem. seccomp is enabled in kernel and > > lxc-checkconfig shows everything enabled too. Though there's no security in > > /sys/kernel. > > I manag

Re: [lxc-users] Unable to launch a LXC container

2016-04-28 Thread Muneeb Ahmad
I'm using ubuntu mate 15.10 and 4.6.0-rc1-v7+ kernel. On Wed, Apr 27, 2016 at 7:27 PM, Serge Hallyn wrote: > Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > > Probably it is an architecture problem. seccomp is enabled in kernel and > > lxc-checkconfig shows everything enabled too. Though the

Re: [lxc-users] Unable to launch a LXC container

2016-04-28 Thread Serge Hallyn
Is it possible for you to try with the Ubuntu xenial kernel 4.4.0-21.37 ? Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com): > I'm using ubuntu mate 15.10 and 4.6.0-rc1-v7+ kernel. > > On Wed, Apr 27, 2016 at 7:27 PM, Serge Hallyn > wrote: > > > Quoting Muneeb Ahmad (muneeb.ganda...@gmail.com):