Devuan bug report logs - #426
lxc: cannot start Fedora30 and Debian Stretch in LXC containers

version graph

Package: cgroupfs-mount; Maintainer for cgroupfs-mount is Tanya <tanyadegurechaff@waifu.club>; Source for cgroupfs-mount is src:cgroupfs-mount.

Reported by: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>

Date: Fri, 24 Apr 2020 10:03:01 UTC

Severity: grave

Tags: debian

Fixed in version 1.4+devuan1

Done: dak@devuan.org

Forwarded to https://bugs.debian.org/939435

Full log


Message #31 received at 426@bugs.devuan.org (full text, mbox, reply):

Received: (at 426) by bugs.devuan.org; 5 May 2020 22:30:02 +0000
Return-Path: <matsumoto.r.aa@m.titech.ac.jp>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Tue, 05 May 2020 22:30:02 +0000 (UTC)
Received: from mail002.nap.gsic.titech.ac.jp (mail002.nap.gsic.titech.ac.jp [131.112.13.102])
	by vm6.ganeti.dyne.org (Postfix) with SMTP id D99BEF604DA
	for <426@bugs.devuan.org>; Wed,  6 May 2020 00:24:11 +0200 (CEST)
Received: from 172.22.40.203
	by mail002.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V7.00(2639:0:AUTH_RELAY)
	(envelope-from <matsumoto.r.aa@m.titech.ac.jp>); Wed, 06 May 2020 07:24:08 +0900 (JST)
Received: from mail002.nap.gsic.titech.ac.jp (mail002.nap.gsic.titech.ac.jp [131.112.13.102])
	by drweb06.nap.gsic.titech.ac.jp (Postfix) with SMTP id 0F945EB;
	Wed,  6 May 2020 07:24:08 +0900 (JST)
Received: from 153.193.129.115
	by mail002.nap.gsic.titech.ac.jp with Mail2000 ESMTPA Server V7.00(2638:0:AUTH_LOGIN)
	(envelope-from <matsumoto.r.aa@m.titech.ac.jp>); Wed, 06 May 2020 07:24:05 +0900 (JST)
Date: Wed, 06 May 2020 07:24:00 +0900 (JST)
Message-Id: <20200506.072400.524315120164583672.ryutaroh@ict.e.titech.ac.jp>
To: mark@hindley.org.uk
Cc: 426@bugs.devuan.org
Subject: Re: lxc: cannot start Fedora30 and Debian Stretch in LXC containers
From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
In-Reply-To: <20200427.114803.1437962298189317609.ryutaroh@ict.e.titech.ac.jp>
References: <20200425.044713.1306704157252843423.ryutaroh@ict.e.titech.ac.jp>
	<20200425094838.GK22592@hindley.org.uk>
	<20200427.114803.1437962298189317609.ryutaroh@ict.e.titech.ac.jp>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Hi Mark,

From https://wiki.debian.org/LXC#Preparing_host_system_WITHOUT_Systemd_for_running_LXC

According to Gentoo wiki, if you want to run containers with systemd, the host also needs a name=systemd cgroup hierarchy mounted: mkdir -p /sys/fs/cgroup/systemd; mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd.

With that, lxc-checkconfig no longer complains and containers with systemd are able to start.

This was reported to package cgroupfs-mount in bug #939435 (patch included).

Best regards, Ryutaroh

From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Subject: Re: lxc: cannot start Fedora30 and Debian Stretch in LXC containers
Date: Mon, 27 Apr 2020 11:48:03 +0900 (JST)

> Hi Mark,
> 
>> A few other ideas to try: obviously the lxc container is looking for the host
>> /sys/fs/cgroup/systemd which doesn't exist. Does creating it manually help?
>> Does installing cgmanager help (I am not sure if that will create and manage
>> /sys/fs/cgroup/systemd)?
> 
> None of them worked.
> My Devuan is running on qemu.
> I can upload the image so that you can try on your computer.
> 
> Best regards,
> Ryutaroh
> 
> From: Mark Hindley <mark@hindley.org.uk>
> Subject: Re: lxc: cannot start Fedora30 and Debian Stretch in LXC containers
> Date: Sat, 25 Apr 2020 10:48:38 +0100
> 
>> On Sat, Apr 25, 2020 at 04:47:13AM +0900, Ryutaroh Matsumoto wrote:
>>> Hi Mark,
>>> 
>>> Thanks for your help.
>>> I was able to use Gentoo in the LXC container on Devuan.
>>> So this is not a general problem of LXC.
>>> It is specific to Devuan hosts and systemd containers.
>> 
>> Helpful to know.
>> 
>>> Booting with apparmor=0 did not help.
>>> I selected openrc. Replacing with sysv-rc did not help.
>> 
>> Thanks for trying.
>> 
>>> I wonder what is the cgroup mounts without cgroupfs-mount, so
>>> I tried apt-get purge cgroupfs-mount, and got the following.
>>> I have no idea how to remove cgroupfs-mount from Devuan 3:
>> 
>> See my answer to #428.
>> 
>>> Stating that Devuan LXC does not support distros with systemd
>>> and closing this but might be a good idea...
>> 
>> Yes, it might come to that. However, I would like to exhaust other possibilities
>> first.
>> 
>> A few other ideas to try: obviously the lxc container is looking for the host
>> /sys/fs/cgroup/systemd which doesn't exist. Does creating it manually help?
>> Does installing cgmanager help (I am not sure if that will create and manage
>> /sys/fs/cgroup/systemd)?
>> 
>> Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Nov 23 17:42:33 2024;