Skip to content

Commit

Permalink
Update core/tabs/system-setup/arch/virtualization.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Liam <[email protected]>
  • Loading branch information
jeevithakannan2 and lj3954 authored Oct 14, 2024
1 parent 8e400f7 commit 41ff081
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/tabs/system-setup/arch/virtualization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41ff081

Please sign in to comment.