Libvirt 版本降级过程记录 4.5.0 to 3.9.0
前言
搞 OpenStack 开发 Libvirt 版本会随着 OpenStack 版本切来切去的,记录一下 Libvirt 从 4.5 降级到 3.9.0 的过程。
步骤
直接 downgrade
[root@control01 ~]# yum downgrade 'libvirt*3.9.0*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.yun-idc.com
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
https://copr-be.cloud.fedoraproject.org/results/mcepl/vim8/epel-7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Resolving Dependencies
--> Running transaction check
---> Package libvirt-libs.x86_64 0:4.5.0-10.el7_6.2 will be a downgrade
---> Package libvirt-libs.x86_64 0:4.5.0-10.el7_6.3 will be erased
--> Finished Dependency Resolution
Error: Package: libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-rbd-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-lxc-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-logical-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-network-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-nodedev-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-disk-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-client-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-mpath-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-qemu-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-nwfilter-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-interface-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-secret-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-core-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-iscsi-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-devel-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-scsi-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python2-requests-2.14.2-1.el7.noarch has missing requires of python2-urllib3 = ('0', '1.21.1', None)
报错,原因是上面这些高版本的包,在 yum repo 没有对应的低版本包。所以先把这个包强制卸载掉。
rpm -e --nodeps \
libvirt-daemon-driver-storage-core \
libvirt-libs \
libvirt-daemon-driver-storage-disk \
libvirt-daemon-driver-storage-gluster \
libvirt-daemon-driver-storage-iscsi \
libvirt-daemon-driver-storage-logical \
libvirt-daemon-driver-storage-mpath \
libvirt-daemon-driver-storage-rbd \
libvirt-daemon-driver-storage-scsi
然后在 downgrade
[root@control01 ~]# yum downgrade 'libvirt*3.9.0*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
https://copr-be.cloud.fedoraproject.org/results/mcepl/vim8/epel-7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
No Match for available package: libvirt-libs-4.5.0-10.el7.i686
No Match for available package: libvirt-libs-4.5.0-10.el7.x86_64
Nothing to do
还是失败,原因是因为环境的 yum repo CentOS /7
已经没有 3.9.0 版本的包了,所以修改一下 CentOS repo 配置文件。
vim CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/7.5.1804/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates.
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/7.5.1804/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/7.5.1804/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
然后在 downgrade 就应该可以成功了,如果还是不行,那么请继续挖坑吧。
[root@control01 yum.repos.d]# libvirtd --version
libvirtd (libvirt) 3.9.0
Libvirt 版本降级过程记录 4.5.0 to 3.9.0的更多相关文章
- openWRT自学---自己编译的第一个 backfire10.03 版本的过程记录(转)
基于 backfire10.03(从http://downloads.openwrt.org/backfire/10.03/ 中下砸的源码包backfire_10.03_source.tar.bz2: ...
- openWRT自学---自己编译的第一个 backfire10.03 版本的过程记录 --- 实际是由于下载了错误的backfire源码包导致的
基于 backfire10.03(从http://downloads.openwrt.org/backfire/10.03/ 中下砸的源码包backfire_10.03_source.tar.bz2: ...
- win7 64位安装Dlib19.6版本的过程记录
本文为原创,未经允许不得转载. 1.去Dlib的官网下载dlib-19.6的源文件.然后解压到Myprograms下的Res文件夹下 2.到CMake的官网下载Cmake,我下载以后解压,然后进入到b ...
- 在fedora25x86下编译opencv的Android版本的过程记录
准备材料: 1. 32位的Fedora25(不建议使用64位系统----64位系统下也是可以编译的,这里为了简单起见,考虑使用32位操作系统.事实上,本人在64位操作系统下也做了尝试,也完成了编译.) ...
- MySQL 8.0 正式版 8.0.11 发布:比 MySQL 5.7 快 2 倍
ySQL 8.0 正式版 8.0.11 已发布,官方表示 MySQL 8 要比 MySQL 5.7 快 2 倍,还带来了大量的改进和更快的性能! 注意:从 MySQL 5.7 升级到 MySQL 8. ...
- redhat6.0 安装ORACLE11GR2过程记录
vawaretools安装 我的是8.0vm 1,vm=>install vmtools 2,会在redhat里出现一个虚拟光驱图标. 3,复制里面的文件到root目录下. 4,解压缩文件 ta ...
- xp硬盘安装Fedora14 过程记录及心得体会(fedora14 live版本680M 和fedora14 DVD版本3.2G的选择)
这次电脑奔溃了,奇怪的是直接ghost覆盖c盘竟然不中.之前电脑上硬盘安装的fedora14操作系统,也是双系统.不知道是不是这个问题,记得同学说过,在硬盘装fedora之后,要手动修改c盘隐藏的那个 ...
- DRBD详细解说及配置过程记录
一.DRBD介绍 DRBD(Distributed ReplicatedBlock Device)是一种基于软件的,无共享,分布式块设备复制的存储解决方案,在服务器之间的对块设备(硬盘,分区,逻辑卷等 ...
- 升级Windows 10 正式版过程记录与经验
升级Windows 10 正式版过程记录与经验 [多图预警]共50张,约4.6MB 系统概要: 预装Windows 8.1中文版 64位 C盘Users 文件夹已经挪动到D盘,并在原处建立了符号链接. ...
随机推荐
- Inception网络模型
最近在研究inception模型,将v1到v4版本的论文都研读了一下,这里做一下总结. 这里推荐一下这个GitHub,博主将常见的论文都做了翻译,大家可以参考中文来加深理解. 1.Inception ...
- 《python解释器源码剖析》第0章--python的架构与编译python
本系列是以陈儒先生的<python源码剖析>为学习素材,所记录的学习内容.不同的是陈儒先生的<python源码剖析>所剖析的是python2.5,本系列对应的是python3. ...
- 磁盘IO及性能指标
一.磁盘 I/O 的概念 I/O 的概念,从字义来理解就是输入输出.操作系统从上层到底层,各个层次之间均存在 I/O.比如,CPU 有 I/O,内存有 I/O, VMM 有 I/O, 底层磁盘上也有 ...
- linux 下mysql忘记密码或者安装好linux后不知道mysql初始密码解决方案
1.使用yum安装mysql后 2.初始密码在/var/log/mysqld.log这个文件里 3.输入命令:grep 'temporary password' /var/log/mysqld.log ...
- C++构造函数实例
#include<iostream> #include <string> using namespace std; class Person { public: //无参(默认 ...
- vue项目搭建步骤以及一些安装依赖包
一. vue-cli初始化1. 全局安装 vue-clinpm install --global vue-cli2. 创建一个基于 webpack 模板的新项目vue init webpack my- ...
- 【leetcode】1235. Maximum Profit in Job Scheduling
题目如下: We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtai ...
- Python入门提示
Python入门提示——行与缩进,常量定义 在初学Python时,除了学习一些标准的语法外,会遇到一些其他困难,列举如下. 一.python http://www.xuanhe.net/的行与缩进 P ...
- Spring Boot教程(二十七)整合Spring Security
在这一节,我们将对/hello页面进行权限控制,必须是授权用户才能访问.当没有权限的用户访问后,跳转到登录页面. 添加依赖 在pom.xml中添加如下配置,引入对Spring Security的依赖. ...
- Linux下运行scala语言的jar包
1.新建project 2.打包 3.linux下运行jar包 #First.jar为jar包名,Test为主类名 [root@FI-2 Desktop]# spark-submit First.ja ...