So I'm running a VM somewhere and want to know what hypervisor the host is running. Any way to check whether it's running KVM or in a container?
The vm is running Ubuntu
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Without external tools:
sudo dmidecode | grep -i -e manufacturer -e product -e vendor
sudo grep -i -e virtual -e vbox -e xen /var/log/dmesg # or /var/log/kern.log
should give you enough to go on.
You can see checks for specific platforms in the ImVirt module.