Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Robin Broda (coderobe)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

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
Comment by Toolybird (Toolybird) - Sunday, 31 October 2021, 07:06 GMT
Ping? Without this fix, libguestfs on Arch is completely and utterly broken. This is causing real drama for downstream users of Arch libguestfs. I've also seen increasing activity in the AUR trying to work around the issue.

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.
Comment by Eric Krebs (ekrebs) - Wednesday, 03 November 2021, 03:24 GMT
It has been possible to work around this by installing the lts kernel and providing the path to the lts kernel and its modules using the environmental variables SUPERMIN_KERNEL and SUPERMIN_MODULES
Comment by Robin Broda (coderobe) - Friday, 19 November 2021, 00:22 GMT
can you try supermin 5.3.1-1 from community-testing?
Comment by SickCodes (sickcodes) - Friday, 19 November 2021, 01:24 GMT
This is how we get around this (currently) but going to test latest

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

```
Comment by Eric Krebs (ekrebs) - Sunday, 21 November 2021, 20:37 GMT
libguestfs-test-tool runs successfully with 5.3.1-1.

Thanks!
Comment by Anthony Chavez (hexadecagram) - Monday, 27 December 2021, 07:13 GMT
@Toolybird I am not actively using it but I can see its usefulness and would like to!

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?

Loading...