Adding lxc.idmap fields into container template

Krish90

New Member
Dec 10, 2024
1
0
1
Hi all,

I use a couple of container templates for deploying remote desktops, some servers, etc. For certain types of authentication (non-local), I've found the following fields to be necessary in container configuration (this is a sample that was provided to me, I am assuming based on sssd configuration):

lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 65536
lxc.idmap: u 300000 300000 1999900001
lxc.idmap: g 300000 300000 1999900001

My question is, if I make this change to a container, and then convert that container to a template, should this change persist? Because when I tried this it seemed to not maintain those settings when I deploy a container from that new template and I had to redo it. Is there any way to do this so I don't have to add this every time when deploying a container that will need non-local authentication? Thank you!
 

About

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!