2

I am trying to run Centos containers in Ubuntu 14.10 Utopic and also Ubuntu 14.04 trusty. I created the container in several different ways and no matter what it won't start and spits those lines:

# lxc-start -n centos1 -F
init: Failed to spawn lxc-sysinit pre-start process: unable to set priority: Permission denied
init: Failed to spawn rcS pre-start process: unable to set priority: Permission denied
init: Failed to spawn rcS post-stop process: unable to set priority: Permission denied

I searched here and there and I found some things. I tried adding those lines in the config one by one and all of them:

lxc.aa_allow_incomplete = 1
lxc.aa_profile = unconfined
lxc.kmsg = 0

I also tried different ways to create the container:

lxc-create -n centos1 -t download -- -d centos --release 6 -a i386
lxc-create -n centos1 -t centos

I also tried some other templates I found over there instead of the one that comes with ubuntu.

Any hints ? Thank you very much.

  • don't start and/or don't create lxc centos containers? – Yonsy Solis Jan 2 '16 at 6:01
  • The container is created, it just won't start – Francesc Guasch Jan 10 '16 at 7:29
0

How about trying these commands:

lxc remote add images 1.2.3.4
lxc launch images:centos/6/i386 test

You need to specify where these images will be found you can do this by specifying images: to launch.

| improve this answer | |
  • Hi Dimitrios, the containers got created, and the centos images where downloaded. Anyway, can you elaborate on the add images command ? What IP should I add ? – Francesc Guasch May 24 '17 at 16:59
  • The ip you should use is the 1.2.3.4 this is the one in order to use the oficial lxc container repository. – Dimitrios Desyllas May 24 '17 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.