当前位置:首页 > 虚拟机 > 正文

如何查看虚拟机还是物理机


一、如何查看linux系统是物理机还是虚拟机?Windows:\x0d\x0a在CMD中输入:Systeminfo|findstr/i"SystemModel"\x0d\x0a如果SystemModel:最后包含Virutal,则为虚拟机,其他都是物理机\x0d\x0a或者使用powershell命令:get-wmiobjectwin32_computersystem|flmodel\x0d\x0aLinux:\x0d\x0a在bash中输入:dmidecode-ssystem-product-name\x0d\x0a或lshw-classsystem\x0d\x0a或dmesg|grep-ivirtual