Chinaunix首页 | 论坛 | 博客
  • 博客访问: 136906
  • 博文数量: 38
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 460
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-24 15:48
文章分类

全部博文(38)

文章存档

2011年(1)

2009年(11)

2008年(26)

我的朋友

分类: 服务器与存储

2008-11-24 10:52:43

1、三个部分(Three Components)
To make it work, you need to get the right version for three components:
要让它正常运行,下面的三个部分的版本必须正确:
Linux模块(Linux Module)
用户空间应用程序(User Space Application )
客户Virtio驱动(Guest Virtio Driver)
2、Linux模块(Linux Module)
KVM come with a linux module to support full virtualization. The linux module is just three files: kvm.ko, kvm_intel.ko, kvm_amd.ko. You can install them just like you install drivers for your video card. The good news is, you might do not need to install it. The 2.6.20 version has already included those linux modules. Depends on your distribution configuration, it might not be installed, or as a module or built-in. Here is a table listing the relation:
KVM以linux的一个模块的形式来支持完全虚拟。这个模块只是三个文件:kvm.ko,kvm_intel.ko,kvm_amd.ko。你可以像安装你的显卡驱动一样来安装它们。有个好消息,就是你可能不需要安装它,在2.6.20版本的内核中已经包含了这些linux的模块。根据你自己的发布版本的配置,可能它还没被安装,或以一个模块或内建的模式安装,下面是一个关系列表:
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:
如果你不肯定你的linux发布版本是否包含它,使用下面的命令来确认:
modprobe -l | grep kvm
The linux module can be built from source code. This is also the recommanded 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:
这个linux模块可以从源代码创建,这也是获得正确版本的linux模块的推荐方法。从源代码编译,然后安装可以让这个linux模块嵌入到你的
/lib/modules/linux-uname -r 。使用下面的命令使它生效:
modprobe kvm
modprobe kvm_intel
or
modprobe kvm
modprobe kvm_amd
3、User space application
Compile from source code, you can get it. Otherwise, refer to the previous section.
如果可以的话从源代码开始编译。否则,参考前面的章节。
4、Guest virtio driver
There was no special requirement for guest operating system if you are not using para-visualized disk or network adapter. If you are using them, make sure you get virtio_pci.ko, virtio_rng.ko, virtio_blk.ko, virtio_net.ko. They are in 2.6.25 or later kernel.There is also a option to backport them.
如果你不是使用半虚拟磁盘或网络适配器的话,客户操作系统没有特殊的要求。如果你有使用它们,那么要确定你有安装virtio_pci.ko, virtio_rng.ko, virtio_blk.ko, virtio_net.ko。它们包含在2.6.25或更高的内核。
Refer to Virtio for more information
阅读(4262) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~