CentOS 7 的 KVM 虚拟化

CentOS 7 的 KVM 虚拟化

我在 KVM 中度过了一段非常痛苦的时光。似乎每个 HOWTO 都提供了不同的软件包列表,我已经安装了它们全部:

[me@tarantula ~]$ rpm -qa | egrep 'kvm|qemu|virt'
qemu-kvm-common-1.5.3-105.el7_2.3.x86_64
libvirt-daemon-driver-secret-1.2.17-13.el7_2.3.x86_64
virt-manager-common-1.2.1-8.el7.noarch
libvirt-daemon-driver-network-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-kvm-1.2.17-13.el7_2.3.x86_64
libvirt-client-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-qemu-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-config-network-1.2.17-13.el7_2.3.x86_64
libvirt-gobject-0.1.9-1.el7.x86_64
virt-what-1.13-6.el7.x86_64
libvirt-python-1.2.17-2.el7.x86_64
qemu-system-x86-2.0.0-1.el7.6.x86_64
libgovirt-0.3.3-1.el7_2.1.x86_64
libvirt-daemon-driver-storage-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.3.x86_64
libvirt-glib-0.1.9-1.el7.x86_64
libvirt-daemon-driver-lxc-1.2.17-13.el7_2.3.x86_64
virt-install-1.2.1-8.el7.noarch
qemu-img-1.5.3-105.el7_2.3.x86_64
qemu-guest-agent-2.3.0-4.el7.x86_64
libvirt-daemon-config-nwfilter-1.2.17-13.el7_2.3.x86_64
libvirt-1.2.17-13.el7_2.3.x86_64
virt-manager-1.2.1-8.el7.noarch
libvirt-daemon-1.2.17-13.el7_2.3.x86_64
libvirt-gconfig-0.1.9-1.el7.x86_64
qemu-common-2.0.0-1.el7.6.x86_64
qemu-kvm-1.5.3-105.el7_2.3.x86_64
libvirt-daemon-driver-interface-1.2.17-13.el7_2.3.x86_64
ipxe-roms-qemu-20130517-8.gitc4bce43.el7_2.1.noarch 

然而:

[me@tarantula ~]$ lsmod | grep kvm
[me@tarantula ~]$ sudo modprobe kvm-intel.ko
[me@tarantula ~]$ lsmod | grep kvm

dmesg 的日志或输出中没有显示任何内容。我的 CPU 是 Xeon E5520 2.27GHz,并且标志中有“vmx”。

答案1

由于某种原因,我安装的内核(3.10.0-327.10.0)与我的模块不匹配。删除并重新安装没有修复。我必须删除最新的内核,下载 3.10.0-327 并安装它,现在一切都很好。完全不知道为什么...

相关内容