Can't create LXC container: "unable to detect OS distribution"


New Member
Jun 1, 2023

I tried to create an LXC container, based on my own template - actually, it is based on a custom Linux distribution named "PLD Linux".

I checked how a template should look like, what files seem to be required etc.
Finally, I've gone through the creation procedure and... almost succeeded.
Unfortunately, at the end I get:

extracting archive '/var/lib/vz/template/cache/pld-mailhoar_amd64.tar.gz'
Total bytes read: 3411630080 (3.2GiB, 134MiB/s)
Detected container architecture: amd64
unknown ID 'pld' in /etc/os-release file, trying fallback detection
unable to create CT 103 - unable to detect OS distribution

Indeed, in /etc/os-release I have:

I wanted to find out if there is a list of allowed IDs, and found that there is a directory /usr/share/lxc/config with various distros files, like

Files *.userns.conf seem to be identical, so I created pld.userns.conf like all other files
For pld.common.conf I tried some simple settings:

# =============================================
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64

# Container specific configuration
lxc.rootfs.path = dir:/srv/pld/x86_64 = builder-x86_64

# Network configuration = veth = lxcbr0 = up = 00:16:3e:71:5e:81

lxc.pty.max = 100 = 1

lxc.mount.entry = none dev/shm tmpfs rw,nosuid,nodev,create=dir
# ============================================

All done, saved.
However - when I try to create CT, the result is exactly the same:

unknown ID 'pld' in /etc/os-release file, trying fallback detection
TASK ERROR: unable to create CT 103 - unable to detect OS distribution

Any ideas what I'm doing wrong?
Is there some other file where all valid IDs are listed or something?

Best regards,
  • Like
Reactions: shanreich


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!