[lxc-users] lxc-users Digest, Vol 265, Issue 5

Christian Brauner christian at brauner.io
Sun Jan 27 19:52:42 UTC 2019


On January 27, 2019 7:47:25 PM GMT+01:00, Bryan Christ <bryan.christ at gmail.com> wrote:
>Andrey,
>
>Thanks for the reply.  Is there a resource, document, guide that can
>show
>me what the old items were and what the new analogs are?  Most of my
>config
>files are from the templates so I added very little.  I tried starting
>a
>container manually to see what line(s) were causing problems but it
>looked
>like there were quite a few.
>
>lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
>lxc.mount.entry = sysfs sys sysfs defaults 0 0
>lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections none
>bind,op$
>lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional
>0 0
>lxc.mount.entry = /sys/kernel/security sys/kernel/security none
>bind,optional 0$
>lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
>lxc.tty = 4
>lxc.pts = 1024
>lxc.devttydir = lxc
>lxc.arch = x86_64
>lxc.seccomp = /usr/share/lxc/config/common.seccomp
>lxc.cgroup.devices.deny = a
>lxc.cgroup.devices.allow = c *:* m
>lxc.cgroup.devices.allow = b *:* m
>lxc.cgroup.devices.allow = c 1:3 rwm
>lxc.cgroup.devices.allow = c 1:5 rwm
>lxc.cgroup.devices.allow = c 5:0 rwm
>lxc.cgroup.devices.allow = c 5:1 rwm
>lxc.cgroup.devices.allow = c 1:8 rwm
>lxc.cgroup.devices.allow = c 1:9 rwm
>lxc.cgroup.devices.allow = c 5:2 rwm
>lxc.cgroup.devices.allow = c 136:* rwm
>lxc.cgroup.devices.allow = c 254:0 rm
>lxc.cgroup.devices.allow = c 10:229 rwm
>lxc.cgroup.devices.allow = c 10:200 rwm
>lxc.cgroup.devices.allow = c 1:7 rwm
>lxc.cgroup.devices.allow = c 10:228 rwm
>lxc.cgroup.devices.allow = c 10:232 rwm
>lxc.utsname = trusty-64-owncloud
>lxc.network.type = veth
>lxc.network.flags = up
>lxc.network.link = br0
>lxc.network.hwaddr = 00:16:3e:52:ee:f1
>lxc.cap.drop = sys_module
>lxc.cap.drop = mac_admin
>lxc.cap.drop = mac_override
>lxc.cap.drop = sys_time
>lxc.rootfs = /var/lib/lxc/trusty-64-owncloud/rootfs
>lxc.pivotdir = lxc_putold
>lxc.start.aut
>
>
>
>
>> ---------- Forwarded message ----------
>> From: Bryan Christ <bryan.christ at gmail.com>
>> To: lxc-users at lists.linuxcontainers.org
>> Cc:
>> Bcc:
>> Date: Sat, 26 Jan 2019 09:11:41 -0600
>> Subject: [lxc-users] Failed to load config for XYZ
>> I don't reboot my server often and I guess somewhere along the way I
>got
>> upgraded on Bionic from LXC 2 to LXC 3.  Now, none of my containers
>start.
>> I get the following message when I lxc-ls --fancy
>>
>> Failed to load config for centos6-phpmyadmin
>> Failed to load config for centos6-redis
>> Failed to load config for centos6-web
>> Failed to load config for centos7-base-db
>> Failed to load config for centos7-base-php7
>> Failed to load config for centos7-base-wp
>> Failed to load config for trusty-64-owncloud
>> Failed to load config for trusty64-mediawiki
>>
>> I need to fix this quickly and I also need to make sure it's not
>going to
>> happen on my other Bionic servers.  What do I do?
>>
>>
>>
>> --
>> Bryan
>> <><
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Andrey Repin <anrdaemon at yandex.ru>
>> To: Bryan Christ <lxc-users at lists.linuxcontainers.org>
>> Cc:
>> Bcc:
>> Date: Sun, 27 Jan 2019 00:16:06 +0300
>> Subject: Re: [lxc-users] Failed to load config for XYZ
>> Greetings, Bryan Christ!
>>
>> > I don't reboot my server often and I guess somewhere along the way
>I got
>> > upgraded on Bionic from LXC 2 to LXC 3.  Now, none of my containers
>> start.
>> > I get the following message when I lxc-ls --fancy
>>
>>
>> > Failed to load config for centos6-phpmyadmin
>>
>> > Failed to load config for centos6-redis
>> > Failed to load config for centos6-web
>> > Failed to load config for centos7-base-db
>>
>> > Failed to load config for centos7-base-php7
>> > Failed to load config for centos7-base-wp
>> > Failed to load config for trusty-64-owncloud
>>
>> > Failed to load config for trusty64-mediawiki
>>
>>
>>
>> > I need to fix this quickly and I also need to make sure it's not
>going to
>> > happen on my other Bionic servers.  What do I do?
>>
>> Check for config syntax. Multiple keys got a facelift for a better
>> structured
>> naming conventions.
>> F.e. network configuration now explicitly indexed.
>>
>>
>> --
>> With best regards,
>> Andrey Repin
>> Sunday, January 27, 2019 0:14:33
>>
>> Sorry for my terrible
>> english..._______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>

3.0 ships with a script lxc-update-config that updates your config file.

Christian


More information about the lxc-users mailing list