- 论坛徽章:
- 2
|
本帖最后由 securitypluscn 于 2013-07-25 22:32 编辑
用KVM有半年了,只知道它是基于内核的虚拟机。昨天为了回答一个网友的问题http://bbs.chinaunix.net/thread-4091582-1-1.html上网翻了翻相关资料,小有收获,在这里记下,备查。
摘自http://www.linux-kvm.org/page/Ch ... _%26_kernel_version
KVM requires a linux kernel module to support full virtualization. The linux module consists of three files: kvm.ko, kvm_intel.ko (for Intel processors), kvm_amd.ko (for AMD processors). You can install these modules just like you install drivers for your video card. The good news is, you may not need to install anything - the 2.6.20 kernel version (and higher) includes these kernel modules as part of the mainline kernel. It will depend on your distribution configuration whether these modules are actually in the distribution kernel as a built-in or provided as modules (or possibly absent). Here is a table listing the relation of KVM module versions to mainline kernel releases:
2.6.20 kvm-12
2.6.21 kvm-17
2.6.22 kvm-22
If you are not sure your linux distribution contain it or not, use this command:
modprobe -l | grep kvm
The linux module can be built from source code. This is also the recommended way to get the right version of linux module. Compiling from the source code, and than make install should make the linux module inserted into your /lib/modules/linux-`uname -r`. Simply make it in use by:
modprobe kvm
modprobe kvm_intel
or
modprobe kvm
modprobe kvm_amd |
|