如果是你按照官方搭建的Openstack并且你的base机位虚拟机且 用的kvm虚拟机等到安装完Openstack后你会看到虚拟机在qemu层可以起来不过进不去操作系统像下面图一样
我们首先看下当前qemu版本
[[email protected] ~]# 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 看下当前的安装的qemu相关的包
[[email protected] ~]# rpm -qa|grep qemu libvirt-daemon-driver-qemu-2.0.0-10.el7.x86_64 qemu-kvm-common-1.5.3-126.el7.x86_64 qemu-kvm-1.5.3-126.el7.x86_64 ipxe-roms-qemu-20160127-5.git6366fa7a.el7.noarch qemu-img-1.5.3-126.el7.x86_64
然后我们卸载掉刚刚过虑处理的包
[[email protected] ~]# yum remove qemu-kvm-common qemu-kvm ipxe-roms-qemu qemu-img -y
卸载完之后到qemu官方下载 源码包
然后进行安装
wget http://download.qemu-project.org/qemu-2.9.0.tar.xz tar xvJf qemu-2.9.0.tar.xz cd qemu-2.9.0 ./configure make make install
如果碰到错误则根据错误安装相应的包我这边需要安装
[[email protected] qemu-2.9.0]# yum install gcc zlib* glib* libtool -y
等待 安装完后查看版本
[[email protected] qemu-2.9.0]# qemu-img --version qemu-img version 2.9.0 Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
需要再次安装nova相应的包
[[email protected] ~]# yum install openstack-nova-compute
重启服务
[[email protected] ~]# systemctl restart libvirtd.service openstack-nova-compute.service
此时可以正常进入系统了
时间: 2024-12-11 16:48:00