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
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