LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 952|回复: 7

安装KVM问题请教!

[复制链接]
发表于 2008-11-14 12:58:41 | 显示全部楼层 |阅读模式
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-emulation/kvm-78  USE="alsa modules ncurses sdl -esd -gnutls -havekernel -pulseaudio -test -vde" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-emulation/kvm-78 to /
* kvm-78.tar.gz RMD160 SHA1 SHA256 size ;-) ...                          [ ok ]
* kvm-patches-20081106.tar.gz RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking kvm-78.tar.gz ;-) ...                                         [ ok ]
* checking kvm-patches-20081106.tar.gz ;-) ...                           [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found kernel object directory:
*     /lib/modules/2.6.24-gentoo-r4/build
* Found sources for kernel version:
*     2.6.24-gentoo-r4
* KVM now needs CONFIG_KVM built into your kernel, even
* if you're using the external modules from this package.
* Please enable KVM support in your kernel, found at:
*
*   Virtualization
*     Kernel-based Virtual Machine (KVM) support
*
*
* ERROR: app-emulation/kvm-78 failed.
* Call stack:
*               ebuild.sh, line   49:  Called pkg_setup
*           kvm-78.ebuild, line   63:  Called die
* The specific snippet of code:
*                           die "KVM support not detected!"
*  The die message:
*   KVM support not detected!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-emulation/kvm-78/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/kvm-78/temp/die.env'.
*

* Messages for package app-emulation/kvm-78:

* KVM now needs CONFIG_KVM built into your kernel, even
* if you're using the external modules from this package.
* Please enable KVM support in your kernel, found at:
*
*   Virtualization
*     Kernel-based Virtual Machine (KVM) support
*
*
* ERROR: app-emulation/kvm-78 failed.
* Call stack:
*               ebuild.sh, line   49:  Called pkg_setup
*           kvm-78.ebuild, line   63:  Called die
* The specific snippet of code:
*                           die "KVM support not detected!"
*  The die message:
*   KVM support not detected!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-emulation/kvm-78/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/kvm-78/temp/die.env'.


已经运行过 emerge --sync
发表于 2008-11-14 13:12:56 | 显示全部楼层
看看自己的log文件
* Found sources for kernel version:
* 2.6.24-gentoo-r4
* KVM now needs CONFIG_KVM built into your kernel, even
* if you're using the external modules from this package.
* Please enable KVM support in your kernel, found at:
*
* Virtualization
* Kernel-based Virtual Machine (KVM) support
*
  1. ---Visualization
  2. <M>   Kernel-based Virtual Machine (KVM) support (NEW)
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-11-14 14:07:22 | 显示全部楼层

如果你的内核已经编译好了

如果你的内核已经编译好了,而且你在内核源代码目录下做了清理工作,你需要重新make 一次,然后再安装kvm.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-14 14:23:37 | 显示全部楼层
Post by cokebingo;1908404
看看自己的log文件

  1. ---Visualization
  2. <M>   Kernel-based Virtual Machine (KVM) support (NEW)
复制代码


对内核配置不熟悉,就是找不到---Visualization这项在那里。我内核版本是2.6.24。
回复 支持 反对

使用道具 举报

发表于 2008-11-14 16:54:03 | 显示全部楼层
cat .config | grep KVM
回复 支持 反对

使用道具 举报

发表于 2008-11-14 19:56:04 | 显示全部楼层
#cd /usr/src/linux
#make menuconfig
倒数第4个
Virtualization  --->
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-15 13:06:12 | 显示全部楼层
cat .config | grep KVM
无返回信息

#make menuconfig
倒数第四个,还是找不到相同名字的项
以下是内核配置抓图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2008-11-15 13:27:18 | 显示全部楼层
内核版本太低了,安一个2.6.26的吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表