#!/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