Home >Operation and Maintenance >Linux Operation and Maintenance >How to determine whether a Linux server is a virtual machine or a physical machine
Enter the following command in the terminal:
dmidecode -S system-product-name
or
Ishw -class system
or (free online video tutorial sharing: linux video tutorial )
dmesg | grep -i virtual
If the result returned contains virtual, it is a virtual machine, as shown below:
If the result returned is as follows, based on hardware, it means it is a physical machine.
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to determine whether a Linux server is a virtual machine or a physical machine. For more information, please follow other related articles on the PHP Chinese website!