mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 15:05:56 +08:00
Update check_kernal.sh
This commit is contained in:
parent
f0540fd846
commit
d3ed7133ce
|
@ -4,13 +4,11 @@
|
|||
# 检查CPU是否支持硬件虚拟化
|
||||
if [ "$(egrep -c '(vmx|svm)' /proc/cpuinfo)" -eq 0 ]; then
|
||||
echo "ERROR: CPU does not support hardware virtualization"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 检查虚拟化选项是否启用
|
||||
if [ "$(grep -E -c '(vmx|svm)' /proc/cpuinfo)" -eq 0 ]; then
|
||||
echo "ERROR: Hardware virtualization is not enabled in the BIOS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 检查KVM模块是否已加载
|
||||
|
|
Loading…
Reference in a new issue