centos7 升级qemu-kvm

2018-11-08  本文已影响0人  WangNing_寧

先卸载qemu-kvm
yum –y remove qemu-kvm

下载源码 下载地址
wget https://download.qemu.org/qemu-3.1.0-rc0.tar.xz
安装依赖包

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 xvJf qemu-3.1.0-rc0.tar.xz
cd qemu-3.1.0-rc0
./configure
make && make install
默认 安装在/usr/local/bin/

编译完成之后 做链接

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

查看当前qemu版本

qemu-img --version

qemu-kvm –version

上一篇 下一篇

猜你喜欢

热点阅读