OCI Image fails to extract if the image relies on systemd

Bonfra

New Member
May 2, 2026
4
0
1
Hi there,

I was trying to import the official freeipa image from docker hub into proxmox and, after cloning it locally, i got this error while creating the container:
Code:
TASK ERROR: unable to create CT 100 - Error while extracting OCI image: IO error: failed to unpack `/var/lib/lxc/100/rootfs/etc/systemd/system/multi-user.target.wants`: IO error: failed to unpack `/var/lib/lxc/100/rootfs/etc/systemd/system/multi-user.target.wants`: failed to unpack `/var/lib/lxc/100/rootfs/etc/systemd/system/multi-user.target.wants`: Is a directory (os error 21) when symlinking /etc/systemd/system/container-ipa.target.wants to /var/lib/lxc/100/rootfs/etc/systemd/system/multi-user.target.wants

It seems like since this container relies on systemd stuffs it fails to extract the relevant files in the lxc environemnt.
Anyone got this issue?
 
small update:

after flattening the image with crane i now have this error:


Code:
TASK ERROR: unable to create CT 100 - Error while extracting OCI image: IO error: failed to unpack `/var/lib/lxc/100/rootfs/data-template/.configfiles/etc/krb5.conf.d/crypto-policies`: IO error: failed to unpack `/var/lib/lxc/100/rootfs/data-template/.configfiles/etc/krb5.conf.d/crypto-policies`: failed to unpack `/var/lib/lxc/100/rootfs/data-template/.configfiles/etc/krb5.conf.d/crypto-policies`: No such file or directory (os error 2) while canonicalizing /var/lib/lxc/100/rootfs/data-template/.configfiles-noreplace/etc/krb5.conf.d/crypto-policies

which now seems to refers to some dandling symlinks that the proxmox OCI unpacker can't handle correctly(?)