mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 06:24:26 +00:00
Update virtualization.sh
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
1ee60ff561
commit
8e400f726b
|
@ -35,7 +35,7 @@ checkKVM() {
|
||||||
kernel_avail="$(zgrep CONFIG_KVM= /proc/config.gz | cut -d '=' -f 2)"
|
kernel_avail="$(zgrep CONFIG_KVM= /proc/config.gz | cut -d '=' -f 2)"
|
||||||
modules_avail="$(lsmod | grep kvm)"
|
modules_avail="$(lsmod | grep kvm)"
|
||||||
if [ -z "$hardware_avail" ] || [ -z "$modules_avail" ] || { [ "$kernel_avail" != "m" ] && [ "$kernel_avail" != "y" ]; }; then
|
if [ -z "$hardware_avail" ] || [ -z "$modules_avail" ] || { [ "$kernel_avail" != "m" ] && [ "$kernel_avail" != "y" ]; }; then
|
||||||
printf "%b\n" "${RED}KVM is not available. Please refer https://wiki.archlinux.org/title/KVM for more information.${RC}"
|
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
|
else
|
||||||
"$ESCALATION_TOOL" usermod "$USER" -aG kvm
|
"$ESCALATION_TOOL" usermod "$USER" -aG kvm
|
||||||
fi
|
fi
|
||||||
|
@ -103,4 +103,4 @@ main() {
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue
Block a user