Greetings,
Is it possible to map a single uid/gid in an LXC container to multiple uids/gids on the host? Surely it is, but I am apparently not smart enough to figure this one out.
Host:
u: 1001 g: 1001
u: 1005 g: 1006
Container:
u: 1000 g: 1000
What I want:
The container user and group (1,000 | 1,000) to map to both both host users and groups as listed above.
Container lxd id mapping
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1001 1
lxc.idmap: g 1000 1001 1
lxc.idmap: u 1000 1005 1
lxc.idmap: g 1000 1006 1
lxc.idmap: u 1001 101001 64530
lxc.idmap: g 1001 101001 64530
HOST /etc/subuid
root:100000:65536
root:1001:1
root:1005:1
Host /etc/subgid
root:100000:65536
root:1001:1
root:1006:1
What happens
My LXC fails to start: c_map_ids: 3663 newuidmap failed to write mapping "newuidmap: write to uid_map failed: Invalid argument": newuidmap 2643114 0 100000 1000 1000 1001 1 1000 1005 1 1001 101001 64530
Assistance would be most appreciated.
Is it possible to map a single uid/gid in an LXC container to multiple uids/gids on the host? Surely it is, but I am apparently not smart enough to figure this one out.
Host:
u: 1001 g: 1001
u: 1005 g: 1006
Container:
u: 1000 g: 1000
What I want:
The container user and group (1,000 | 1,000) to map to both both host users and groups as listed above.
Container lxd id mapping
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1001 1
lxc.idmap: g 1000 1001 1
lxc.idmap: u 1000 1005 1
lxc.idmap: g 1000 1006 1
lxc.idmap: u 1001 101001 64530
lxc.idmap: g 1001 101001 64530
HOST /etc/subuid
root:100000:65536
root:1001:1
root:1005:1
Host /etc/subgid
root:100000:65536
root:1001:1
root:1006:1
What happens
My LXC fails to start: c_map_ids: 3663 newuidmap failed to write mapping "newuidmap: write to uid_map failed: Invalid argument": newuidmap 2643114 0 100000 1000 1000 1001 1 1000 1005 1 1001 101001 64530
Assistance would be most appreciated.
Last edited: