Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to determine whether the linux server is a virtual machine or a physical machine

Shulou Source: shulou.com Published: 2022-06-03 08:00:32 11月17日 Update

With the increasing maturity of virtualization technology, more and more enterprises begin to accept the use of virtualization software products. Virtualization technology greatly improves the utilization of server resources and reduces the operating costs of enterprises. In order to make better use of virtualization technology to support business and integrate resources, most enterprises will consider converting existing physical servers into virtual machines, so as to achieve virtualization, free up server resources, and reduce enterprise costs. Linux servers are often encountered by everyone, so people often ask Xiaobian whether this is a physical machine or a virtual machine. Today, I will introduce you the method:

Enter the following command at the terminal:

Dmidecode-S system-product-name

Or

Ishw-class system

Or (free online video tutorials share: linux video tutorials)

Dmesg | grep-I virtual

If the result returned contains virtual, it is a virtual machine, as shown in the following figure:

If the following is returned, based on hardware, it is a physical machine.

Recommended for related articles and tutorials: linux tutorial

The above is the details of how to judge whether the linux server is a virtual machine or a physical machine, please pay attention to other related articles!

Tags: Servers services physics enterprises tutorials technology resources or costs articles video maturity business products content utilization commands online video for the most part Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker MySQL macOS Huawei