RT. 看到有位老兄的帖子"这是大号VPS还是物理机?" https://hostloc.com/forum.php?mo … 6orderby%3Dlastpost
于是我也百度了一下如何判断物理机还是虚拟机, 百度出来两个命令:
- 1. dmesg |grep -i virtual
复制代码
- 2. dmidecode -s system-product-name
复制代码
我顺手看了一下我在KURUN的"独服",
[[email protected] ~]# dmesg | grep -i virtual [0.041509] Booting paravirtualized kernel on bare hardware [[email protected] ~]# dmidecode -s system-product-name SYS-5037MC-H8TRF
是这个型号"SYS-5037MC-H8TRF", 百度了一下, 2011年的新闻: "SYS-5037MC-H8TRF是一款最新高密度多节点单处理器 (UP) 服务器 MicroCloud,该款机器在小型3U 规格中提供8/16 个热插拔节点和16 个热插拔 HDD。"
斯巴达的小鸡出来的是这个:
[root@google ~]# dmesg |grep -i virtual [0.000000] Booting paravirtualized kernel on KVM [0.729058] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input4 [0.729792] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3 [0.845895] systemd[1]: Detected virtualization kvm. [3.702043] systemd[1]: Detected virtualization kvm.
|