Hello! My boot disk crashed. I've re-installed proxmox and am trying to restore my containers. I thought it would be as simple as pressing the restore button (which worked on the old system when I tested my backups) but it seems a previously working backup now gives errors. When I originally created the container, I thought it would be more secure to use the idmap option so that I could use unprivileged containers that only had the minimum necessary permissions. That seems to be creating issues now. I first verified that /etc/subuid and /etc/subgid are the same as before.
The specific error when I try to restore is:
tar: ./etc/vzdump/pct.conf: Cannot change ownership to uid 65534, gid 65534: Invalid argument
tar: ./etc/vzdump/pct.fw: Cannot change ownership to uid 65534, gid 65534: Invalid argument
My original config looked like this:
...
unprivileged: 1
lxc.idmap: u 0 100000 998
lxc.idmap: g 0 100000 998
lxc.idmap: u 998 1005 1
lxc.idmap: g 998 1005 1
lxc.idmap: u 999 100999 64530
lxc.idmap: g 999 100999 64537
Based on another post I think it should be:
...
unprivileged: 1
lxc.idmap: u 0 100000 998
lxc.idmap: g 0 100000 998
lxc.idmap: u 998 1005 1
lxc.idmap: g 998 1005 1
lxc.idmap: u 999 100999 64535
lxc.idmap: g 999 100999 64537
To fix this I have decompressed the archive, modified /etc/vzdump/pct.conf with the relevant changes. When I try to use tar and zstd to recompress the archive it doesn't seem to work to restore the lxc. Reading online, it seems there is something vzdump does when compressing besides simply using tar and zstd. What commands do I need exactly to recompress the archive? Is there another root cause?
Thank you for any help!
The specific error when I try to restore is:
tar: ./etc/vzdump/pct.conf: Cannot change ownership to uid 65534, gid 65534: Invalid argument
tar: ./etc/vzdump/pct.fw: Cannot change ownership to uid 65534, gid 65534: Invalid argument
My original config looked like this:
...
unprivileged: 1
lxc.idmap: u 0 100000 998
lxc.idmap: g 0 100000 998
lxc.idmap: u 998 1005 1
lxc.idmap: g 998 1005 1
lxc.idmap: u 999 100999 64530
lxc.idmap: g 999 100999 64537
Based on another post I think it should be:
...
unprivileged: 1
lxc.idmap: u 0 100000 998
lxc.idmap: g 0 100000 998
lxc.idmap: u 998 1005 1
lxc.idmap: g 998 1005 1
lxc.idmap: u 999 100999 64535
lxc.idmap: g 999 100999 64537
To fix this I have decompressed the archive, modified /etc/vzdump/pct.conf with the relevant changes. When I try to use tar and zstd to recompress the archive it doesn't seem to work to restore the lxc. Reading online, it seems there is something vzdump does when compressing besides simply using tar and zstd. What commands do I need exactly to recompress the archive? Is there another root cause?
Thank you for any help!
Last edited: