[lxc-devel] problem with user namespace as root

Stephan Sachse ste.sachse at gmail.com
Thu Feb 13 22:44:48 UTC 2014


On Thu, Feb 13, 2014 at 9:19 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
> On Wed, 2014-02-12 at 20:18 +0100, Stephan Sachse wrote:
>> i've lost my brain! i'm not a c programmer. someone who knows what
>> he's doing, should have a look on it.
>
> > it errors out with:
>
> Crud...  Looks like you started showing the info lines AFTER some of the
> information I need would have been printed.

here are the complete log

-- 
Software is like sex, it's better when it's free!
-------------- next part --------------
      lxc-start 1392232180.822 INFO     lxc_start_ui - using rcfile /var/lib/lxc/fedora1/config
      lxc-start 1392232180.823 INFO     lxc_confile - read uid map: type u nsid 0 hostid 100000 range 1
      lxc-start 1392232180.823 INFO     lxc_confile - read uid map: type g nsid 0 hostid 100000 range 1
      lxc-start 1392232180.823 WARN     lxc_log - lxc_log_init called with log already initialized
      lxc-start 1392232180.823 DEBUG    lxc_conf - allocated pty '/dev/pts/2' (5/6)
      lxc-start 1392232180.823 DEBUG    lxc_conf - allocated pty '/dev/pts/3' (7/8)
      lxc-start 1392232180.823 DEBUG    lxc_conf - allocated pty '/dev/pts/4' (9/10)
      lxc-start 1392232180.823 DEBUG    lxc_conf - allocated pty '/dev/pts/5' (11/12)
      lxc-start 1392232180.823 INFO     lxc_conf - tty's configured
      lxc-start 1392232180.823 DEBUG    lxc_start - sigchild handler set
      lxc-start 1392232180.823 DEBUG    lxc_console - opening /dev/tty for console peer
      lxc-start 1392232180.823 DEBUG    lxc_console - using '/dev/tty' as console
      lxc-start 1392232180.823 DEBUG    lxc_console - 2394 got SIGWINCH fd 17
      lxc-start 1392232180.823 DEBUG    lxc_console - set winsz dstfd:14 cols:158 rows:51
      lxc-start 1392232180.823 INFO     lxc_start - 'fedora1' is initialized
      lxc-start 1392232180.832 DEBUG    lxc_start - Not dropping cap_sys_boot or watching utmp

      lxc-start 1392232180.832 INFO     lxc_start - Cloning a new user namespace
      lxc-start 1392232180.836 DEBUG    lxc_conf - instanciated veth 'vethFDGEQW/vethEWI3CR', index is '22'
      lxc-start 1392232180.836 INFO     lxc_cgroup - cgroup driver cgroupfs initing for fedora1
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.deny' set to 'a'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c *:* m'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'b *:* m'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 1:3 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 1:5 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 1:7 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 5:0 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 1:8 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 1:9 rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 136:* rwm'
      lxc-start 1392232180.837 DEBUG    lxc_cgfs - cgroup 'devices.allow' set to 'c 5:2 rwm'
      lxc-start 1392232180.837 INFO     lxc_cgfs - cgroup has been setup
      lxc-start 1392232180.845 DEBUG    lxc_conf - move '(null)' to '2402'
      lxc-start 1392232180.845 NOTICE   lxc_start - switching to gid/uid 0 in new user namespace
      lxc-start 1392232180.845 INFO     lxc_conf - 'fedora1' hostname has been setup
      lxc-start 1392232180.852 DEBUG    lxc_conf - mac address 'fe:51:02:2c:73:fa' on 'eth0' has been setup
      lxc-start 1392232180.852 DEBUG    lxc_conf - 'eth0' has been setup
      lxc-start 1392232180.852 INFO     lxc_conf - network has been setup
      lxc-start 1392232180.856 DEBUG    lxc_conf - mounted '/var/lib/lxc/fedora1/rootfs' on '/usr/lib64/lxc/rootfs'
      lxc-start 1392232180.856 INFO     lxc_conf - Mounting /dev under /usr/lib64/lxc/rootfs

      lxc-start 1392232180.856 ERROR    lxc_conf - Permission denied - Unable to create /dev/.lxc for autodev
      lxc-start 1392232180.856 DEBUG    lxc_conf - entering mount_check_fs for /var/lib/lxc/fedora1/rootfs.dev

      lxc-start 1392232180.856 DEBUG    lxc_conf - Mounting tmpfs to /var/lib/lxc/fedora1/rootfs.dev
      lxc-start 1392232180.856 INFO     lxc_conf - Mounted /dev under /usr/lib64/lxc/rootfs

      lxc-start 1392232180.856 INFO     lxc_conf - Creating initial consoles under /usr/lib64/lxc/rootfs/dev

      lxc-start 1392232180.856 INFO     lxc_conf - Populating /dev under /usr/lib64/lxc/rootfs in_userns:1
      lxc-start 1392232180.856 INFO     lxc_conf - Populated /dev under /usr/lib64/lxc/rootfs in_userns:1
      lxc-start 1392232180.856 INFO     lxc_conf - created /usr/lib64/lxc/rootfs/dev/lxc

      lxc-start 1392232180.856 INFO     lxc_conf - console has been setup on lxc/console
      lxc-start 1392232180.856 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1392232180.856 DEBUG    lxc_conf - created '/usr/lib64/lxc/rootfs/lxc_putold' directory
      lxc-start 1392232180.856 DEBUG    lxc_conf - mountpoint for old rootfs is '/usr/lib64/lxc/rootfs/lxc_putold'
      lxc-start 1392232180.856 DEBUG    lxc_conf - pivot_root syscall to '/usr/lib64/lxc/rootfs' successful
      lxc-start 1392232180.861 INFO     lxc_conf - lazy unmount of '/lxc_putold'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/dev'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/dev/pts'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/dev/shm'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/proc'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/proc/sys/fs/binfmt_misc'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/sys'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/boot'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/media/dataa'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/cpuset'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/cpu'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/cpuacct'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/memory'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/devices'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/freezer'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/net_cls'
      lxc-start 1392232180.861 WARN     lxc_conf - failed to unmount '/lxc_putold/cgroup/blkio'
      lxc-start 1392232180.861 ERROR    lxc_conf - Invalid argument - failed to mount a new instance of '/dev/pts'
      lxc-start 1392232180.861 ERROR    lxc_conf - failed to setup the new pts instance
      lxc-start 1392232180.861 ERROR    lxc_start - failed to setup the container
      lxc-start 1392232180.861 ERROR    lxc_sync - invalid sequence number 1. expected 2
      lxc-start 1392232180.862 WARN     lxc_conf - failed to remove interface '(null)'
      lxc-start 1392232180.878 ERROR    lxc_start - failed to spawn 'fedora1'


More information about the lxc-devel mailing list