Sorry, I was reading the error message wrong. For some storages (e.g. LVM) PVE doesn't support converting to template, but that's not the problem here. It seems like we do allow adding bind mounts after converting a container and then the restore doesn't work anymore...
I created a
bug entry, but until that is fixed, you were already on the right track for a workaround:
If you have any experience with
vim
, you can simply edit the tar file and you should see the list of contents. Then you can move your cursor to the
/etc/vzdump.conf
click Enter and edit the file normally.
Otherwise you can first get the configuration file and edit it (easiest is to remove the
template: 1
line) and call it
pct.conf
. Then in the directory with the backup file do:
Code:
# delete the old file in the archive
tar --delete -f vzdump-lxc-104-2021_03_30-09_37_07.tar ./etc/vzdump/pct.conf
# prepare the file
mkdir -p ./etc/vzdump
mv pct.conf ./etc/vzdump
# add the new file to the archive
tar -uf vzdump-lxc-104-2021_03_30-09_37_07.tar ./etc/vzdump/pct.conf
Afterwards restoring should work.