lxc.* config entries are lost during restoration of LXC vzdumps

rkk2025

Well-Known Member
Jul 11, 2018
34
4
48
33
Hi,
I have several LXC containers that have several "lxc.*" settings (lxc.mount.entry, lxc.cgroup.devices.allow, etc) in the config file.

Due to organizative reasons I decided to move most of the containers to different ID numbers which basically consisted of stopping the containers, backing them up, restore them under different IDs, remove the old ones and start the new ones.

But in all the newly restored containers all the "lxc.*" lines (Excepting lxc.idmap which does gets restored) were gone from the configuration file.

By going to the "Content" section to where the "VZDump backups file"s are located and clicking on the vzdump-lxc file, when showing the configuration all "lxc." lines are present, and it seems that they get removed during restoring each time. Privileged and non-privileged containers seems to have the exact same issue.

Is this behaviour by design or is it a feature?
 
This is by design.

Backup files can be created by users, and in that case the entires with lxc.* would have permissions that the user himself does not have.

idmap was white-listed during restore (only when restoring as root), since it's a common occurrence to see it on unprivileged containers.

You can restore these options manually afterwards, as root.
 

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!