Update machine_type (#564)

detect kvm on proxmox
remotes/origin/prometheus-more-fixes
Sven Wick 8 years ago committed by Darko Poljak
parent 5213f343c0
commit ed55d01b35
  1. 14
      cdist/conf/explorer/machine_type

@ -56,6 +56,20 @@ if [ -r /proc/cpuinfo ]; then
exit
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
echo "virtual_by_unknown"
else

Loading…
Cancel
Save