FS#71746 - [supermin] libguestfs broken by switch to zstd compressed kernel modules
Attached to Project:
Community Packages
Opened by Toolybird (Toolybird) - Thursday, 05 August 2021, 21:53 GMT
Last edited by Toolybird (Toolybird) - Monday, 11 July 2022, 07:28 GMT
Opened by Toolybird (Toolybird) - Thursday, 05 August 2021, 21:53 GMT
Last edited by Toolybird (Toolybird) - Monday, 11 July 2022, 07:28 GMT
|
Details
Arch recently switched to zstd compressed kernel modules in
5.13.x
libguestfs no longer works. Patch available upstream[1] [1] https://bugzilla.redhat.com/show_bug.cgi?id=1990209#c3 |
This task depends upon
Closed by Toolybird (Toolybird)
Monday, 11 July 2022, 07:28 GMT
Reason for closing: Fixed
Additional comments about closing: supermin 5.3.1-1
Monday, 11 July 2022, 07:28 GMT
Reason for closing: Fixed
Additional comments about closing: supermin 5.3.1-1
Are any Arch users actually using libguestfs? It's a "must have" for me which means I build it myself. I'm surprised it's not more popular considering how useful it is for virtualization fans.
We were building against 5.12.14
Building it against linux-lts would work too as @ekrebs suggested
This is how we do it (downgrades kernel, just for references)
```
# 5.13+ problem resolved by building the qcow2 against 5.12 using libguestfs-1.44.1-6
export SUPERMIN_KERNEL=/boot/vmlinuz-linux
export SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
export SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
export KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst
export KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst
export LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst
sudo pacman -U "${KERNEL_PACKAGE_URL}"
sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}"
rm -rf /var/tmp/.guestfs-*
libguestfs-test-tool
```
```
# 5.13+ problem resolved by building the qcow2 against 5.12 using libguestfs-1.44.1-6
export SUPERMIN_KERNEL=/boot/vmlinuz-linux-lts
export SUPERMIN_MODULES=/lib/modules/5.10.80-1-lts
export SUPERMIN_KERNEL_VERSION=5.10.80-1
export KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux-lts/linux-lts-5.10.80-1-x86_64.pkg.tar.zst
export KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-lts-headers-5.10.80-1-x86_64.pkg.tar.zst
export LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst
pacman -U "${KERNEL_PACKAGE_URL}"
pacman -U "${LIBGUESTFS_PACKAGE_URL}"
# cache
rm -rf /var/tmp/.guestfs-*
libguestfs-test-tool
```
Thanks!
I just ran libguestfs-test-tool with "TEST FINISHED OK" on 5.10.79-1-lts. Am I understanding correctly that if I stick with LTS, I should be okay to use libguestfs?