Hi everyone, ran into a problem with ID mapping. And there's pretty little useful information on the web, and especially online tools. I gathered a lot of information, did some testing and made my own online mapper. It makes life very much easier, the tool is completely free! Who needs it, use it!
Try online
Star on Github (I would be very grateful for a star)
How do you generate the mapping?
Try online
Star on Github (I would be very grateful for a star)
How do you generate the mapping?
- Go to the online instrument
- Enter the required mappings
- Edit the files and insert the generated data
- 44:44
- 107:104
Code:
# Add to /etc/pve/lxc/%id%.conf:
lxc.idmap: u 0 100000 44
lxc.idmap: g 0 100000 44
lxc.idmap: u 44 44 1
lxc.idmap: g 44 44 1
lxc.idmap: u 45 100045 63
lxc.idmap: g 45 100045 63
lxc.idmap: u 107 104 1
lxc.idmap: g 107 104 1
lxc.idmap: u 108 100108 65428
lxc.idmap: g 108 100108 65428
# Add to /etc/subuid:
root:44:1
root:104:1
# Add to /etc/subgid:
root:44:1
root:104:1