Created
March 12, 2014 21:22
-
-
Save nelsnelson/9516672 to your computer and use it in GitHub Desktop.
lxc weirdness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo lxc-create -t sshd -n test -f /var/lib/lxc/test/config -l DEBUG -o /tmp/lxc.log &> /dev/null | |
$ sudo lxc-start -d -n test -f /var/lib/lxc/test/config -P /var/lib/lxc/test -l DEBUG -o /tmp/lxc.log | |
$ cat /tmp/lxc.log | |
lxc-create 1391637847.305 WARN lxc_log - lxc_log_init called with log already initialized | |
lxc-start 1391637853.096 WARN lxc_log - lxc_log_init called with log already initialized | |
lxc-start 1391637853.099 DEBUG lxc_cgroup - cgroup_init | |
lxc-start 1391637853.099 INFO lxc_cgroup - Initialized cgroup driver cgroupfs | |
lxc-start 1391637853.099 INFO lxc_lsm - LSM security driver SELinux | |
lxc-start 1391637853.099 DEBUG lxc_start - sigchild handler set | |
lxc-start 1391637853.100 DEBUG lxc_console - no console peer | |
lxc-start 1391637853.100 INFO lxc_start - 'test' is initialized | |
lxc-start 1391637853.102 INFO lxc_monitor - using monitor sock name lxc/971ccae10061f3d4//var/lib/lxc/test | |
lxc-start 1391637853.105 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp | |
lxc-start 1391637853.105 INFO lxc_cgroup - cgroup driver cgroupfs initing for test | |
lxc-start 1391637853.108 INFO lxc_conf - 'test' hostname has been setup | |
lxc-start 1391637853.110 DEBUG lxc_conf - mounted '/var/lib/lxc/test/rootfs' on '/usr/lib/lxc/rootfs' | |
lxc-start 1391637853.110 DEBUG lxc_conf - Set exec command to /sbin/init | |
lxc-start 1391637853.114 INFO lxc_conf - Autodev not required. | |
lxc-start 1391637853.114 DEBUG lxc_conf - remounting /dev on /usr/lib/lxc/rootfs/dev to respect bind or remount options | |
lxc-start 1391637853.114 DEBUG lxc_conf - mounted '/dev' on '/usr/lib/lxc/rootfs/dev', type 'none' | |
lxc-start 1391637853.114 DEBUG lxc_conf - remounting /lib on /usr/lib/lxc/rootfs/lib to respect bind or remount options | |
lxc-start 1391637853.114 DEBUG lxc_conf - mounted '/lib' on '/usr/lib/lxc/rootfs/lib', type 'none' | |
lxc-start 1391637853.114 DEBUG lxc_conf - remounting /bin on /usr/lib/lxc/rootfs/bin to respect bind or remount options | |
lxc-start 1391637853.114 DEBUG lxc_conf - mounted '/bin' on '/usr/lib/lxc/rootfs/bin', type 'none' | |
lxc-start 1391637853.114 DEBUG lxc_conf - remounting /usr on /usr/lib/lxc/rootfs/usr to respect bind or remount options | |
lxc-start 1391637853.114 DEBUG lxc_conf - mounted '/usr' on '/usr/lib/lxc/rootfs/usr', type 'none' | |
lxc-start 1391637853.114 DEBUG lxc_conf - remounting /sbin on /usr/lib/lxc/rootfs/sbin to respect bind or remount options | |
lxc-start 1391637853.114 DEBUG lxc_conf - mounted '/sbin' on '/usr/lib/lxc/rootfs/sbin', type 'none' | |
lxc-start 1391637853.115 DEBUG lxc_conf - mounted 'tmpfs' on '/usr/lib/lxc/rootfs/var/run/sshd', type 'tmpfs' | |
lxc-start 1391637853.116 DEBUG lxc_conf - remounting /usr/share/lxc/templates/lxc-sshd on /usr/lib/lxc/rootfs/sbin/init to respect bind or remount options | |
lxc-start 1391637853.116 DEBUG lxc_conf - mounted '/usr/share/lxc/templates/lxc-sshd' on '/usr/lib/lxc/rootfs/sbin/init', type 'none' | |
lxc-start 1391637853.116 DEBUG lxc_conf - mounted 'proc' on '/usr/lib/lxc/rootfs/proc', type 'proc' | |
lxc-start 1391637853.116 DEBUG lxc_conf - mounted 'sysfs' on '/usr/lib/lxc/rootfs/sys', type 'sysfs' | |
lxc-start 1391637853.116 DEBUG lxc_conf - remounting /etc/init.d on /usr/lib/lxc/rootfs/etc/init.d to respect bind or remount options | |
lxc-start 1391637853.116 DEBUG lxc_conf - mounted '/etc/init.d' on '/usr/lib/lxc/rootfs/etc/init.d', type 'none' | |
lxc-start 1391637853.116 DEBUG lxc_conf - remounting /lib64 on /usr/lib/lxc/rootfs/lib64 to respect bind or remount options | |
lxc-start 1391637853.116 DEBUG lxc_conf - mounted '/lib64' on '/usr/lib/lxc/rootfs/lib64', type 'none' | |
lxc-start 1391637853.116 INFO lxc_conf - mount points have been setup | |
lxc-start 1391637853.116 INFO lxc_conf - console has been setup | |
lxc-start 1391637853.116 INFO lxc_conf - 0 tty(s) has been setup | |
lxc-start 1391637853.116 INFO lxc_conf - I am 1, /proc/self points to '1' | |
lxc-start 1391637853.117 DEBUG lxc_conf - created '/usr/lib/lxc/rootfs/lxc_putold' directory | |
lxc-start 1391637853.117 DEBUG lxc_conf - mountpoint for old rootfs is '/usr/lib/lxc/rootfs/lxc_putold' | |
lxc-start 1391637853.117 DEBUG lxc_conf - pivot_root syscall to '/usr/lib/lxc/rootfs' successful | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/dev/pts' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/run/lock' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/run/shm' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/sys/fs/selinux' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/sys/fs/cgroup' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/proc' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/var/lib/nfs/rpc_pipefs' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/dev' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/run' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold/sys' | |
lxc-start 1391637853.117 DEBUG lxc_conf - umounted '/lxc_putold' | |
lxc-start 1391637853.117 INFO lxc_conf - created new pts instance | |
lxc-start 1391637853.117 DEBUG lxc_conf - drop capability 'sys_module' (16) | |
lxc-start 1391637853.117 DEBUG lxc_conf - drop capability 'mac_admin' (33) | |
lxc-start 1391637853.117 DEBUG lxc_conf - drop capability 'mac_override' (32) | |
lxc-start 1391637853.117 DEBUG lxc_conf - drop capability 'sys_time' (25) | |
lxc-start 1391637853.117 DEBUG lxc_conf - capabilities have been setup | |
lxc-start 1391637853.117 NOTICE lxc_conf - 'test' is setup. | |
lxc-start 1391637853.117 WARN lxc_start - inherited fd 4 | |
lxc-start 1391637853.117 WARN lxc_start - inherited fd 6 | |
lxc-start 1391637853.117 WARN lxc_start - inherited fd 7 | |
lxc-start 1391637853.117 WARN lxc_start - inherited fd 8 | |
lxc-start 1391637853.117 NOTICE lxc_start - exec'ing '/sbin/init' | |
lxc-start 1391637853.118 NOTICE lxc_start - '/sbin/init' started with pid '4138' | |
lxc-start 1391637853.118 WARN lxc_start - invalid pid for SIGCHLD | |
lxc-start 1391637853.118 DEBUG lxc_commands - peer has disconnected | |
lxc-start 1391637853.118 DEBUG lxc_commands - peer has disconnected | |
lxc-start 1391637853.118 DEBUG lxc_commands - 'test' is in 'RUNNING' state | |
$ sudo lxc-ls | |
rackos_ul test | |
$ sudo lxc-info -n test | |
Name: test | |
State: STOPPED | |
$ sudo lxc-stop -n test | |
test is not running | |
$ sudo lxc-destroy -n test | |
$ sudo lxc-ls | |
rackos_ul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment