1 ################################################################################
3 ################################################################################
5 # Give the /dev/kvm to the kvm group
6 # Add your user account to that group to use KVM.
7 KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
9 # Do the same for network devices.
10 KERNEL=="tun", GROUP="kvm", MODE="0660"
12 # when the user loads the kvm module, automatically load kvm-intel or
13 # kvm-amd depending on the hardware
14 ACTION=="add", DEVPATH=="/module/kvm", RUN+="/bin/sh -c 'grep -q vmx /proc/cpuinfo +&& /sbin/modprobe kvm-intel; grep -q svm /proc/cpuinfo && /sbin/modprobe kvm-amd'"