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

1 Answer

+1 vote
by (48.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
openvz
lxc

Related questions

+2 votes
1 answer
+4 votes
1 answer
+4 votes
1 answer
asked Nov 16, 2021 in Operating Systems by kush (14.6k points)
+3 votes
1 answer
+2 votes
1 answer

...