+4 votes
in Operating Systems by (6.5k points)
I got a VPS from a provider. How can I check if the virtualization is KVM or OpenVZ?

1 Answer

0 votes
by (35.8k points)

You can run the command "hostnamectl status" to check the type of virtualization on your VPS.

Here is an example:

# hostnamectl status
   Static hostname: mycdn.xyz.com
         Icon name: computer-vm
           Chassis: vm
        Machine ID: fa8312533d539f62d4d68eba56f4021b
           Boot ID: 6c75ad1837eb4f22b48a550d8f99c51d
    Virtualization: kvm
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-18-amd64
      Architecture: x86-64

You can also install "virt-what" to check the virtualization.

# sudo apt-get install virt-what

Then you can run the "virt-what" command to see the virtualization.

# virt-what

Related questions

+2 votes
1 answer
+3 votes
1 answer
+3 votes
1 answer
+2 votes
1 answer