qemu/kvm.modules

12 lines
284 B
Plaintext
Raw Normal View History

2009-03-04 00:11:57 +00:00
#!/bin/sh
if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
2009-08-17 03:21:08 +00:00
modprobe -b kvm-intel >/dev/null 2>&1
2011-02-08 23:35:06 +00:00
modprobe -b virtio-net >/dev/null 2>&1
2009-03-04 00:11:57 +00:00
fi
if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
2009-08-17 03:21:08 +00:00
modprobe -b kvm-amd >/dev/null 2>&1
2011-02-08 23:35:06 +00:00
modprobe -b virtio-net >/dev/null 2>&1
2009-03-04 00:11:57 +00:00
fi