render / rpms / qemu

Forked from rpms/qemu 10 months ago
Clone
Glauber Costa b8bea8
#!/bin/sh
Glauber Costa b8bea8
Glauber Costa b8bea8
if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then 
Lubomir Rintel baac61
    modprobe -b kvm-intel >/dev/null 2>&1
Justin M. Forbes 6a630c
    modprobe -b virtio-net >/dev/null 2>&1
Justin M. Forbes 9890a7
    modprobe -b vhost-net >/dev/null 2>&1
Glauber Costa b8bea8
fi
Glauber Costa b8bea8
Glauber Costa b8bea8
if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then 
Lubomir Rintel baac61
    modprobe -b kvm-amd >/dev/null 2>&1
Justin M. Forbes 6a630c
    modprobe -b virtio-net >/dev/null 2>&1
Justin M. Forbes 9890a7
    modprobe -b vhost-net >/dev/null 2>&1
Glauber Costa b8bea8
fi