I'm trying to migrate unprivileged lxc container (created not on proxmox) to proxmox.
I saw couple of posts about how to do that kind of thing:
https://serverfault.com/questions/7...ular-lxc-container-to-a-proxmox-lxc-container
https://forum.proxmox.com/threads/import-non-pve-created-lxc-container-into-pve-5-2.49049/
As I understood I can just tar the container, move it to proxmox host and create a new one using `pct create`.
So that's what I did:
1. Created tar (
2. Moved the tar to the proxmox host
3. Created a disk (I'm using ZFS storage):
4. Using pct created a container:
Container is created, no errors in logs.
I can start the container, but proxmox shows that container now is privileged, though if I list rootfs files, it shows unprivileged ids (100000 : ...).
Container also acts weird, I can't upgrade some packets, stop and start is slow. My guess is that it somehow connected to that privileged state.
So, my question is how can I say proxmox that container is already in an unprivileged mode? Or am I doing something completely wrong?
I also tried to explicitly say to proxmox, that container should be created in an unprivileged mode using flag
Thank you very much for the help in advance.
I saw couple of posts about how to do that kind of thing:
https://serverfault.com/questions/7...ular-lxc-container-to-a-proxmox-lxc-container
https://forum.proxmox.com/threads/import-non-pve-created-lxc-container-into-pve-5-2.49049/
As I understood I can just tar the container, move it to proxmox host and create a new one using `pct create`.
So that's what I did:
1. Created tar (
tar -czvf ./ct.tar.gz /var/lib/lxd/containers/container1/rootfs
)2. Moved the tar to the proxmox host
3. Created a disk (I'm using ZFS storage):
Code:
zfs create storage/subvol-100-disk-0
zfs set xattr=sa storage/subvol-100-disk-0
zfs set acltype=posixacl storage/subvol-100-disk-0
pct create 100 /ct.tar.gz -description container1 -hostname container1 -memory 1024 -nameserver 8.8.8.8 -storage storage -password changeme --rootfs storage:subvol-100-disk-0,quota=0
Container is created, no errors in logs.
I can start the container, but proxmox shows that container now is privileged, though if I list rootfs files, it shows unprivileged ids (100000 : ...).
Container also acts weird, I can't upgrade some packets, stop and start is slow. My guess is that it somehow connected to that privileged state.
So, my question is how can I say proxmox that container is already in an unprivileged mode? Or am I doing something completely wrong?
I also tried to explicitly say to proxmox, that container should be created in an unprivileged mode using flag
--unprivileged 1
in pct
command, but it throws a bunch of Permission denied
errors and fails to create a container.Thank you very much for the help in advance.