如何确认CentOS 7 是否支持虚拟化

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

现代服务器支持虚拟化(包括Intel和AMD)。部分机器可能在BIOS关闭,如何确认是否开启呢?

本文以CentOS7 虚拟机为例,请看下文

[root@promote ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@promote ~]# yum -y install libvirt-client virt-host-validate
#执行命令virt-host-validate
#本机是虚拟机,实际输出内容以本机实际内容为准
[root@promote ~]# sudo virt-host-validate
  QEMU: 正在检查 for hardware virtualization                                 : FAIL (只有模拟的 CPU,性能会受到很大限制。)
  QEMU: 正在检查 if device /dev/vhost-net exists                             : PASS
  QEMU: 正在检查 if device /dev/net/tun exists                               : PASS
  QEMU: 正在检查 for cgroup 'memory' controller support                      : PASS
  QEMU: 正在检查 for cgroup 'memory' controller mount-point                  : PASS
  QEMU: 正在检查 for cgroup 'cpu' controller support                         : PASS
  QEMU: 正在检查 for cgroup 'cpu' controller mount-point                     : PASS
  QEMU: 正在检查 for cgroup 'cpuacct' controller support                     : PASS
  QEMU: 正在检查 for cgroup 'cpuacct' controller mount-point                 : PASS
  QEMU: 正在检查 for cgroup 'cpuset' controller support                      : PASS
  QEMU: 正在检查 for cgroup 'cpuset' controller mount-point                  : PASS
  QEMU: 正在检查 for cgroup 'devices' controller support                     : PASS
  QEMU: 正在检查 for cgroup 'devices' controller mount-point                 : PASS
  QEMU: 正在检查 for cgroup 'blkio' controller support                       : PASS
  QEMU: 正在检查 for cgroup 'blkio' controller mount-point                   : PASS
WARN (Unknown if this platform has IOMMU support)
   LXC: 正在检查 用于 Linux >= 2.6.26                                        : PASS
   LXC: 正在检查 for namespace ipc                                           : PASS
   LXC: 正在检查 for namespace mnt                                           : PASS
   LXC: 正在检查 for namespace pid                                           : PASS
   LXC: 正在检查 for namespace uts                                           : PASS
   LXC: 正在检查 for namespace net                                           : PASS
   LXC: 正在检查 for namespace user                                          : PASS
   LXC: 正在检查 for cgroup 'memory' controller support                      : PASS
   LXC: 正在检查 for cgroup 'memory' controller mount-point                  : PASS
   LXC: 正在检查 for cgroup 'cpu' controller support                         : PASS
   LXC: 正在检查 for cgroup 'cpu' controller mount-point                     : PASS
   LXC: 正在检查 for cgroup 'cpuacct' controller support                     : PASS
   LXC: 正在检查 for cgroup 'cpuacct' controller mount-point                 : PASS
   LXC: 正在检查 for cgroup 'cpuset' controller support                      : PASS
   LXC: 正在检查 for cgroup 'cpuset' controller mount-point                  : PASS
   LXC: 正在检查 for cgroup 'devices' controller support                     : PASS
   LXC: 正在检查 for cgroup 'devices' controller mount-point                 : PASS
   LXC: 正在检查 for cgroup 'blkio' controller support                       : PASS
   LXC: 正在检查 for cgroup 'blkio' controller mount-point                   : PASS
   LXC: 正在检查 if device /sys/fs/fuse/connections exists                   : FAIL (Load the 'fuse' module to enable /proc/ overrides)

 

转载于:https://my.oschina.net/u/1011130/blog/3031236

你可能感兴趣的:(如何确认CentOS 7 是否支持虚拟化)