[PVE-User] converting privileged CT to unprivileged
Gilberto Nunes
gilberto.nunes32 at gmail.com
Wed Jul 31 19:44:33 CEST 2019
Or do that! Yep
---
Gilberto Nunes Ferreira
(47) 3025-5907
(47) 99676-7530 - Whatsapp / Telegram
Skype: gilberto.nunes36
Em qua, 31 de jul de 2019 às 13:05, Tom Weber <pve at junkyard.4t2.com> escreveu:
>
> Or just delete these files before shutting down the container and
> making the backup.
>
> Tom
>
> Am Mittwoch, den 31.07.2019, 12:39 -0300 schrieb Gilberto Nunes:
> > You can uncompress the backup for any other directory, delete urandom
> > and random and then, compress again the whole directory...
> > Then try restore into PVE again.
> >
> > ---
> > Gilberto Nunes Ferreira
> >
> > (47) 3025-5907
> > (47) 99676-7530 - Whatsapp / Telegram
> >
> > Skype: gilberto.nunes36
> >
> >
> >
> >
> > Em qua, 31 de jul de 2019 às 12:37, Adam Weremczuk
> > <adamw at matrixscience.com> escreveu:
> > >
> > > Hi all,
> > >
> > > PVE 5.4.6.
> > >
> > > My container was created as privileged and runs on zfs pool shared
> > > by 2
> > > hosts.
> > >
> > > I've unsuccessfully tried to convert it from GUI:
> > > - stopped the container
> > > - took a backup
> > > - clicked "restore" ("unprivileged" ticked - default)
> > >
> > > extracting archive
> > > '/var/lib/vz/dump/vzdump-lxc-100-2019_07_31-16_15_48.tar.lzo'
> > > tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not
> > > permitted
> > > tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not
> > > permitted
> > > Total bytes read: 619950080 (592MiB, 42MiB/s)
> > > tar: Exiting with failure status due to previous errors
> > > TASK ERROR: unable to restore CT 100 - command 'lxc-usernsexec -m
> > > u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - --lzop --totals
> > > --one-file-system -p --sparse --numeric-owner --acls --xattrs
> > > '--xattrs-include=user.*' '--xattrs-include=security.capability'
> > > '--warning=no-file-ignored' '--warning=no-xattr-write' -C
> > > /var/lib/lxc/100/rootfs --skip-old-files --anchored --exclude
> > > './dev/*''
> > > failed: exit code 2
> > >
> > > CT 100 completely disappeared from the list!
> > >
> > > Earlier attempt from shell (105 was the first available ID):
> > >
> > > pct restore 105
> > > /var/lib/vz/dump/vzdump-lxc-100-2019_07_31-16_15_48.tar.lzo
> > > -ignore-unpack-errors 1 -unprivileged
> > > 400 Parameter verification failed.
> > > storage: storage 'local' does not support container directories
> > > pct restore <vmid> <ostemplate> [OPTIONS]
> > >
> > > Any hints?
> > >
> > > Thanks,
> > > Adam
> > >
> > > _______________________________________________
> > > pve-user mailing list
> > > pve-user at pve.proxmox.com
> > > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
> >
> > _______________________________________________
> > pve-user mailing list
> > pve-user at pve.proxmox.com
> > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list