Check which virtualization technology is supported by your processor in Debian 10

When do you need virtualization technology (VT) in a processor?

Virtualization technology allows your processor to act as a series of independent computer systems. This allows multiple operating systems to run on the same computer at the same time. Whenever you want to install virtualization applications on your Debian system, such as VMware Workstation, VirtualBox, etc., you must first check whether your system supports virtualization and whether it is enabled. Only then can you start virtual machines using a single processor.

This article describes the following methods to verify that your processor supports virtual technology on a Debian system:

  • lscpu team
  • cpu-checker utility
  • File / proc / cpuinfo
  • Libvirt Client Utility

You can replicate the commands and procedures mentioned in this article for the Debian 10 Buster system and slightly older versions.

Since we will use Debian command underwear to test VT on our processor, you can open Terinal through a search in Application Launcher as follows:

Check if VT is enabled in the CPU

Here we explain 4 simple ways to check if VT is enabled on your processor:

1. Method: using the lscpu command

The lscpu command is a popular method for retrieving your processor architecture information. This command retrieves hardware information from the / pro / cpuinfo sysfs file. This information includes, but is not limited to, the number of processors, processor mode, sockets, cores, threads, model name, and virtualization information.

Just run the following command in your terminal:

$ lscpu

Here is the output format that you usually see:

lscpu team

Go to virtualization exit; As a result, VT-x ensures that virtualization is truly enabled on our system.

2. Method: through the cpu-checker utility

The cpu-checker utility is, among other things, another way to test virtualization technology. Since most Linux systems do not have this feature by default, you can install it by running the following command as sudo:

$ sudo apt-get install cpu-checker

Install CPU Checker

Advertisement

Advertisement

Please note that only an authorized user can add / remove and configure software in Debian.

After you enter the password for sudo, the system may ask you for the y / n parameter to check if you want to continue the installation. Please enter y and press Enter, after which cpu-checker will be installed on your system

The following command from this utility will help you check if your processor is supported by virtualization:

$ sudo kvm-ok

kvm-ok command

The above output indicates that VT is enabled on your system. However, if you get the following output, it means that you need to enable virtualization in order to use applications running on this technology:

INFO: Your CPU does not support KVM extensions. KVM acceleration cannot be used.

Your processor supports KVM extensions

The HINT section in the screenshot above explains how you can enable VT on your system.

3. Method: from the file / proc / cpuinfo

We can also manually extract the relevant information from the / proc / cpuinfo file using the egrep command. For example, since we want to retrieve information related to virtualization, we can use the egrep command as follows to retrieve information related to svm or vmx:

$ egrep "svm|vmx" /proc/cpuinfo

In the output, you will see one of the following information confirming that virtualization is enabled on your system:

Svm: AVM-V Support Information

Vmx: Intel-VT Technology Support Information

This is the output of the above command on my system:

Check processor information

A vmx indication and information in the output indicates that Intel-VT virtual technology is enabled and supported by my system. If you do not find any output for this command, it means that / proc / cpuinfo does not contain any VT information, and it is either unavailable or disabled in the BIOS settings.

4. Method: through the Libvirt client utility

There is a virtual host validation tool called virt-host-validate. To use this, you need to install the libvert-clients package on your system. Since most Linus systems do not have this feature by default, you can install it by running the following command as sudo:

$ sudo apt-get install libvirt-clients

virtual host Validate

After you enter the password for sudo, the system may ask you for the y / n parameter to check if you want to continue the installation. Please enter y and press Enter, after which cpu-checker will be installed on your system

The following virt-host-validate command from this utility will help you check if your processor is supported by virtualization, among many other things:

$ virt-host-validate

CPU Test Result

You can see that “QEMU: hardware virtualization test” shows the status of the result as PASS in my system. This indicated that VT was indeed enabled on my processor. If the status of the result “FAIL” in someone else’s output means that virtualization is either not supported or otherwise not enabled.

Now you have not one, but four very simple ways to check if your equipment supports virtualization. This is the power of Linux, with a single command you can perform a seemingly difficult task.

Check which virtualization technology is supported by your processor in Debian 10

Sidebar