qemu 版本升级
问题
Error starting thread.: InternalError: Nova requires QEMU version 2.8.0 or greater.
查看当前使用的 qemu 版本
[root@control01 yum.repos.d]# qemu-img --help | grep version qemu-img version 1.5.3, Copyright (c) 2004-2008 Fabrice Bellard conversion. If the number of bytes is 0, the source will not be scanned for [root@control01 yum.repos.d]# /usr/libexec/qemu-kvm -version QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-160.el7), Copyright (c) 2003-2008 Fabrice Bellard [root@control01 yum.repos.d]# virsh -c qemu:///system version --daemon Compiled against library: libvirt 4.5.0 Using library: libvirt 4.5.0 Using API: QEMU 4.5.0 Running hypervisor: QEMU 1.5.3 Running against daemon: 4.5.0 以 Running hypervisor: QEMU 1.5.3 的版本作为标准,可见是不能满足版本需求的。
解决方法:
升级 QEMU 至 >= 3.1.0
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 flex bison wget https://download.qemu.org/qemu-3.1.0-rc0.tar.xz tar xvJf qemu-3.1.0-rc0.tar.xz cd qemu-3.1.0-rc0 ./configure make && make install 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-img --version qemu-kvm --version virsh -c qemu:///system version --daemon
越学越感到自己的无知