From 228743e28c214fb41b03e17de424e3223907f7c8 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 26 Feb 2023 20:51:02 +0800 Subject: [PATCH] Update check_kernal.sh --- check_kernal.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/check_kernal.sh b/check_kernal.sh index 4daf9a4..5708679 100644 --- a/check_kernal.sh +++ b/check_kernal.sh @@ -33,6 +33,7 @@ if [ "$(cat /sys/module/kvm_intel/parameters/nested)" = "Y" ]; then fi else _yellow "本机操作系统不支持KVM硬件嵌套虚拟化,使用PVE虚拟化出来的KVM服务器不能在选项中开启KVM硬件虚拟化,记得在开出来的KVM服务器选项中关闭" + exit 1 fi # 如果KVM模块未加载,则加载KVM模块并将其添加到/etc/modules文件中