Windows:

Type in CMD: Systeminfo | findstr / i "System Model"

 

If "System Model" contains Virutal, it is a virtual machine, the others are physical machines

Or use the powershell command: get-wmiobject win32_computersystem | fl model

 

Linux:

Type in bash: dmidecode -s system-product-name

Or lshw -class system

Or dmesg | grep -i virtual

 

 

 How to determine whether the current host is a physical machine or a virtual machine?

 

 How to determine whether the current host is a physical machine or a virtual machine?

 

相关文章:

  • 2022-12-23
  • 2021-07-15
  • 2021-09-02
  • 2022-01-18
  • 2021-08-03
  • 2021-11-21
  • 2022-01-01
  • 2021-09-05
猜你喜欢
  • 2021-07-06
  • 2021-05-20
  • 2022-01-18
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案