From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21BA41396D9 for ; Tue, 24 Oct 2017 07:40:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEFDE2BC0F4; Tue, 24 Oct 2017 07:40:45 +0000 (UTC) Received: from smarthost01a.mail.zen.net.uk (smarthost01a.mail.zen.net.uk [212.23.1.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 859012BC042 for ; Tue, 24 Oct 2017 07:40:45 +0000 (UTC) Received: from [82.71.28.203] (helo=echoes) by smarthost01a.mail.zen.net.uk with esmtp (Exim 4.80) (envelope-from ) id 1e6tpL-0007ba-N9 for gentoo-user@lists.gentoo.org; Tue, 24 Oct 2017 07:40:43 +0000 Date: Tue, 24 Oct 2017 08:40:59 +0100 From: john To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LXD Message-ID: <20171024084059.05337a53@echoes> In-Reply-To: References: <20171020082839.4bbab5f6@echoes> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-smarthost01a-IP: [82.71.28.203] Feedback-ID: 82.71.28.203 X-Archives-Salt: 786c8f30-dc5a-4b8f-b558-90cc7e61d8a5 X-Archives-Hash: 228a54aa1742132d25f17477b5eead26 On Tue, 24 Oct 2017 02:35:16 -0400 Tom H wrote: > On Fri, Oct 20, 2017 at 3:28 AM, john wrote: > > > > I have set up some containers with LXD which have been running fine > > up to about a week ago. > > > > cgmanager no longer works as it crashes out and when I connect to > > containers:- > > > > systemctl > > Failed to connect to bus: No such file or directory > > > > which also causes network to fail. > > > > My belief is that lxd now relies on systemd to do the cgmanager > > part. I don't want to install systemd as this is a Gentoo box. > > > > Can anyone see a way round this or a config option which may help. > > cgmanager was an Ubuntu project and it was abandoned when Ubuntu chose > to migrate to systemd [1]. The README on [2] says "Please note that > the CGManager project has been deprecated in favor of using the > kernel's CGroup Namespace or lxcfs' simulated cgroupfs." I don't know > what the "in favor of" means or how to take advantage of those two > options, but maybe there's a solution in there. > > [1] https://s3hh.wordpress.com/2016/06/18/whither-cgmanager/ > > [2] https://github.com/lxc/cgmanager > Thanks Tom, I have got my containers up and running again. Before when I was using lxd it was assigning an ip address to the container so I could connect to outside world. After recent changes this stopped and i believe it was down to systemd not running in the container (it was before). I now realised that you could assign a static ip address using lxc exec command. John