Windows:shell
在CMD裏輸入:Systeminfo | findstr /i "System Model"bash
若是System Model:後面含有Virutal就是虛擬機,其餘都是物理機ide
或者用powershell命令:get-wmiobject win32_computersystem | fl modelspa
Linux:unix
在bash裏輸入:dmidecode -s system-product-namecode
或者lshw -class systemorm
或者dmesg | grep -i virtualget
具體參考:http://unix.stackexchange.com/questions/89714/easy-way-to-determine-virtualization-technology虛擬機