diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index c52f19480..d260c3500 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -46,6 +46,12 @@ if [[ "$(uname -m)" != "x86_64" ]]; then exit 1 fi +cvirt=$(systemd-detect-virt --container) +if [[ "${cvirt}" != "none" ]]; then + echo "Error: Cloudron does not support ${cvirt}, only runs on bare metal or with full hardware virtualization" + exit 1 +fi + # do not use is-active in case box service is down and user attempts to re-install if systemctl cat box.service >/dev/null 2>&1; then echo "Error: Cloudron is already installed. To reinstall, start afresh"