美文网首页
Linux系统是物理机,还是虚拟机

Linux系统是物理机,还是虚拟机

作者: jiaxiaolei | 来源:发表于2023-03-08 14:35 被阅读0次

虚拟机:

root@heto1-k1:~/jiaxl5/jia_scripts/openstack/heto1# lscpu |grep vendor
Hypervisor vendor:               KVM


root@heto1-k1:~/jiaxl5/jia_scripts/openstack/heto1# dmidecode -s system-manufacturer
QEMU

root@heto1-k1:~/jiaxl5/jia_scripts/openstack/heto1#  virt-what
kvm


root@heto1-k1:~/jiaxl5/jia_scripts/openstack/heto1# dmidecode -s system-product-name
Standard PC (Q35 + ICH9, 2009)

 (base) [root@sltvb7v2wy3 ~]# dmidecode -s system-product-name
OpenStack Nova



root@heto1-k1:~/jiaxl5/jia_scripts/openstack/heto1# lshw -class system
heto1-k1                    
    description: Computer
    product: Standard PC (Q35 + ICH9, 2009)
    vendor: QEMU
    version: pc-q35-2.11
    width: 64 bits
    capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
    configuration: boot=normal uuid=154091F6-0752-9949-B9A9-109BDA8519C6
  *-pnp00:00
       product: PnP device PNP0b00
       physical id: 1
       capabilities: pnp
       configuration: driver=rtc_cmos





 (base) [root@sltvb7v2wy3 ~]# dmesg | grep -i virtual
[    0.000000] Booting paravirtualized kernel on KVM
[    0.239723] KVM setup paravirtual spinlock
[    3.062371] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2
[    3.062549] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3
[    3.075841] systemd[1]: Detected virtualization kvm.
[    3.099964] systemd[1]: Starting Setup Virtual Console...
[    3.132483] systemd[1]: Started Setup Virtual Console.

物理机:

root@heto1-j11:~# lscpu |grep vendor
root@heto1-j11:~# 



root@heto1-j11:~# dmidecode -s system-manufacturer
Lenovo


root@heto1-j11:~# virt-what
root@heto1-j11:~# 

root@heto1-j11:~# dmidecode -s system-product-name
ThinkSystem SR650 V2



root@heto1-j11:~# lshw -class system
heto1-j11                   
    description: Rack Mount Chassis
    product: ThinkSystem SR650 V2 (7Z73CTO1WW)
    vendor: Lenovo
    version: 07
    serial: J30AAHLA
    width: 64 bits
    capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32
    configuration: boot=normal chassis=rackmount family=ThinkSystem sku=7Z73CTO1WW uuid=F0D7D78E-9102-ED11-8B33-3A68DD80E28B




root@heto1-j11:~# dmesg | grep -i virtual
[    4.373616] Booting paravirtualized kernel on bare hardware
[    9.223455] DMAR: Intel(R) Virtualization Technology for Directed I/O
[   10.503607] scsi 0:0:68:0: Enclosure         LSI      VirtualSES       03   PQ: 0 ANSI: 7

扩展阅读

Intel的虚拟化技术称为Intel-VT(Virtual Technology),
而AMD的叫做AMD-V(AMD Virtualization,AMD主板的BIOS中称为SVM)。

如何检查 Linux 系统是运行在虚拟机上还是物理机上?

https://www.51cto.com/article/746440.html

简介:

介绍了 dmidecode 和 virt-what

DMI 是桌面管理界面(Desktop Management Interface)的缩写,是几乎所有系统制造商都遵守的标准。DMI 框架用于管理和跟踪桌面、笔记本电脑或服务器计算机中的组件。

由于有了 DMI,我们可以获得有关系统硬件、系统制造商和设备序列号的信息,而使用 dmidecode(DMI Decode)命令,可以获取这些信息。另外,使用 -s system-manufacturer 也可获取制造商的详细信息。

如何检查你拿到手的Linux系统是物理机,还是虚拟机?

https://www.cnblogs.com/panw/p/16359561.html

简介:

相关文章

  • Xshell5 远程连接本地虚拟机Ubuntu16

    在虚拟机上安装Linux系统Ubuntu 16.04.3 LTS 在物理机上安装Xshell 5 进入虚拟机Ubu...

  • 暴力破解linux系统密码

    一工具准备 随便一台装linux系统的物理机或者虚拟机,本次试验主要以装有centos7.4的虚拟机来演示如...

  • 使用virtualBox虚拟机搭建linux环境,整理遇到的问题

    工作用的系统是windows,为了可以熟悉linux系统,决定在电脑上安装虚拟机用来装linux系统。 虚拟机中V...

  • storm 集群安装

    Apache Storm是自由开源的分布式实时计算系统。linux集群安装环境需求: 三台物理机或虚拟机 此处是三...

  • Linux下Nginx的安装与配置

    本人电脑使用的是虚拟机安装 * Linux 的方式,虚拟机采用的是VMware , Linux * 系统版本为* ...

  • Linux基础命令

    Linux操作系统 1、安装Linux系统 1、安装虚拟机2、在虚拟机中安装Linux系统 2、连接服务器 **1...

  • 2019-01-18(Linux)

    1.虚拟机安装CenOS系统虚拟机如何安装系统 2.Linux系统基本命令学习Linux学习 3.环境准备( 案例...

  • Lua虚拟机深入

    Lua虚拟机 1.什么是虚拟机、工作职责?虚拟机相对于物理机,借助于操作系统对物理机器(CPU等硬件)的一种模拟、...

  • 12/5

    今天装了虚拟机和Linux系统,学习使用Linux

  • Linux安装及其静态IP配置,安装JDK与Tomcat

    Linux虚拟机安装及静态IP配置 环境 新建Linux虚拟电脑 Linux虚拟机系统安装 静态IP配置 安装JD...

网友评论

      本文标题:Linux系统是物理机,还是虚拟机

      本文链接:https://www.haomeiwen.com/subject/nlloldtx.html