Skip to content

Instantly share code, notes, and snippets.

@rexagod
Last active January 12, 2021 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexagod/53223bd451d372b2299351ffdfd818b0 to your computer and use it in GitHub Desktop.
Save rexagod/53223bd451d372b2299351ffdfd818b0 to your computer and use it in GitHub Desktop.
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