怎么看服务器上有没有虚拟机,查看Linux系列服务器是否为虚拟机

该博客介绍了如何通过运行`lscpu`命令来查看Linux系统的CPU详细信息,包括架构、核心数、超线程、虚拟化技术等。其中,`Hypervisor vendor`字段显示了系统是否运行在虚拟环境中,如KVM或Hyper-V。对于Intel CPU,如果显示VT-x则表示支持硬件虚拟化,而AMD CPU则显示AMD-v。
摘要由CSDN通过智能技术生成

一个命令即可查看 lscpu

[root@pjHH1orz9J ~]# lscpuArchitecture:        x86_64 CPU op-mode(s):      32-bit, 64-bit Byte Order:          Little Endian CPU(s):              4 On-line CPU(s) list: 0-3 Thread(s) per core:  1 Core(s) per socket:  1 Socket(s):           4 NUMA node(s):        1 Vendor ID:           GenuineIntel CPU family:          6 Model:               62 Model name:          Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz Stepping:            4 CPU MHz:             2499.998 BogoMIPS:            4999.99 Hypervisor vendor:   KVM Virtualization type: full L1d cache:           32K L1i cache:           32K L2 cache:            4096K NUMA node0 CPU(s):   0-3 Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust smep erms xsaveopt [root@pjHH1orz9J ~]#

其中 Hypervisor vendor的值有以下几种

KVM,Hyper-V一定是虚拟机

非虚拟机Intel系列CPU则显示VT-x

非虚拟机AMD系列CPU则显示AMD-v

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值