I would investigate why that script exit with errno 127, e.g. http://tldp.org/LDP/abs/html/exitcodes.html
On Thu, Mar 5, 2015 at 6:09 AM, Anjali Kulkarni <[email protected]> wrote: > This is what I get: > > lxc-start 1425510589.285 INFO lxc_conf - Executing script > '/home/ubuntu/tmp.sh' for container Œc11', config section 'lxc' > lxc-start 1425510589.289 ERROR lxc_conf - Script exited with > status 127 > lxc-start 1425510589.289 ERROR lxc_start - failed to run start > hooks for container Œc11'. > lxc-start 1425510589.289 ERROR lxc_sync - invalid sequence number > 1. expected 4 > lxc-start 1425510589.289 ERROR lxc_start - failed to spawn Œc11' > lxc-start 1425510589.290 ERROR lxc_cgfs - Device or resource busy > - cgroup_rmdir: failed to delete /cgroup/lxc/c11-1 > > For some reason, it creates another container with ³-1² suffix. > ls /cgroup/lxc/ > Shows: > > c11 > c11-1 > > > Before starting this container, there was no c11 or c11-1. > > ThANKS > Anjali > > > > On 3/4/15, 2:36 PM, "Fajar A. Nugraha" <[email protected]> wrote: > >>On Thu, Mar 5, 2015 at 2:52 AM, Anjali Kulkarni <[email protected]> >>wrote: >>> Thanks, that does not work either. >>> Is this broken? >> >>Works for me. >> >>Try "lxc-start -o /tmp/lxc-start.log -l debug -n container_name", and >>then read the log file. Mine says >> >>... >> lxc-start 1425508479.812 INFO lxc_cgmanager - >>cgmanager.c:cgm_setup_limits:1257 - cgroup limits have been setup >> lxc-start 1425508479.812 INFO lxc_apparmor - >>lsm/apparmor.c:apparmor_process_label_set:187 - changed apparmor >>profile to lxc-container-default >> lxc-start 1425508479.812 INFO lxc_conf - >>conf.c:run_script_argv:345 - Executing script '/root/start.sh' for >>container 'v', config section 'lxc' >> lxc-start 1425508479.817 NOTICE lxc_start - start.c:start:1232 >>- exec'ing '/sbin/init' >> lxc-start 1425508479.817 NOTICE lxc_start - >>start.c:post_start:1243 - '/sbin/init' started with pid '2506' >>... >> >>/root/start.sh is under container rootfs, an executable shell script. >>My guess is you're missing something simple like "chmod 700" >> >>-- >>Fajar > _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
