Hey,
I had to reinstall Proxmox 6.4 due to failed upgrade to 7. I pulled the lxc containers from backup and got them running, with proper lxc mappings as before.
NEW LXC containers behave weird.
Inside a fresh LXC ubuntu: (Harro is my name)
I got this very same user on the host with 1000:1000
then in the conf of the lxc:
Then inside the LXC I log in as Harro and change dir to
1. I can make a file and it appears as
2. I can see the existing dirs but as
3. Changing into these existing dirs give me NO files. On host there are files as
Any idea why this happens?
I had to reinstall Proxmox 6.4 due to failed upgrade to 7. I pulled the lxc containers from backup and got them running, with proper lxc mappings as before.
NEW LXC containers behave weird.
Inside a fresh LXC ubuntu: (Harro is my name)
groupadd -g 1000 Harro
useradd -u 1000 -g Harro Harro
passwd Harro
I got this very same user on the host with 1000:1000
then in the conf of the lxc:
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
lxc.idmap: g 1000 1000 1
lxc.idmap: u 1001 101001 64530
lxc.idmap: g 1001 101001 64530
mp0: /TANK/shares/,mp=/mnt/shares
Then inside the LXC I log in as Harro and change dir to
/mnt/shares/
1. I can make a file and it appears as
Harro:Harro
(so 1000:1000) on both sides and can interact with it2. I can see the existing dirs but as
nobody:nogroup
although on the host its Harro:Harro
3. Changing into these existing dirs give me NO files. On host there are files as
Harro:Harro
/etc/subuid
gives me:root:100000:65536
Harro:165536:65536
root:1000:1
/etc/subgid
gives me:root:100000:65536
Harro:165536:65536
root:1000:1
Any idea why this happens?
Last edited: