mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 19:44:38 +08:00
Update check_kernal.sh
This commit is contained in:
parent
1ec0828602
commit
6ee3daa961
1 changed files with 4 additions and 2 deletions
|
@ -3,12 +3,14 @@
|
|||
|
||||
# 检查CPU是否支持硬件虚拟化
|
||||
if [ "$(egrep -c '(vmx|svm)' /proc/cpuinfo)" -eq 0 ]; then
|
||||
echo "CPU不支持硬件虚拟化"
|
||||
echo "CPU不支持硬件虚拟化,无法嵌套虚拟化KVM服务器"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 检查虚拟化选项是否启用
|
||||
if [ "$(grep -E -c '(vmx|svm)' /proc/cpuinfo)" -eq 0 ]; then
|
||||
echo "BIOS中未启用硬件虚拟化"
|
||||
echo "BIOS中未启用硬件虚拟化,无法嵌套虚拟化KVM服务器"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 检查KVM模块是否已加载
|
||||
|
|
Loading…
Reference in a new issue