prefix=@prefix@
exec_prefix=@exec_prefix@
PATH="${root}@libexecdir@:${root}/sbin:${root}/usr/sbin:${PATH}"
+export PATH
# Check we're running as root.
EFFUID=$(id -u) || fail "failed to get current user id"
echo virtualbox
fi
+# Check for bhyve.
+if [ "$cpuid" = "bhyve bhyve " ]; then
+ echo bhyve
+elif echo "$dmi" | grep -q "Vendor: BHYVE"; then
+ echo bhyve
+fi
+
# Check for OpenVZ / Virtuozzo.
# Added by Evgeniy Sokolov.
# /proc/vz - always exists if OpenVZ kernel is running (inside and outside
skip_qemu_kvm=true
fi
-# Check for oVirt.
+# Check for oVirt/RHEV.
if echo "$dmi" | grep -q 'Manufacturer: oVirt'; then
echo ovirt
fi
+if echo "$dmi" | grep -q 'Product Name: RHEV Hypervisor'; then
+ echo rhev
+fi
# Check for Xen.
echo qemu
skip_lkvm=true
fi
+ elif [ -d /proc/device-tree/hypervisor ] &&
+ grep -q "linux,kvm" /proc/device-tree/hypervisor/compatible; then
+ # We are running as a spapr KVM guest on ppc64
+ echo kvm
+ skip_lkvm=true
else
# XXX This is known to fail for qemu with the explicit -cpu
# option, since /proc/cpuinfo will not contain the QEMU
if [ "$arch" = "ppc64" ]; then
if have_cpuinfo && grep -q 'platform.**pSeries' "${root}/proc/cpuinfo"; then
if grep -q 'model.*emulated by qemu' "${root}/proc/cpuinfo"; then
- echo ibm_ppc64_kvm
+ echo ibm_power-kvm
else
# Assume LPAR, now detect shared or dedicated
if grep -q 'shared_processor_mode=1' "${root}/proc/ppc64/lparcfg"; then
- echo ibm_ppc64_lpar_shared
+ echo ibm_power-lpar_shared
else
- echo ibm_ppc64_lpar_dedicated
+ echo ibm_power-lpar_dedicated
fi
# detect powerkvm?
fi