Install virt-what by entering the following commands in the terminal:
sudo apt update sudo apt install virt-what
Description:
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.
Homepage: https://people.redhat.com/~rjones/virt-what/
Version: 1.18-2
Section: universe/admin