Greetings, I am trying containers on busybox based file-system with kernel 3.12.
I have successfully cross-compiled the lxc-1.1.0 package, & able to run lxc-execute without any problem. Now I want to run linux with busybox template in container. I created a container under /var/lib/lxc/busybox_container. I can see config, fstab & rootfs file present there. But when I tried to start the container, I am getting the following error: (The full log is attached in a file) lxc-start 1414573214.442 DEBUG lxc_conf - conf.c:setup_caps:2139 - capabilities have been setup lxc-start 1414573214.442 NOTICE lxc_conf - conf.c:lxc_setup:3921 - 'bb' is setup. lxc-start 1414573214.442 NOTICE lxc_start - start.c:start:1232 - exec'ing '/sbin/init' lxc-start 1414573214.482 NOTICE lxc_start - start.c:post_start:1243 - '/sbin/init' started with pid '1896' lxc-start 1414573214.482 WARN lxc_start - start.c:signal_handler:307 - invalid pid for SIGCHLD I am login as a root in buysbox file system. and i have manually added the root into cgroups using following: for d in /sys/fs/cgroup/*; do mkdir $d/root chown -R root: $d/root echo $$ > $d/root/tasks done root@evm:/sys/fs/cgroup/cpuset# cat /proc/self/cgroup 7:freezer:/root 6:devices:/root 5:memory:/root 4:cpuacct:/root 3:cpu:/root 2:cpuset:/root Please help me in the issue. Thanks & Regards, Praveen L&T Technology Services Ltd www.LntTechservices.com<http://www.lnttechservices.com/> This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
lxc-start 1414572847.554 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /var/lib/lxc bb lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /var/lib/lxc bb lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuacct unknown to /var/lib/lxc bb lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /var/lib/lxc bb lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /var/lib/lxc bb lxc-start 1414572847.556 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /var/lib/lxc bb lxc-start 1414572847.558 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4 lxc-start 1414572847.599 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set lxc-start 1414572847.600 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4 lxc-start 1414572847.607 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer lxc-start 1414572847.638 INFO lxc_start - start.c:lxc_init:451 - 'bb' is initialized lxc-start 1414572847.671 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/ad055575fe28ddd5//var/lib/lxc lxc-start 1414572847.671 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 10 lxc-start 1414572847.681 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 50 lxc-start 1414572847.751 DEBUG lxc_start - start.c:__lxc_start:1130 - Not dropping cap_sys_boot or watching utmp lxc-start 1414572847.751 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgroupfs initing for bb lxc-start 1414572847.752 ERROR lxc_cgfs - cgfs.c:handle_cgroup_settings:2077 - Device or resource busy - failed to set memory.use_hierarchy to 1; continuing lxc-start 1414572847.770 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 100 lxc-start 1414572847.846 DEBUG lxc_conf - conf.c:setup_rootfs:1267 - mounted '/var/lib/lxc/bb/rootfs' on '/usr/local/lib/lxc/rootfs' lxc-start 1414572847.846 INFO lxc_conf - conf.c:setup_utsname:902 - 'bb' hostname has been setup lxc-start 1414572847.846 INFO lxc_conf - conf.c:mount_autodev:1131 - Mounting /dev under /usr/local/lib/lxc/rootfs lxc-start 1414572847.847 INFO lxc_conf - conf.c:mount_autodev:1152 - Mounted tmpfs onto /usr/local/lib/lxc/rootfs/dev lxc-start 1414572847.847 INFO lxc_conf - conf.c:mount_autodev:1170 - Mounted /dev under /usr/local/lib/lxc/rootfs lxc-start 1414572847.871 ERROR lxc_monitor - monitor.c:lxc_monitor_open:213 - connect : Connection refused lxc-start 1414572847.871 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start. lxc-start 1414572847.871 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode. lxc-start 1414572847.871 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options. lxc-start 1414572847.947 WARN lxc_conf - conf.c:mount_entry_on_absolute_rootfs:1874 - ignoring mount point '/dev/shm' lxc-start 1414572847.948 DEBUG lxc_conf - conf.c:mount_entry:1712 - remounting /lib on /usr/local/lib/lxc/rootfs/lib to respect bind or remount options lxc-start 1414572847.949 DEBUG lxc_conf - conf.c:mount_entry:1727 - (at remount) flags for /lib was 4096, required extra flags are 1 lxc-start 1414572847.949 DEBUG lxc_conf - conf.c:mount_entry:1762 - mounted '/lib' on '/usr/local/lib/lxc/rootfs/lib', type 'none' lxc-start 1414572847.951 DEBUG lxc_conf - conf.c:mount_entry:1712 - remounting /usr/lib on /usr/local/lib/lxc/rootfs/usr/lib to respect bind or remount options lxc-start 1414572847.951 DEBUG lxc_conf - conf.c:mount_entry:1727 - (at remount) flags for /usr/lib was 4096, required extra flags are 1 lxc-start 1414572847.951 DEBUG lxc_conf - conf.c:mount_entry:1762 - mounted '/usr/lib' on '/usr/local/lib/lxc/rootfs/usr/lib', type 'none' lxc-start 1414572847.951 INFO lxc_conf - conf.c:mount_entry:1701 - failed to mount '/sys/kernel/security' on '/usr/local/lib/lxc/rootfs/sys/kernel/security' (optional): No such file or directory lxc-start 1414572847.951 INFO lxc_conf - conf.c:mount_file_entries:2011 - mount points have been setup lxc-start 1414572847.998 INFO lxc_conf - conf.c:fill_autodev:1198 - Creating initial consoles under /usr/local/lib/lxc/rootfs/dev lxc-start 1414572847.999 INFO lxc_conf - conf.c:fill_autodev:1209 - Populating /dev under /usr/local/lib/lxc/rootfs lxc-start 1414572847.999 INFO lxc_conf - conf.c:fill_autodev:1241 - Populated /dev under /usr/local/lib/lxc/rootfs lxc-start 1414572847.999 INFO lxc_conf - conf.c:setup_dev_console:1492 - console has been setup lxc-start 1414572847.999 INFO lxc_conf - conf.c:do_tmp_proc_mount:3542 - I am 1, /proc/self points to '1' lxc-start 1414572848.002 DEBUG lxc_conf - conf.c:setup_rootfs_pivot_root:1109 - pivot_root syscall to '/usr/local/lib/lxc/rootfs' successful lxc-start 1414572848.003 DEBUG lxc_conf - conf.c:lxc_create_tty:3330 - allocated pty '/dev/pts/0' (9/12) lxc-start 1414572848.003 INFO lxc_conf - conf.c:lxc_create_tty:3341 - tty's configured lxc-start 1414572848.003 INFO lxc_conf - conf.c:setup_tty:1054 - 1 tty(s) has been setup lxc-start 1414572848.003 DEBUG lxc_conf - conf.c:setup_caps:2139 - capabilities have been setup lxc-start 1414572848.003 NOTICE lxc_conf - conf.c:lxc_setup:3921 - 'bb' is setup. lxc-start 1414572848.003 NOTICE lxc_start - start.c:start:1232 - exec'ing '/sbin/init' lxc-start 1414572848.050 NOTICE lxc_start - start.c:post_start:1243 - '/sbin/init' started with pid '2439' lxc-start 1414572848.050 WARN lxc_start - start.c:signal_handler:307 - invalid pid for SIGCHLD lxc-start 1414573214.051 WARN lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized lxc-start 1414573214.053 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /var/lib/lxc bb lxc-start 1414573214.053 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /var/lib/lxc bb lxc-start 1414573214.053 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuacct unknown to /var/lib/lxc bb lxc-start 1414573214.054 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /var/lib/lxc bb lxc-start 1414573214.054 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /var/lib/lxc bb lxc-start 1414573214.054 WARN lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /var/lib/lxc bb lxc-start 1414573214.055 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4 lxc-start 1414573214.088 DEBUG lxc_start - start.c:setup_signal_fd:259 - sigchild handler set lxc-start 1414573214.089 INFO lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4 lxc-start 1414573214.099 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer lxc-start 1414573214.127 INFO lxc_start - start.c:lxc_init:451 - 'bb' is initialized lxc-start 1414573214.161 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/ad055575fe28ddd5//var/lib/lxc lxc-start 1414573214.161 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 10 lxc-start 1414573214.171 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 50 lxc-start 1414573214.194 DEBUG lxc_start - start.c:__lxc_start:1130 - Not dropping cap_sys_boot or watching utmp lxc-start 1414573214.194 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgroupfs initing for bb lxc-start 1414573214.195 ERROR lxc_cgfs - cgfs.c:handle_cgroup_settings:2077 - Device or resource busy - failed to set memory.use_hierarchy to 1; continuing lxc-start 1414573214.221 ERROR lxc_monitor - monitor.c:lxc_monitor_open:208 - connect : backing off 100 lxc-start 1414573214.294 DEBUG lxc_conf - conf.c:setup_rootfs:1267 - mounted '/var/lib/lxc/bb/rootfs' on '/usr/local/lib/lxc/rootfs' lxc-start 1414573214.294 INFO lxc_conf - conf.c:setup_utsname:902 - 'bb' hostname has been setup lxc-start 1414573214.294 INFO lxc_conf - conf.c:mount_autodev:1131 - Mounting /dev under /usr/local/lib/lxc/rootfs lxc-start 1414573214.295 INFO lxc_conf - conf.c:mount_autodev:1152 - Mounted tmpfs onto /usr/local/lib/lxc/rootfs/dev lxc-start 1414573214.295 INFO lxc_conf - conf.c:mount_autodev:1170 - Mounted /dev under /usr/local/lib/lxc/rootfs lxc-start 1414573214.322 ERROR lxc_monitor - monitor.c:lxc_monitor_open:213 - connect : Connection refused lxc-start 1414573214.322 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start. lxc-start 1414573214.322 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode. lxc-start 1414573214.322 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options. lxc-start 1414573214.387 WARN lxc_conf - conf.c:mount_entry_on_absolute_rootfs:1874 - ignoring mount point '/dev/shm' lxc-start 1414573214.388 DEBUG lxc_conf - conf.c:mount_entry:1712 - remounting /lib on /usr/local/lib/lxc/rootfs/lib to respect bind or remount options lxc-start 1414573214.389 DEBUG lxc_conf - conf.c:mount_entry:1727 - (at remount) flags for /lib was 4096, required extra flags are 1 lxc-start 1414573214.389 DEBUG lxc_conf - conf.c:mount_entry:1762 - mounted '/lib' on '/usr/local/lib/lxc/rootfs/lib', type 'none' lxc-start 1414573214.391 DEBUG lxc_conf - conf.c:mount_entry:1712 - remounting /usr/lib on /usr/local/lib/lxc/rootfs/usr/lib to respect bind or remount options lxc-start 1414573214.391 DEBUG lxc_conf - conf.c:mount_entry:1727 - (at remount) flags for /usr/lib was 4096, required extra flags are 1 lxc-start 1414573214.391 DEBUG lxc_conf - conf.c:mount_entry:1762 - mounted '/usr/lib' on '/usr/local/lib/lxc/rootfs/usr/lib', type 'none' lxc-start 1414573214.391 INFO lxc_conf - conf.c:mount_entry:1701 - failed to mount '/sys/kernel/security' on '/usr/local/lib/lxc/rootfs/sys/kernel/security' (optional): No such file or directory lxc-start 1414573214.391 INFO lxc_conf - conf.c:mount_file_entries:2011 - mount points have been setup lxc-start 1414573214.438 INFO lxc_conf - conf.c:fill_autodev:1198 - Creating initial consoles under /usr/local/lib/lxc/rootfs/dev lxc-start 1414573214.438 INFO lxc_conf - conf.c:fill_autodev:1209 - Populating /dev under /usr/local/lib/lxc/rootfs lxc-start 1414573214.439 INFO lxc_conf - conf.c:fill_autodev:1241 - Populated /dev under /usr/local/lib/lxc/rootfs lxc-start 1414573214.439 INFO lxc_conf - conf.c:setup_dev_console:1492 - console has been setup lxc-start 1414573214.439 INFO lxc_conf - conf.c:do_tmp_proc_mount:3542 - I am 1, /proc/self points to '1' lxc-start 1414573214.442 DEBUG lxc_conf - conf.c:setup_rootfs_pivot_root:1109 - pivot_root syscall to '/usr/local/lib/lxc/rootfs' successful lxc-start 1414573214.442 INFO lxc_conf - conf.c:setup_tty:1054 - 0 tty(s) has been setup lxc-start 1414573214.442 DEBUG lxc_conf - conf.c:setup_caps:2139 - capabilities have been setup lxc-start 1414573214.442 NOTICE lxc_conf - conf.c:lxc_setup:3921 - 'bb' is setup. lxc-start 1414573214.442 NOTICE lxc_start - start.c:start:1232 - exec'ing '/sbin/init' lxc-start 1414573214.482 NOTICE lxc_start - start.c:post_start:1243 - '/sbin/init' started with pid '1896' lxc-start 1414573214.482 WARN lxc_start - start.c:signal_handler:307 - invalid pid for SIGCHLD
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users