From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 2/2] libvirtd: Enable required cgroups
Date: Fri, 16 Jul 2021 11:14:13 +0000 [thread overview]
Message-ID: <20210716111413.23497-2-michael.tremer@ipfire.org> (raw)
In-Reply-To: <20210716111413.23497-1-michael.tremer@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
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 = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
SUP_ARCH = i586 x86_64
PROG = libvirt
-PAK_VER = 25
+PAK_VER = 26
DEPS = ebtables libpciaccess libtirpc libyajl ncat qemu
diff --git a/src/initscripts/packages/libvirtd b/src/initscripts/packages/libvirtd
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
-
;;
stop)
--
2.20.1
prev parent reply other threads:[~2021-07-16 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-16 11:14 [PATCH 1/2] mountkernfs: Mount cgroup2 hierarchy Michael Tremer
2021-07-16 11:14 ` Michael Tremer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210716111413.23497-2-michael.tremer@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox