#!/bin/bash . /usr/src/m2/framework/bash_functions.sh k_detect_vm # check if this machine is virtual? if [ "$VM_DETECTED" == "0" ]; then report "Physical server detected" 0 else report "Virtual server detected: $VM_TYPE" 3 if [ "$VM_TYPE" == "LXC" ]; then report "Sorry but your virtualization technology LXC is not supported" 1 exit 1 fi fi