Hey guys!
I recently started using Proxmox and I am really happy with it. Thanks for the great work so far!
I tried to migrate some of my LXCs from Ubuntu 2004 to Proxmox 7.1 but I am having problems with the UID/GID mapping. What I did so far:
1. I mounted the LXC storage of my Ubuntu instace
2. Packed a tar.gz archive of the rootfs of my container
3. Created a new LXC in Proxmox by using the tar.gz archive with the following command:
Everything worked fine, the containers are created with any errors and boot up. But the problem is I cant use any user in my containers. I think the problem is down to the UID/GID mapping inside of the containers. For example when I do:
I have read https://pve.proxmox.com/wiki/Unprivileged_LXC_containers and tried to set the mapping of the UID/GID in the /etc/pve/lxc/102.conf but without any success. I am still new to Proxmox and LXC and I am not sure how to fix this problem. May someone point me to the right resource or give me a helping hand on this? Every help is appreciated!
Best!
ninajb3s
I recently started using Proxmox and I am really happy with it. Thanks for the great work so far!
I tried to migrate some of my LXCs from Ubuntu 2004 to Proxmox 7.1 but I am having problems with the UID/GID mapping. What I did so far:
1. I mounted the LXC storage of my Ubuntu instace
2. Packed a tar.gz archive of the rootfs of my container
3. Created a new LXC in Proxmox by using the tar.gz archive with the following command:
Code:
pct create 102 checkmk.tar.gz \
-description checkmk -hostname checkmk -memory 65536 -nameserver 8.8.8.8 \
-net0 name=eth0,hwaddr=****,ip=dhcp,bridge=vmbr0 \
-storage rfci-lxc-zfs -rootfs rfci-lxc-zfs:120 \
-password ****
Everything worked fine, the containers are created with any errors and boot up. But the problem is I cant use any user in my containers. I think the problem is down to the UID/GID mapping inside of the containers. For example when I do:
Code:
root@checkmk:/home/ninjab3s# ls -alh
total 44K
drwxr-xr-x 5 1001001 1001001 11 Dec 1 14:10 .
drwxr-xr-x 4 1000000 1000000 4 Dec 1 10:13 ..
-rw------- 1 1001001 1001001 645 Dec 1 14:22 .bash_history
-rw-r--r-- 1 1001001 1001001 220 Dec 1 10:13 .bash_logout
-rw-r--r-- 1 1001001 1001001 3.7K Dec 1 10:13 .bashrc
drwx------ 2 1001001 1001001 3 Dec 1 10:19 .cache
drwxrwxr-x 3 1001001 1001001 3 Dec 1 10:13 .local
-rw-r--r-- 1 1001001 1001001 807 Dec 1 10:13 .profile
drwxrwxr-x 2 1001001 1001001 3 Dec 1 10:14 .ssh
-rw-r--r-- 1 1001001 1001001 0 Dec 1 10:15 .sudo_as_admin_successful
-rw-rw-r-- 1 1001001 1001001 31K Nov 24 08:39 check-mk-agent_2.0.0p16-1_all.deb
I have read https://pve.proxmox.com/wiki/Unprivileged_LXC_containers and tried to set the mapping of the UID/GID in the /etc/pve/lxc/102.conf but without any success. I am still new to Proxmox and LXC and I am not sure how to fix this problem. May someone point me to the right resource or give me a helping hand on this? Every help is appreciated!
Best!
ninajb3s