代码改变世界

[Nova ERROR] InternalError: Nova requires QEMU version 2.5.0 or greater.

2019-01-02 15:48  云物互联  阅读(839)  评论(0编辑  收藏  举报

目录

问题

nova-compute service 启动失败

InternalError: Nova requires QEMU version 2.5.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 至 >= 2.5.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

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