Hi,
I recently did fresh Ubuntu install with LXC.
After starting container in non-daemon mode ($lxc-start -n trusty-raw) it
showed errors and foreground process hangs.
I am able to stop the container from another terminal.
Although the container starts in daemon mode ($lxc-start -n trusty-raw -l
debug -o start_daemon.log) but after ssh and executing sudo command gave
following error:
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the
'nosuid' option set or an NFS file system without root privileges?
My system config is:
Ubuntu 14.04.1 LTS 3.13.0-36-generic x86_64 GNU/Linux, with lxc version
1.0.5-0ubuntu0.1
I am also attaching both log file (container started with and without
daemon mode).
The user-space containers were working on my previous installation.
(Ubuntu 14.04 LTS with one/ two minor version back kernel and
1.0.5-0ubuntu0.1 lxc version).
Can someone guide me, if am I missing anything.
(i have configured my user-space containers with help from:
https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/)
Thanks
Nilesh
nilesh@workhorse:~$ lxc-start -n trusty-raw
<4>init: plymouth-upstart-bridge main process (5) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: hwclock main process (7) terminated with status 77
<4>init: plymouth-upstart-bridge main process (15) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: ureadahead main process (8) terminated with status 5
<4>init: plymouth-upstart-bridge main process (19) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
* Starting Mount filesystems on boot ...done.
<4>init: mounted-proc main process (31) terminated with status 1
* Starting Signal sysvinit that the rootfs is mounted ...done.
* Stopping Send an event to indicate plymouth is up ...done.
* Starting Clean /tmp directory ...done.
* Stopping Clean /tmp directory ...done.
* Starting Populate and link to /run filesystem ...done.
* Starting Track if upstart is running in a container ...done.
* Starting load fallback graphics devices ...done.
<4>init: udev-fallback-graphics main process (86) terminated with status 1
* Starting workaround for missing events in container ...done.
* Starting load fallback graphics devices ...fail!
<4>init: console-font main process (105) terminated with status 1
* Stopping Populate and link to /run filesystem ...done.
* Starting userspace bootsplash ...done.
* Starting Initialize or finalize resolvconf ...done.
Ubuntu 14.04.1 LTS trusty-raw console
trusty-raw login: <4>init: setvtrgb main process (425) terminated with status 1
* Stopping save kernel messages ...done.
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: tty4 main process (369) killed by TERM signal
<4>init: tty2 main process (372) killed by TERM signal
<4>init: tty3 main process (373) killed by TERM signal
<4>init: cron main process (383) killed by TERM signal
<4>init: console main process (418) killed by TERM signal
<4>init: tty1 main process (421) killed by TERM signal
<4>init: hwclock-save main process (451) terminated with status 70
<4>init: plymouth-upstart-bridge main process (455) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (473) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (478) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (480) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (482) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (484) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (488) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (492) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (493) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (495) terminated with status 1
<4>init: plymouth-upstart-bridge main process ended, respawning
<4>init: plymouth-upstart-bridge main process (497) terminated with status 1
<4>init: plymouth-upstart-bridge respawning too fast, stopped
<4>init: wait-for-state (rcplymouth-shutdown) main process (485) killed by TERM signal
wait-for-state stop/waiting
* Asking all remaining processes to terminate...
...done.
* All processes ended within 1 seconds...
...done.
* Deactivating swap...
...done.
* Unmounting local filesystems...
umount2: Device or resource busy
remount: Permission denied
umount: could not remount udev read-only
umount: /dev/null: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
remount: Permission denied
umount: could not remount udev read-only
...fail!
mount: cannot mount block device /home/nilesh/.Private read-only
* Will now halt
nilesh@workhorse:~$ cat out.log
lxc-start 1410728951.989 INFO lxc_start_ui - using rcfile /home/nilesh/.local/share/lxc/trusty-raw/config
lxc-start 1410728951.989 INFO lxc_confile - read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 1410728951.989 INFO lxc_confile - read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 1410728951.990 WARN lxc_log - lxc_log_init called with log already initialized
lxc-start 1410728951.994 INFO lxc_lsm - LSM security driver AppArmor
lxc-start 1410728951.995 DEBUG lxc_conf - allocated pty '/dev/pts/16' (5/6)
lxc-start 1410728951.995 DEBUG lxc_conf - allocated pty '/dev/pts/26' (7/8)
lxc-start 1410728951.995 DEBUG lxc_conf - allocated pty '/dev/pts/27' (9/10)
lxc-start 1410728951.995 DEBUG lxc_conf - allocated pty '/dev/pts/28' (11/12)
lxc-start 1410728951.995 INFO lxc_conf - tty's configured
lxc-start 1410728951.995 DEBUG lxc_start - sigchild handler set
lxc-start 1410728951.995 DEBUG lxc_console - no console peer
lxc-start 1410728951.998 INFO lxc_monitor - using monitor sock name lxc/6ebd1ca652443553//home/nilesh/.local/share/lxc
lxc-start 1410728952.191 INFO lxc_start - 'trusty-raw' is initialized
lxc-start 1410728952.191 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp
lxc-start 1410728952.192 INFO lxc_start - Cloning a new user namespace
lxc-start 1410728952.192 INFO lxc_cgroup - cgroup driver cgmanager initing for trusty-raw
lxc-start 1410728952.320 NOTICE lxc_start - switching to gid/uid 0 in new user namespace
lxc-start 1410728952.321 DEBUG lxc_conf - mounted '/home/nilesh/.local/share/lxc/trusty-raw/rootfs' on '/usr/lib/x86_64-linux-gnu/lxc'
lxc-start 1410728952.321 INFO lxc_conf - 'trusty-raw' hostname has been setup
lxc-start 1410728952.322 DEBUG lxc_conf - mac address '00:16:3e:17:14:ab' on 'eth0' has been setup
lxc-start 1410728952.322 DEBUG lxc_conf - 'eth0' has been setup
lxc-start 1410728952.323 INFO lxc_conf - network has been setup
lxc-start 1410728952.323 DEBUG lxc_conf - Set exec command to /sbin/init
lxc-start 1410728952.323 INFO lxc_conf - Autodev not required.
lxc-start 1410728952.323 DEBUG lxc_conf - mounted 'proc' on '/usr/lib/x86_64-linux-gnu/lxc/proc', type 'proc'
lxc-start 1410728952.323 DEBUG lxc_conf - mounted 'sysfs' on '/usr/lib/x86_64-linux-gnu/lxc/sys', type 'sysfs'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /sys/fs/fuse/connections on /usr/lib/x86_64-linux-gnu/lxc/sys/fs/fuse/connections to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/sys/fs/fuse/connections' on '/usr/lib/x86_64-linux-gnu/lxc/sys/fs/fuse/connections', type 'none'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /sys/kernel/debug on /usr/lib/x86_64-linux-gnu/lxc/sys/kernel/debug to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/sys/kernel/debug' on '/usr/lib/x86_64-linux-gnu/lxc/sys/kernel/debug', type 'none'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /sys/kernel/security on /usr/lib/x86_64-linux-gnu/lxc/sys/kernel/security to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/sys/kernel/security' on '/usr/lib/x86_64-linux-gnu/lxc/sys/kernel/security', type 'none'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /sys/fs/pstore on /usr/lib/x86_64-linux-gnu/lxc/sys/fs/pstore to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/sys/fs/pstore' on '/usr/lib/x86_64-linux-gnu/lxc/sys/fs/pstore', type 'none'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /dev/console on /usr/lib/x86_64-linux-gnu/lxc/dev/console to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/dev/console' on '/usr/lib/x86_64-linux-gnu/lxc/dev/console', type 'none'
lxc-start 1410728952.323 DEBUG lxc_conf - remounting /dev/full on /usr/lib/x86_64-linux-gnu/lxc/dev/full to respect bind or remount options
lxc-start 1410728952.323 DEBUG lxc_conf - mounted '/dev/full' on '/usr/lib/x86_64-linux-gnu/lxc/dev/full', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /dev/null on /usr/lib/x86_64-linux-gnu/lxc/dev/null to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/dev/null' on '/usr/lib/x86_64-linux-gnu/lxc/dev/null', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /dev/random on /usr/lib/x86_64-linux-gnu/lxc/dev/random to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/dev/random' on '/usr/lib/x86_64-linux-gnu/lxc/dev/random', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /dev/tty on /usr/lib/x86_64-linux-gnu/lxc/dev/tty to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/dev/tty' on '/usr/lib/x86_64-linux-gnu/lxc/dev/tty', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /dev/urandom on /usr/lib/x86_64-linux-gnu/lxc/dev/urandom to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/dev/urandom' on '/usr/lib/x86_64-linux-gnu/lxc/dev/urandom', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /dev/zero on /usr/lib/x86_64-linux-gnu/lxc/dev/zero to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/dev/zero' on '/usr/lib/x86_64-linux-gnu/lxc/dev/zero', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /sys/firmware/efi/efivars on /usr/lib/x86_64-linux-gnu/lxc/sys/firmware/efi/efivars to respect bind or remount options
lxc-start 1410728952.324 DEBUG lxc_conf - mounted '/sys/firmware/efi/efivars' on '/usr/lib/x86_64-linux-gnu/lxc/sys/firmware/efi/efivars', type 'none'
lxc-start 1410728952.324 DEBUG lxc_conf - remounting /proc/sys/fs/binfmt_misc on /usr/lib/x86_64-linux-gnu/lxc/proc/sys/fs/binfmt_misc to respect bind or remount options
lxc-start 1410728952.324 INFO lxc_conf - failed to mount '/proc/sys/fs/binfmt_misc' on '/usr/lib/x86_64-linux-gnu/lxc/proc/sys/fs/binfmt_misc' (optional): Operation not permitted
lxc-start 1410728952.324 INFO lxc_conf - mount points have been setup
lxc-start 1410728952.324 INFO lxc_conf - console has been setup
lxc-start 1410728952.325 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1410728952.325 INFO lxc_conf - I am 1, /proc/self points to '1'
lxc-start 1410728952.325 DEBUG lxc_conf - created '/usr/lib/x86_64-linux-gnu/lxc/lxc_putold' directory
lxc-start 1410728952.325 DEBUG lxc_conf - mountpoint for old rootfs is '/usr/lib/x86_64-linux-gnu/lxc/lxc_putold'
lxc-start 1410728952.325 DEBUG lxc_conf - pivot_root syscall to '/usr/lib/x86_64-linux-gnu/lxc' successful
lxc-start 1410728952.334 INFO lxc_conf - lazy unmount of '/lxc_putold'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/dev'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/dev/pts'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/run'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/run/lock'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/run/shm'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/run/user'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/run/user/1000/gvfs'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys/fs/cgroup'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys/fs/cgroup/systemd'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys/fs/fuse/connections'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys/kernel/debug'
lxc-start 1410728952.334 WARN lxc_conf - failed to unmount '/lxc_putold/sys/kernel/security'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/sys/firmware/efi/efivars'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/sys/fs/pstore'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/proc'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/boot'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/boot/efi'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/home'
lxc-start 1410728952.335 WARN lxc_conf - failed to unmount '/lxc_putold/home/nilesh'
lxc-start 1410728952.335 INFO lxc_conf - set personality to '0x0'
lxc-start 1410728952.335 NOTICE lxc_conf - 'trusty-raw' is setup.
lxc-start 1410728952.335 INFO lxc_apparmor - changed apparmor profile to lxc-container-default
lxc-start 1410728952.335 NOTICE lxc_start - exec'ing '/sbin/init'
lxc-start 1410728952.336 NOTICE lxc_start - '/sbin/init' started with pid '4618'
lxc-start 1410728952.336 WARN lxc_start - invalid pid for SIGCHLD
lxc-start 1410728952.336 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728952.337 DEBUG lxc_commands - 'trusty-raw' is in 'RUNNING' state
lxc-start 1410728952.337 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.758 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.758 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.759 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.760 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.760 DEBUG lxc_commands - peer has disconnected
lxc-start 1410728966.761 DEBUG lxc_commands - peer has disconnected
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users