Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

Linux下安装KVM(源码安装)

$
0
0

1、首先下载KVM源码:http://www.linux-kvm.org/page/Downloads  或者http://sourceforge.net/projects/kvm/files/   选择最新版本


2、进入KVM官方网站查看安装教程:http://www.linux-kvm.org/page/HOWTO1


3、安装函数依赖库

On a debian etch system you can install the prerequisites with:(Ubuntu系统适用命令:)

 apt-get install gcc libsdl1.2-dev zlib1g-dev libasound2-dev linux-kernel-headers pkg-config libgnutls-dev libpci-dev

Note: When building from git, you also need gawk. (如果你是从git 上获取源码,那么还得需要gawk)


4、解压编译/安装

If you are using a recent kernel (2.6.25+) with kvm modules included, boot into it, and:(如果你是用的linux内核版本大于2.6.25,就按照下面的方法做)

tar xzf qemu-kvm-release.tar.gz
cd qemu-kvm-release
./configure --prefix=/usr/local/kvm
make
sudo make install
sudo /sbin/modprobe kvm-intel   (适用于intel显卡)
# or: sudo /sbin/modprobe kvm-amd (适用于amd显卡)
 

If you're using an older kernel, or a kernel from your distribution without the kvm modules, you'll have to compile the modules yourself:(如果linux内核低于2.6,那么你要自己编译)

tar xjf kvm-kmod-release.tar.bz2
cd kvm-kmod-release 
./configure
make 
sudo make install 
sudo /sbin/modprobe kvm-intel 
# or: sudo /sbin/modprobe kvm-amd

Note: if sound doesn't play in the guest vm you can add --audio-drv-list="alsa oss" to ./configure as explained inhttp://www.linux-kvm.com/content/sound-problem-solved


总是搞不懂为啥官方网站上安装方式与民间流传的不同!!!!

终端命令运行:sudo virt-manager 启动虚拟机管理工具

sudo kvm 启动KVM 虚拟机

参考链接:http://zhidao.zgsj.com/article/29/2012710145912.shtml

参考链接:http://www.linuxidc.com/Linux/2012-12/76324.htm     经测试此种方法成功安装!!

作者:makenothing 发表于2013-7-21 0:00:54 原文链接
阅读:148 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>