#查看系统虚拟化技术-虚拟机还是物理机
Windows

查看系统制造商与型号:
CMD下Systeminfo命令
powershell下get-wmiobject win32_computersystem 命令

linux

lspci

dmidecode -s system-product-name 查看虚拟化技术:
##dmidecode | egrep -i 'manufacturer|product|vendor' #Memory Device
#bare metal an identification of the computer or motherboard model.
#VMware Workstation VMware Virtual Platform
#VirtualBox VirtualBox
#Qemu with KVM KVM
#Qemu (emulated) Bochs
#Microsoft VirtualPC Microsoft Corporation Virtual Machine
#Virtuozzo /dev/mem: Permission denied
#Xen HVM domU

ls -1 /dev/disk/by-id/ #QEMU

cat /proc/scsi/scsi #Vendor
#The virtio_net is part of KVM. The /proc/scsi/scsi tells you that you're in a VM, and that you're most likely KVM.

lshw -class system #product vendor

dmesg | grep -i virtual #Vendor Hypervisor

systemd-detect-virt

facter virtual

hostnamectl status #虚拟机有虚拟化类型Virtualization

imvirt

/sbin/ethtool -i eth0 #虚拟机获取读到驱动信息

根据MAC地址判断设备类型:
00:50:56 开头的都是Vmware的虚拟机
00:15:5d 开头的都是Hyper-v的虚拟机
XEN/KVM的MAC地址没有规律
dc:ae:52 开头的是Dell的产品
#MAC厂商查询地址
http://www.coffer.com/mac_find/

参考特征:
http://img.blog.csdn.net/20150127103915755?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaGNrTWU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA/dissolve/70/gravity/Center

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code