11 lines
249 B
Bash
Executable File
11 lines
249 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$(</proc/cpuinfo)" in
|
|
*vmx*) vmx=1 ;;
|
|
*svm*) svm=1 ;;
|
|
esac
|
|
|
|
[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
|
|
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
|
|
[ "$vmx" -o "$svm" ] && modprobe -b vhost-net >/dev/null 2>&1
|