I can’t find any information on RHEL 9 support for snapd. Are users simply not running snapd on EL 9 yet?
This is similar to this post
but instead of Debian it is AlmaLinux 9.1 (and Rocky 9.1, and Stream 9, etc.). None of the proposed fixes seem to apply as the modprobe files don’t exist on EL 9 it seems…
[guest@localhost ~]$ sudo snap install hello-world
2022-12-16T04:28:20-05:00 INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
The message you see clearly indicates that the system has no squashfs support. You either need a kernel module which is shipped by the kernel-modules package, or install squashfuse.
Are you referring to the container image, like from here:
I tried several container images, and an AlmaLinux 9.1 VM. I’m pretty sure I saw squashfuse installed as a snapd dependency, but let me try it again and I’ll get back to you.
[root@centos9ct ~]# dnf install snapd
Last metadata expiration check: 0:01:12 ago on Fri 16 Dec 2022 02:42:41 PM UTC.
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
snapd x86_64 2.57.6-1.el9 epel 14 M
Installing dependencies:
bash-completion noarch 1:2.11-4.el9 baseos 455 k
checkpolicy x86_64 3.4-1.el9 appstream 347 k
fuse x86_64 2.9.9-15.el9 baseos 80 k
fuse-common x86_64 3.10.2-5.el9 baseos 9.0 k
fuse-libs x86_64 2.9.9-15.el9 baseos 98 k
libpkgconf x86_64 1.7.3-10.el9 baseos 36 k
lzo x86_64 2.10-7.el9 baseos 67 k
pkgconf x86_64 1.7.3-10.el9 baseos 41 k
pkgconf-m4 noarch 1.7.3-10.el9 baseos 15 k
pkgconf-pkg-config x86_64 1.7.3-10.el9 baseos 11 k
policycoreutils-python-utils noarch 3.4-4.el9 appstream 75 k
python3-audit x86_64 3.0.7-103.el9 appstream 84 k
python3-libselinux x86_64 3.4-3.el9 appstream 186 k
python3-libsemanage x86_64 3.4-2.el9 appstream 80 k
python3-policycoreutils noarch 3.4-4.el9 appstream 2.1 M
python3-setools x86_64 4.4.0-5.el9 baseos 599 k
python3-setuptools noarch 53.0.0-11.el9 baseos 944 k
rpm-plugin-selinux x86_64 4.16.1.3-19.el9 baseos 18 k
selinux-policy noarch 38.1.2-1.el9 baseos 63 k
selinux-policy-targeted noarch 38.1.2-1.el9 baseos 6.8 M
snap-confine x86_64 2.57.6-1.el9 epel 2.5 M
snapd-selinux noarch 2.57.6-1.el9 epel 189 k
squashfs-tools x86_64 4.4-8.git1.el9 baseos 165 k
squashfuse x86_64 0.1.104-1.el9 epel 25 k
squashfuse-libs x86_64 0.1.104-1.el9 epel 26 k
which x86_64 2.21-28.el9 baseos 42 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 27 Packages
Total download size: 29 M
Installed size: 93 M
and after reboot, enable, ln, version, and a few installs
[root@centos9ct ~]# ln -s /var/lib/snapd/snap /snap
[root@centos9ct ~]# snap --version
snap 2.57.6-1.el9
snapd 2.57.6-1.el9
series 16
centos 9
kernel 5.15.74-1-pve
[root@centos9ct ~]# systemctl enable --now snapd.socket
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /usr/lib/systemd/system/snapd.socket.
[root@centos9ct ~]# snap install core
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/syscheck-mountpoint-3657764830: mount failed: Operation not permitted.
[root@centos9ct ~]# snap install hello-world
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/syscheck-mountpoint-1443090506: mount failed: Operation not permitted.
[root@centos9ct ~]#
and squashfuse:
[root@centos9ct ~]# dnf install squashfuse
Last metadata expiration check: 0:08:12 ago on Fri 16 Dec 2022 02:42:41 PM UTC.
Package squashfuse-0.1.104-1.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@centos9ct ~]#
I’m running this in a VM. Snapd delegates some tasks to snapd, so you need systemd to be up and running. IDK if Proxmox boots a full system like LXD does, or something thinner like docker/podman.
Proxmox VE uses Linux Containers (LXC) as its underlying container technology. The “Proxmox Container Toolkit” (pct) simplifies the usage and management of LXC, by providing an interface that abstracts complex tasks.
Okay, a Stream 9 ISO from a few days ago in a VM works fine and maybe this is OK if snapd requires specific kernel features for EL 9 that my PVE LXD kernel does not.
However, I’m puzzled why AlmaLinux 9.1 is not working…Kernel’s seem similar, but the packages installed on Stream are fewer than AL…which suggests Stream perhaps has some packages installed by default. Am I missing something else?
AL explicitly installs the fuse packages: fuse, fuse-common, squashfuse, squashfuse-libs, but are otherwise identical.
I’ll redirect the conversation to the AlmaLinux community as this points to an AL issue. RockyLinux 91 worked fine as well…it too didn’t list the squashfuse packages in the dependency list. I just noticed that AL forces those packages during snapd install, but CentOS 9 Stream, and Rocky Linux do NOT require nor install these packages.
Apparently there was a bug I should have reported months ago that someone else just stumbled upon:
apparently the kernel-modules package was not included by default on the minimal iso since AlmaLinux 9. I’m very green when it comes to kernel issues so this was over my head.