[lxc-users] Problem starting trusty container on 16.04

Mike Bernson mike at mlb.org
Tue May 31 01:31:17 UTC 2016


I have create a 16.04 container on 16.04 as unprivileged container and it works.

I then tried to create 14.04 container on 16.04 as unprivileged container and it does not get
to the login prompt.

If create 14.04 container privileged and start it that works.

I have done everything as root.

dpkg -l '*lxc*'
ii  liblxc1                2.0.1-0ubuntu1~1 amd64 Linux Containers userspace tools (library)
ii  lxc                    2.0.1-0ubuntu1~1 all              Transitional package for lxc1
ii  lxc-common             2.0.1-0ubuntu1~1 amd64            Linux Containers userspace tools (common tools)
ii  lxc-templates          2.0.1-0ubuntu1~1 amd64            Linux Containers userspace tools (templates)
ii  lxc1                   2.0.1-0ubuntu1~1 amd64            Linux Containers userspace tools
ii  lxcfs                  2.0.1-0ubuntu1~1 amd64            FUSE based filesystem for LXC

dpkg -l 'cg*'
ii  cgmanager              0.39-2ubuntu5    amd64            Central cgroup manager daemon


root at mike-desktop:/var/lib/lxc/lxc-1404# cat /etc/subuid
mike:100000:65536
root:2000000:2000001
root at mike-desktop:/var/lib/lxc/lxc-1404# cat /etc/subgid
mike:100000:65536
root:2000000:2000001


  lxc-create -n lxc-1404 -t download -- -d ubuntu -r trusty -a amd64
  lxc-start -n lxc-1404
  lxc-attach -n lxc-1404

config file:

# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d ubuntu -r trusty -a amd64
# For additional config options, please look at lxc.container.conf(5)

# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)

# Do not edit this file is controlled by puppet

# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.arch = x86_64

# Container specific configuration
lxc.id_map = u 0 3100000 65536
lxc.id_map = g 0 3100000 65536
lxc.rootfs = /var/lib/lxc/lxc-1404/rootfs
lxc.rootfs.backend = dir
lxc.utsname = lxc-1404

# Network configuration
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:6a:d9:5a


root at lxc-1404:/# ps -ax
   PID TTY      STAT   TIME COMMAND
     1 ?        Ss     0:00 /sbin/init
    38 ?        S      0:00 @sbin/plymouthd --mode=boot --attach-to-session
    45 ?        Ss     0:00 plymouth-upstart-bridge
    49 ?        S      0:00 mountall --daemon
   628 ?        S      0:00 upstart-socket-bridge --daemon
  1493 pts/6    Ss     0:00 /bin/bash
  1504 pts/6    R+     0:00 ps -ax



More information about the lxc-users mailing list