Update machine_type (#564)

detect kvm on proxmox
This commit is contained in:
Sven Wick 2017-09-01 20:56:48 +02:00 committed by Darko Poljak
parent 5213f343c0
commit ed55d01b35

View file

@ -56,6 +56,20 @@ if [ -r /proc/cpuinfo ]; then
exit exit
fi fi
fi fi
if [ -r /sys/class/dmi/id/sys_vendor ]; then
if grep -q -i 'qemu' /sys/class/dmi/id/sys_vendor; then
echo "virtual_by_kvm"
exit
fi
fi
if [ -r /sys/class/dmi/id/chassis_vendor ]; then
if grep -q -i 'qemu' /sys/class/dmi/id/chassis_vendor; then
echo "virtual_by_kvm"
exit
fi
fi
fi fi
echo "virtual_by_unknown" echo "virtual_by_unknown"
else else