Instalar Snap en un contenedor LXC
in the container:
sudo apt update && sudo apt dist-upgrade
sudo apt install squashfuse fuse
sudo apt install snapd
sudo mkdir /lib/modules
From the Proxmox host, edit the config file at /etc/pve/lxc/<CTID>.conf and add:
# Mounting fuse (for snap squashfs)
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file,optional
# Mount cgroup in rw to get snaps working
lxc.mount.auto=cgroup:rw
Then shutdown and start your container.
Install your desired snap, get the following error:
error: cannot perform the following tasks:
- Setup snap "snapd" (11107) security profiles (cannot reload udev rules: exit status 1
udev output:
Failed to send reload request: No such file or directory
Install the same snap again, then it works.
Referencia:
https://forum.proxmox.com/threads/cant-install-snap-in-lxc-container.68708/