[lxc-users] LXC containers won't start after 15.10 -> 16.04 upgrade

Daan Willems xatr0z at gmail.com
Mon Apr 4 17:13:54 UTC 2016


On Mon, Apr 4, 2016 at 5:41 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Can you show your full container configuration?

I tinkered a bit with the config. If I comment out all of the
lxc.cgroup.devices.allow lines, the container starts.

Are there any changes to the lxc.cgroup configuration I should know of?

Full configuration for this particular container:
--------------
# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.include = /usr/share/lxc/config/debian.userns.conf
lxc.arch = x86_64

# Container specific configuration
lxc.id_map = u 0 296608 65536
lxc.id_map = g 0 296608 65536
lxc.rootfs = /home/www/.local/share/lxc/www/rootfs
lxc.utsname = www

# Network configuration
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:29:50:a3

lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm

lxc.start.auto = 1

#lxc.aa_profile = lxc-container-default-with-mounting
lxc.aa_profile = unconfined

lxc.mount.entry=/mnt/data1/_EBOOKS      mnt/data/_EBOOKS
ro,nodev,noexec,nosuid,uid=296608,gid=296608 bind 0 0
lxc.mount.entry=/mnt/data1/_MOVIES      mnt/data/_MOVIES
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data1/_MUSIC       mnt/data/_MUSIC
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data1/_PIANO       mnt/data/_PIANO
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data1/_SOFTWARE    mnt/data/_SOFTWARE
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data1/_TTC         mnt/data/_TTC
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data1/_PHOTOS      mnt/data/_PHOTOS
ro,nodev,noexec,nosuid bind 0 0
lxc.mount.entry=/mnt/data2/_SERIES      mnt/data/_SERIES
ro,nodev,noexec,nosuid bind 0 0
--------------

-- 
Daan


More information about the lxc-users mailing list