Last active
January 12, 2021 15:33
-
-
Save rexagod/53223bd451d372b2299351ffdfd818b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $EUID -ne 0 ]]; then | |
exit 1 | |
fi | |
set -e | |
egrep '^flags.*(vmx|svm)' /proc/cpuinfo || exit 1 | |
dnf group install --with-optional virtualization | |
systemctl start libvirtd | |
systemctl enable libvirtd | |
lsmod | grep kvm || exit 1 | |
getent group | grep libvirt. || exit 1 | |
usermod -a -G libvirt $(whoami) | |
newgrp libvirt | |
systemctl status libvirtd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment