From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/2] libvirtd: Enable required cgroups Date: Fri, 16 Jul 2021 11:14:13 +0000 Message-ID: <20210716111413.23497-2-michael.tremer@ipfire.org> In-Reply-To: <20210716111413.23497-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4193457119410154315==" List-Id: --===============4193457119410154315== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- lfs/libvirt | 2 +- src/initscripts/packages/libvirtd | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lfs/libvirt b/lfs/libvirt index 28a95d317..b680cbb3d 100644 --- a/lfs/libvirt +++ b/lfs/libvirt @@ -33,7 +33,7 @@ DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) SUP_ARCH =3D i586 x86_64 PROG =3D libvirt -PAK_VER =3D 25 +PAK_VER =3D 26 =20 DEPS =3D ebtables libpciaccess libtirpc libyajl ncat qemu =20 diff --git a/src/initscripts/packages/libvirtd b/src/initscripts/packages/lib= virtd index 40bc6bee3..f0a0b1e8a 100644 --- a/src/initscripts/packages/libvirtd +++ b/src/initscripts/packages/libvirtd @@ -20,9 +20,14 @@ case $1 in boot_mesg "Load required kernel modules for Libvirt" modprobe tun vhost_net evaluate_retval + + # Enable required cgroup controllers + if [ -d "/sys/fs/cgroup" ]; then + echo "+cpu +io" > /sys/fs/cgroup/cgroup.subtree_control + fi + boot_mesg "Starting Libvirt Daemon..." loadproc /usr/sbin/libvirtd -d - ;; =20 stop) --=20 2.20.1 --===============4193457119410154315==--