Delete zombie LXCs

da-alb

Active Member
Jan 18, 2021
129
4
38
Hi,

Issuing lxc-ls I have more lcxs than the web or /etc/pve/lxc/ shows. What am i missing? How can i remove the missing containers?
 
did you use the 'lxc-*' commands manually ?
 
did you use the 'lxc-*' commands manually ?
To remove the containers? No. We've had an issue with the storage so we had to use new drives and we've changed the name of the storage used by the old lcxs, I have removed the old lxcs by deleting the file in /etc/pve/lxc.

Thanks
 
you could use 'lxc-destroy' but note that under normal circumstances you should not call 'lxc-*' directly, only use our own wrapper 'pct' to create/start/etc. containers

my guess is that 'lxc-create' was called, but that circumvents the pve stack...