Background
Use this handy command to determine what kind of virtualization your server is running:
sudo dmidecode -s system-manufacturer
If the utility doesn’t exist, simply
apt install dmidecode
Here are some real world answers we got querying a number of Linux machines across different infrastructures:
> Xen (AWS) > Xen (AWS Lightsail) > Google (Google Compute Engine) > Virtuozzo (Private ISP) > Microsoft Corporation (Hyper-V) > DigitalOcean
Reference
How To Check If A Linux System Is Physical Or Virtual Machine