Windows:
在CMD里输入:Systeminfo | findstr /i "System Model"
如果System Model:后面含有Virutal就是虚拟机,其他都是物理机
或者用powershell命令:get-wmiobject win32_computersystem | fl model
查windows主机SN序列号:
https://jingyan.baidu.com/album/90895e0f22672e64ec6b0b83.html?picindex=1
https://jingyan.baidu.com/article/c910274ba0fba5cd371d2d62.html
Linux:
在bash里输入:dmidecode -s system-product-name
或者lshw -class system
或者dmesg | grep -i virtual
具体参考:http://unix.stackexchange.com/questions/89714/easy-way-to-determine-virtualization-technology
查linux主机序列号:
https://www.cnblogs.com/itfriend/archive/2013/07/22/3204999.html
ESXI系统
进入命令行方法:https://blog.csdn.net/kepa520/article/details/51417391
查序列号命令:http://blog.51cto.com/liubin0505star/1717473
windows:wmic bios get serialnumber
linux: dmidecode
esxi:esxcli hardware platform get