Lost Volume Group, then cannot delete LXC

charleslcso

New Member
Oct 1, 2022
26
0
1
I 'm cleaning a number of unused LXC and VM.

Silly me, in Confirm dialog box I ticked "Destroy unreferenced disks owned by guest".

Screen Shot 2023-10-28 at 4.17.45 PM.png

Now I can't Remove the remaining LXC and VMs because the Volume Groups have been deleted!

Screen Shot 2023-10-28 at 4.17.50 PM.png

What can I do to delete the LXC and VMs?
 
Your second screenshot is not showing container or VMs but Storage, am I correct in assuming that you want to delete these ?
If so go to Datacenter->Storage there you should these and also should be able to delete the unwanted.
 
Your second screenshot is not showing container or VMs but Storage, am I correct in assuming that you want to delete these ?
If so go to Datacenter->Storage there you should these and also should be able to delete the unwanted.
Thanks for your reply.

I managed to remove the local Storage.

I would like to remove the LXCs (101, 102, 103). Is just removing the .conf file enough? There seems to be other files relating to those IDs scattered around the PVE directories. Which ones should I remove too?

For example, my 102 has the following files:

Code:
Code:

/var/log/pve/tasks/5/UPID:360g9:000FF438:0075E673:653E1CE5:vzcreate:102:root@pam:
/var/log/pve/tasks/5/UPID:360g9:0010DFD8:007A3EB6:653E2805:vncproxy:102:root@pam:
/var/log/pve/tasks/6/UPID:360g9:000263D3:00102395:653E5506:vncproxy:103:root@pam:
/var/log/pve/tasks/6/UPID:360g9:00106857:0076DAA2:653E1F56:vncproxy:102:root@pam:
/var/log/pve/tasks/6/UPID:360g9:00107BBC:00776416:653E20B6:vncproxy:102:root@pam:
/var/log/pve/tasks/4/UPID:360g9:000060B2:0002129C:653E3104:vzstart:102:root@pam:
/var/log/pve/tasks/0/UPID:360g9:0000101D:000048B4:653E2C70:vzstart:102:root@pam:
/var/log/pve/tasks/E/UPID:360g9:00001630:000060F3:653E2CAE:move_volume:102:root@pam:
/var/log/pve/tasks/1/UPID:360g9:0010E066:007A4367:653E2811:vncproxy:102:root@pam:
/var/log/pve/tasks/9/UPID:360g9:0010C11B:007907C4:653E24E9:vncproxy:102:root@pam:
/var/log/pve/tasks/B/UPID:360g9:00001016:00004718:653E2C6B:vzstart:102:root@pam:
/var/log/pve/tasks/F/UPID:360g9:0010CA79:00794F3D:653E259F:vncproxy:102:root@pam:
/var/log/pve/tasks/8/UPID:360g9:000FF58F:0075EDD0:653E1CF8:vzstart:102:root@pam:
/var/log/pve/tasks/7/UPID:360g9:000FD1F9:007550FF:653E1B67:imgdel:102@debian11-template-128-1:root@pam:
/var/log/pve/tasks/A/UPID:360g9:00000989:00001ACC:653E2BFA:vzstart:102:root@pam:
/var/cache/lxc/apparmor/c4f50b60.0/lxc-102_<-var-lib-lxc>
/var/lib/rrdcached/db/pve2-vm/102
/var/lib/lxc/102
/sys/kernel/irq/102
/sys/devices/pci0000:00/0000:00:01.0/0000:03:00.0/msi_irqs/102
/sys/devices/system/node/node1/memory102
/sys/devices/system/memory/memory102
/sys/bus/memory/devices/memory102
/etc/pve/nodes/360g9/lxc/102.conf
/proc/irq/102
/proc/1771/task/1771/fd/102
/proc/1771/task/1771/fdinfo/102
/proc/1771/fd/102
/proc/1771/fdinfo/102
/proc/22326/task/22326/fd/102
/proc/22326/task/22326/fdinfo/102
/proc/22326/fd/102
/proc/22326/fdinfo/102
/run/lxc/lock/var/lib/lxc/.102
/run/lock/lxc/pve-config-102.lock
 
In General, if you want to delete a container or vm please use the GUI or the provided cli tools: qm delete and pct destroy, as those tools handle the removal of all necessary files.
I hope this answers your question.
 
In General, if you want to delete a container or vm please use the GUI or the provided cli tools: qm delete and pct destroy, as those tools handle the removal of all necessary files.
I hope this answers your question.

I hit this issue after the Storage was accidentally removed... and GUI won't let me remove LXC.

thank you thank you. I hope the cli tool allows me to clear the remaining files in such circumstances.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!