Merge "Load appropriate modules for libvirt"
This commit is contained in:
commit
0573da4424
@ -1,5 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [[ $(cat /proc/cpuinfo | grep vmx) ]]; then
|
||||
modprobe kvm_intel
|
||||
elif [[ $(cat /proc/cpuinfo | grep svm) ]]; then
|
||||
modprobe kvm_amd
|
||||
else
|
||||
echo "WARNING: Your hardware does not support hardware virtualization -" \
|
||||
"using qemu software virtualization instead"
|
||||
fi
|
||||
|
||||
modprobe ip6_tables ip_tables ebtable_nat
|
||||
|
||||
# If libvirt is not installed on the host permissions need to be set
|
||||
# If running in qemu, we don't need to set anything as /dev/kvm won't exist
|
||||
if [[ -c /dev/kvm ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user