From 41ff081ee024fe749e338564ab23abd422a3bdc4 Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Mon, 14 Oct 2024 22:49:16 +0530 Subject: [PATCH] Update core/tabs/system-setup/arch/virtualization.sh Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --- core/tabs/system-setup/arch/virtualization.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/tabs/system-setup/arch/virtualization.sh b/core/tabs/system-setup/arch/virtualization.sh index 78f33826..5dbe2af6 100755 --- a/core/tabs/system-setup/arch/virtualization.sh +++ b/core/tabs/system-setup/arch/virtualization.sh @@ -31,10 +31,7 @@ installVirtManager() { } checkKVM() { - hardware_avail="$(grep -E 'vmx|svm|0xc0f' /proc/cpuinfo)" - kernel_avail="$(zgrep CONFIG_KVM= /proc/config.gz | cut -d '=' -f 2)" - modules_avail="$(lsmod | grep kvm)" - if [ -z "$hardware_avail" ] || [ -z "$modules_avail" ] || { [ "$kernel_avail" != "m" ] && [ "$kernel_avail" != "y" ]; }; then + if [ ! -e "/dev/kvm" ]; then printf "%b\n" "${RED}KVM is not available. Make sure you have CPU virtualization support enabled in your BIOS/UEFI settings. Please refer https://wiki.archlinux.org/title/KVM for more information.${RC}" else "$ESCALATION_TOOL" usermod "$USER" -aG kvm