Binary package “virt-what” in ubuntu focal
detect if we are running in a virtual machine
Virt-what is a shell script which can be used to detect if the program is
running in a virtual machine (VM).
.
The program prints out a list of "facts" about the virtual machine, derived
from heuristics. One fact is printed per line.