mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
libvirtd: Enable required cgroups
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
10a2b80cce
commit
40a3053a67
@@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
SUP_ARCH = i586 x86_64
|
SUP_ARCH = i586 x86_64
|
||||||
PROG = libvirt
|
PROG = libvirt
|
||||||
PAK_VER = 25
|
PAK_VER = 26
|
||||||
|
|
||||||
DEPS = ebtables libpciaccess libtirpc libyajl ncat qemu
|
DEPS = ebtables libpciaccess libtirpc libyajl ncat qemu
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,14 @@ case $1 in
|
|||||||
boot_mesg "Load required kernel modules for Libvirt"
|
boot_mesg "Load required kernel modules for Libvirt"
|
||||||
modprobe tun vhost_net
|
modprobe tun vhost_net
|
||||||
evaluate_retval
|
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..."
|
boot_mesg "Starting Libvirt Daemon..."
|
||||||
loadproc /usr/sbin/libvirtd -d
|
loadproc /usr/sbin/libvirtd -d
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
|||||||
Reference in New Issue
Block a user