centos7 安裝 qemu

先卸載qemu-kvm

yum –y remove qemu-kvm

 

源碼地址:http://wiki.qemu.org/Download

 

下載源碼

wget http://wiki.qemu-project.org/download/qemu-2.8.0-rc0.tar.bz2

 

 

安裝依賴包

yum -y install gcc gcc-c++ automake libtool zlib-devel glib2-devel bzip2-devel libuuid-devel spice-protocol spice-server-devel usbredir-devel libaio-devel

 

編譯安裝

tar xf qemu-2.8.0.tar.bz2

cd qemu-2.8.0

./configure --enable-usb-redir --enable-libusb --enable-spice --enable-uuid --enable-kvm --enable-bzip2 --prefix=/usr/local/qemu --enable-linux-aio --enable-system

make && make install

 

編譯完成之後 做鏈接

# ln -s /usr/local/qemu/bin/qemu-system-x86_64 /usr/bin/qemu-kvm

# ln -s /usr/local/qemu/bin/qemu-system-x86_64 /usr/libexec/qemu-kvm

# ln -s /usr/local/qemu/bin/qemu-img /usr/bin/qemu-img

 

查看當前qemu版本,可以看到當前版本爲2.8

qemu-img  --version

qemu-kvm –version

 

編譯過程遇到的錯誤

cd /home/src/qemu-2.8.0/pixman; autoreconf -v --install)/bin/sh: autoreconf: command not found
make: *** [/home/src/qemu-2.8.0/pixman/configure] Error 127

解決方法: yum –y install automake

 

configure.ac:75: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

 

解決方法 yum –y install libtool

centos7升級qemu-kvm,

原文地址:http://www.cnblogs.com/pdjun/p/6655867.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章