Hi all,
Although we are fully aware that CloudPanel does not officially support LXC containers, one of our clients installed it inside a non-nested CT without our knowledge. This is completely out of our administrative control, and we are now passively dealing with the aftermath.
The main issue is that after this installation, the container becomes impossible to delete via standard Proxmox commands. The pct destroy command fails because the logical volume remains locked, likely due to persistent mounts or leaked processes created by CloudPanel that survive container termination.
We would highly appreciate it if anyone could share a reliable solution or workaround to force-purge this container. While rebooting the PVE node can temporarily clear the lock, doing so every time is difficult for us as it affects all other live clients on the server. Since this situation might happen again, we are looking for a permanent solution or a specific command sequence to safely force-release and destroy this CT directly from the host without requiring a full server reboot. Thank you in advance for your time and help!
Although we are fully aware that CloudPanel does not officially support LXC containers, one of our clients installed it inside a non-nested CT without our knowledge. This is completely out of our administrative control, and we are now passively dealing with the aftermath.
The main issue is that after this installation, the container becomes impossible to delete via standard Proxmox commands. The pct destroy command fails because the logical volume remains locked, likely due to persistent mounts or leaked processes created by CloudPanel that survive container termination.
We would highly appreciate it if anyone could share a reliable solution or workaround to force-purge this container. While rebooting the PVE node can temporarily clear the lock, doing so every time is difficult for us as it affects all other live clients on the server. Since this situation might happen again, we are looking for a permanent solution or a specific command sequence to safely force-release and destroy this CT directly from the host without requiring a full server reboot. Thank you in advance for your time and help!
Steps to Reproduce:
- Create a standard LXC container (e.g., ID 101) without nesting enabled.
- Enter the container:
Bash:pct enter 101
- Install CloudPanel using their official script:
Bash:apt update && apt -y install curl wget sudo curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh DB_ENGINE=MYSQL_8.4 bash install.sh
- Exit the container and attempt to destroy it:
Bash:pct stop 101 pct destroy 101
Expected Result:
The container stops completely, and pct destroy successfully removes the container and its associated storage.Actual Result:
The destruction fails with the following error:
Code:
lvremove 'pve/vm-101-disk-0' error: Logical volume pve/vm-101-disk-0 contains a filesystem in use.
Environment Info:
- PVE Version: 9.2.3
- Storage Type: LVM-Thin