qemu/kvm.modules
2011-02-08 17:35:06 -06:00

12 lines
284 B
Bash
Executable File

#!/bin/sh
if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
modprobe -b kvm-intel >/dev/null 2>&1
modprobe -b virtio-net >/dev/null 2>&1
fi
if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
modprobe -b kvm-amd >/dev/null 2>&1
modprobe -b virtio-net >/dev/null 2>&1
fi