[lxc-users] Help, containers gone after upgrade to 0.24

Jamie Brown Jamie.Brown at mpec.co.uk
Thu Dec 17 08:34:00 UTC 2015


I’ve (at least) managed to get my containers back up and running by creating new ones and copying the file stores.

However, the annoying thing is I can’t even delete the old containers even though they don’t appear in the list. Any command I try to issue just returns the architecture not supported message. But it won’t let me re-use the container name because it (correctly) believes it already exists.

So for now I’m stuck with all my containers being called <container_name>1.

Whilst I appreciate the frequent releases and that we’re still <1.0, a warning in the release notes about this would have been very helpful!

Is there a way to somehow force LXC to delete the incompatible containers? This is one of the major issues with the mysterious “lxd.db” file, unless I’m mistaken there is no easy way to open the database and tidy things up when things don’t quite go to plan. I’m guessing if I could read and edit this file, I probably could have manually set the architecture for the containers and got them back up and running?

Cheers,

Jamie

From: Jamie Brown <Jamie.Brown at mpec.co.uk<mailto:Jamie.Brown at mpec.co.uk>>
Date: Thursday, 17 December 2015 at 08:05
To: LXC users mailing-list <lxc-users at lists.linuxcontainers.org<mailto:lxc-users at lists.linuxcontainers.org>>
Subject: Help, containers gone after upgrade to 0.24

Hello,

I’ve just upgraded to 0.24 from 0.23 and most of my containers have disappeared from lxc list and are not starting up. The two that remain in the list were those added most recently (probably in 0.23), the others were added in an earlier release.

I guess there is a problem with backwards compatibility with a configuration.

If I run lxc config show <container> on a missing container, it returns;

error: Architecture isn't supported: 0

Looking at the lxc.conf in the logs directories, there are some missing properties for these containers verses the newer containers, one of these properties being lxc.arch. However, I don’t know how I can set these properties for the missing containers.

The following properties are missing from the older lxc.conf files:

  *   Lxc.arch
  *   Lxc.hook.pre-start
  *   Lxc.hook.post-stop

Please help!

Many thanks,

Jamie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151217/451f93e8/attachment.html>


More information about the lxc-users mailing list