Trying to Remove VM

adamb

Famous Member
Mar 1, 2012
1,329
78
113
Trying to remove a VM, but it seems the disk no longer exists. A bit odd as I don't recall ever deleting it. So how do I delete a VM if the LV is not found?
 
Last edited:
if the vm data has been deleted (/var/lib/vz/root) or (/var/lib/vz/private) and the vm still shows up this is due to the cluster loosing sync (turning red) when the vm was deleted.

when a node drops off the cluster the pve root becomes read only... so it cannot delete the vm config file

to fix this issue .... goto

cd /etc/vz/conf

then find the ###.conf and delete it.... this will remove the vm from the cluster....

** NOTE: this will only work if the cluster is back online
 
you can manually remove the VM/CT config file, but its in /etc/pve/...