現代服務器支持虛擬化(包括Intel和AMD)。部分機器可能在BIOS關閉,如何確認是否開啓呢?服務器
本文以CentOS7 虛擬機爲例,請看下文ide
[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)