How do I find out the virtualization type of a Linux VPS?

Angelo Elmer
139 Words
35 Seconds
0
0

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:

~# hostnamectl status

 Static hostname: ga-z97m-ds3h
 Pretty hostname: GA-Z97M-DS3H
       Icon name: computer-desktop
         Chassis: desktop
      Machine ID: xxx58517c0d342xxx33faa4d428d7xxx
         Boot ID: xxx206927b414bxxx0838208012daxxx
Operating System: Fedora Linux 37 (Workstation Edition)
     CPE OS Name: cpe:/o:fedoraproject:fedora:37
          Kernel: Linux 6.0.15-300.fc37.x86_64
    Architecture: x86-64
 Hardware Vendor: Gigabyte Technology Co., Ltd.
  Hardware Model: Z97M-D3H
Firmware Version: F8

If the Virtualization entry is present, it is a virtual machine.

Angelo Elmer

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.