How to perform an in-place upgrade for libvirt

Hello Experts, Is it possible to perform an in-place upgrade for libvirt. Assume, i have a CentOS 8 installation (choose server with GUI) with libvirt version 4.5.1 and i want to upgrade the libvirt to version 6.0.0, how to implement a perfect replacement for all the related files (libraries, header files, etc)? Does anybody here has the experience for this? Many Thanks! -- FuLong Wang fulong.wang@cn.ibm.com IBM China Systems Lab, Beijing, China _______________________________________________

On 31. 3. 2020 8:21, FuLong Wang wrote:
Hello Experts,
Is it possible to perform an in-place upgrade for libvirt.
Assume, i have a CentOS 8 installation (choose server with GUI) with libvirt version 4.5.1 and i want to upgrade the libvirt to version 6.0.0, how to implement a perfect replacement for all the related files (libraries, header files, etc)?
Does anybody here has the experience for this?
The way I usually go about this is: 1) download the .src.rpm for the libvirt package 2) yum-builddep libvirt.src.rpm This installs all the build deps of libvirt. Then just download the libvirt.tar.xz you want (or checkout the tag in the repo) and 'make rpm'. Note, this will not contain RHEL-only patches. That is more advanced topic. BTW: I don't think I've seen 4.5.1 in CentOS, where did you get it from? Michal

Michal, Many thanks for the sharing! That sounds a good way to my situation, i actually want to upgrade the libvirt on several RHEL 8 compute nodes of an OpenStack deployment. I setup CentOS env for verification before the actual upgrade. But following your instruction, i have two questions here, would you kindly share more details with the processes? 1) Assume i want to upgrade to version 6.1.0, which one of the src.rpms should i use? all the three have same effects for installing the dependent packages? [ ] libvirt-6.1.0-0rc1.fc30.src.rpm <https://libvirt.org/sources/libvirt-6.1.0-0rc1.fc30.src.rpm> 26-Feb-2020 13:04 7.9M [ ] libvirt-6.1.0-0rc2.fc30.src.rpm <https://libvirt.org/sources/libvirt-6.1.0-0rc2.fc30.src.rpm> 29-Feb-2020 09:26 7.9M [ ] libvirt-6.1.0-1.fc30.src.rpm <https://libvirt.org/sources/libvirt-6.1.0-1.fc30.src.rpm> 03-Mar-2020 14:11 7.9M [ ] libvirt-6.1.0-rc1.tar.xz <https://libvirt.org/sources/libvirt-6.1.0-rc1.tar.xz> 26-Feb-2020 10:52 7.9M [TXT] libvirt-6.1.0-rc1.tar.xz.asc <https://libvirt.org/sources/libvirt-6.1.0-rc1.tar.xz.asc> 26-Feb-2020 13:04 488 [ ] libvirt-6.1.0-rc2.tar.xz <https://libvirt.org/sources/libvirt-6.1.0-rc2.tar.xz> 29-Feb-2020 09:25 7.9M [TXT] libvirt-6.1.0-rc2.tar.xz.asc <https://libvirt.org/sources/libvirt-6.1.0-rc2.tar.xz.asc> 29-Feb-2020 09:26 488 [ ] libvirt-6.1.0.tar.xz <https://libvirt.org/sources/libvirt-6.1.0.tar.xz> 03-Mar-2020 14:11 7.9M [TXT] libvirt-6.1.0.tar.xz.asc <https://libvirt.org/sources/libvirt-6.1.0.tar.xz.asc> 2) if then i download the libvirt-6.1.0.tar.xz for making the rpm, do i need to write a spec file on my own for the rpmbuild tool to work? Yes, you are right! I made mistake for the version number. Below check is from my newly installed CentOS 8 env, you can see when i choose the "Server with GUI" environment groups, the libvirt was bundle installed. [root@centos8b ~]# [root@centos8b ~]# which libvirtd /usr/sbin/libvirtd [root@centos8b ~]# libvirtd --version libvirtd (libvirt) 4.5.0 [root@centos8b ~]# [root@centos8b ~]# rpm -qa | grep libvirt libvirt-daemon-config-network-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-disk-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-kvm-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-nwfilter-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-logical-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-gconfig-2.0.0-1.el8.x86_64 libvirt-daemon-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-nodedev-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-gobject-2.0.0-1.el8.x86_64 libvirt-daemon-driver-storage-core-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-iscsi-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-scsi-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-libs-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-interface-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-glib-2.0.0-1.el8.x86_64 libvirt-daemon-driver-storage-gluster-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-rbd-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-secret-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-mpath-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-network-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-qemu-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-storage-4.5.0-35.module_el8.1.0+248+298dec18.x86_64 [root@centos8b ~]# [root@centos8b yum.repos.d]# [root@centos8b yum.repos.d]# yum repolist CentOS-8 - PowerTools 202 kB/s | 2.0 MB 00:10 Last metadata expiration check: 0:00:01 ago on Tue 31 Mar 2020 10:37:14 PM CST. repo id repo name status AppStream CentOS-8 - AppStream 5,123 BaseOS CentOS-8 - Base 2,126 PowerTools CentOS-8 - PowerTools 1,525 extras CentOS-8 - Extras 10 [root@centos8b yum.repos.d]# yum grouplist Last metadata expiration check: 0:00:13 ago on Tue 31 Mar 2020 10:37:14 PM CST. Available Environment Groups: Server Minimal Install Workstation Virtualization Host Custom Operating System Installed Environment Groups: Server with GUI Installed Groups: Container Management Headless Management Available Groups: .NET Core Development RPM Development Tools Development Tools Graphical Administration Tools Legacy UNIX Compatibility Network Servers Scientific Support Security Tools Smart Card Support System Tools [root@centos8b yum.repos.d]# Cheers FuLong -- FuLong Wang fulong.wang@cn.ibm.com IBM China Systems Lab, Beijing, China _______________________________________________ On 3/31/20 21:21, Michal Prívozník wrote:
On 31. 3. 2020 8:21, FuLong Wang wrote:
Hello Experts,
Is it possible to perform an in-place upgrade for libvirt.
Assume, i have a CentOS 8 installation (choose server with GUI) with libvirt version 4.5.1 and i want to upgrade the libvirt to version 6.0.0, how to implement a perfect replacement for all the related files (libraries, header files, etc)?
Does anybody here has the experience for this? The way I usually go about this is:
1) download the .src.rpm for the libvirt package 2) yum-builddep libvirt.src.rpm
This installs all the build deps of libvirt. Then just download the libvirt.tar.xz you want (or checkout the tag in the repo) and 'make rpm'. Note, this will not contain RHEL-only patches. That is more advanced topic.
BTW: I don't think I've seen 4.5.1 in CentOS, where did you get it from?
Michal
participants (2)
-
FuLong Wang
-
Michal Prívozník