Standard storage plugin mount options don't work with lxc
I've formatted and mounted my external SSD via reForis. Mount options are therefore
# mount | grep sda
/dev/sda on /srv type btrfs (rw,noatime,space_cache,subvolid=256,subvol=/@)
When trying to create an unprivileged container (for prerequisites see here: https://forum.turris.cz/t/tos-6-4-1-summary-on-how-to-run-unprivileged-lxc-containers-04-08-2023/19203), lxc-create
fails:
# lxc-create --name innen --bdev best --template download -- --dist Ubuntu --release 23.04 --arch armv7l
Downloading the image index
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs
tar: dev/console: Cannot mknod: Operation not permitted
tar: dev/full: Cannot mknod: Operation not permitted
tar: dev/null: Cannot mknod: Operation not permitted
tar: dev/ptmx: Cannot mknod: Operation not permitted
tar: dev/random: Cannot mknod: Operation not permitted
tar: dev/tty: Cannot mknod: Operation not permitted
tar: dev/urandom: Cannot mknod: Operation not permitted
tar: dev/zero: Cannot mknod: Operation not permitted
tar: Exiting with failure status due to previous errors
lxc-create: innen: lxccontainer.c: create_run_template: 1627 Failed to create container from template
lxc-create: innen: tools/lxc_create.c: main: 317 Failed to create container innen
Seems the standard mount options of storage plugin do not work together well with the lxc-create - which is crucial for Turris Omnia and for Turris Omnia Enterprise to function as advertised.