The virt-what command is used to detect if the system is running in a virtual machine environment and can identify which hypervisor is being used.
Examplevirt-what
virt-what
DevOpsSchoolTypically replies within an hour