Skip to content

Proxmox VE Helper Script Install with LXC User Mapping #2086

@Vaskyy

Description

@Vaskyy

I just installed with Proxmox Helper Script.
Stopped container.
Added lxc id mapping with bind mount to .conf file.

mp0: /data/ncp,mp=/ncp
lxc.idmap: u 0 100000 33
lxc.idmap: g 0 100000 33
lxc.idmap: u 33 33 1
lxc.idmap: g 33 33 1
lxc.idmap: u 34 100034 65502
lxc.idmap: g 34 100034 65502

Restarted container. Cannot access or change anything anymore.
I also tried to change ownership with only mounted container fs. Also didnt help.

pct mount 117

find /var/lib/lxc/117/rootfs -uid 100033 -type f -exec chown -h 33 {} +
find /var/lib/lxc/117/rootfs -uid 100033 -type d -exec chown -h 33 {} +
find /var/lib/lxc/117/rootfs -uid 100033 -type l -exec chown -h 33 {} +

find /var/lib/lxc/117/rootfs -gid 100033 -type f -exec chgrp -h 33 {} +
find /var/lib/lxc/117/rootfs -gid 100033 -type d -exec chgrp -h 33 {} +
find /var/lib/lxc/117/rootfs -gid 100033 -type l -exec chgrp -h 33 {} +

pct unmount 117

The Id mapping breaks NCP completly, and i cannot repair it anymore.
Only can reinstall, and start over again without id mapping.

Originally posted by @Vaskyy in #1940

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions