To find out the virtualization type, you can use the system's built-in hostnamectl command. It is important to note that this requires systemd on the system.
~# hostnamectl status
Static hostname: xxx.xxx.xxx
Icon name: computer-vm
Chassis: vm
Machine ID: xxx9664157f943xxxa1ed59b58bf4xxx
Boot ID: xxx8b5ceed6541xxx3336d1e38a85xxx
Virtualization: kvm
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-20-cloud-amd64
Architecture: x86-64
In the above output, you can see that KVM is used as virtualization.
Now an example for a machine where no virtualization is running:
If the Virtualization entry is present, it is a virtual machine.
Was this article helpful?
Yes
0
No
About Angelo Elmer
Angelo Elmer, a wordsmith with a passion for storytelling, has mastered the art of telling multi-layered stories. His adaptable writing style translates seamlessly to a variety of topics and delivers informative and engaging content.
Redirection running... 5
You are redirected to the target page, please wait.