Not able to delete corrupted VM?

NVroom

New Member
Jun 15, 2016
10
0
1
27
Hello,

I was having problems with a VM and when I tried to delete the VM, it was having problems.

Now when the VM is stopped, ISO ejected, and I press delete, it spits out this error and I cannot delete it.

Any help would be appreciated.

x5qzo-ofiqy-7v4bq.png


So what I can see from the error is that the VM is already gone, but it is still showing as an active VM under the node.

Thanks alot.
 
How would I do that? I just installed proxmox 3 days ago and I am not familiar with it.
 
P.S - i am using Proxmox 4.2 and i adive you to use it also :)

Another approach:
You can remove disk record from VM config
open thix VM config:
Code:
nano /etc/pve/qemu-server/102.conf
delete line cointaining this disk something like ide0:.... , save and again try to delete whole VM :)

also check if you have this image disk on LVM volume (on drbd ?)

Code:
root@node4:/etc/pve/qemu-server# lvscan
File descriptor 7 (pipe:[76768]) leaked on lvscan invocation. Parent PID 14240: bash
  ACTIVE            '/dev/drbdpool/drbdthinpool' [199.00 GiB] inherit
  ACTIVE            '/dev/drbdpool/.drbdctrl_0' [4.00 MiB] inherit
  ACTIVE            '/dev/drbdpool/.drbdctrl_1' [4.00 MiB] inherit
  ACTIVE            '/dev/drbdpool/vm-103-disk-2_00' [50.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-102-disk-1_00' [20.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-100-disk-1_00' [25.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-101-disk-2_00' [90.02 GiB] inherit

next, if you want permanently delete disk you can do that by i think that is the case that you dont have this image disk :)
Code:
lvremove /dev/drbdpool/vm-102-disk-1_00
 
  • Like
Reactions: NVroom
P.S - i am using Proxmox 4.2 and i adive you to use it also :)

Another approach:
You can remove disk record from VM config
open thix VM config:
Code:
nano /etc/pve/qemu-server/102.conf
delete line cointaining this disk something like ide0:.... , save and again try to delete whole VM :)

also check if you have this image disk on LVM volume (on drbd ?)

Code:
root@node4:/etc/pve/qemu-server# lvscan
File descriptor 7 (pipe:[76768]) leaked on lvscan invocation. Parent PID 14240: bash
  ACTIVE            '/dev/drbdpool/drbdthinpool' [199.00 GiB] inherit
  ACTIVE            '/dev/drbdpool/.drbdctrl_0' [4.00 MiB] inherit
  ACTIVE            '/dev/drbdpool/.drbdctrl_1' [4.00 MiB] inherit
  ACTIVE            '/dev/drbdpool/vm-103-disk-2_00' [50.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-102-disk-1_00' [20.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-100-disk-1_00' [25.01 GiB] inherit
  ACTIVE            '/dev/drbdpool/vm-101-disk-2_00' [90.02 GiB] inherit

next, if you want permanently delete disk you can do that by i think that is the case that you dont have this image disk :)
Code:
lvremove /dev/drbdpool/vm-102-disk-1_00

Thanks for all the help,

Code:
nano /etc/pve/qemu-server/102.conf

No file: File not found

And running LVSCAN does not show the 102 disk

Looks like the VM is already gone but its just stuck in the webui
 
/etc/pve/nodes
Search in all nodes like
/etc/pve/node1/qemu-server
/etc/pve/node2/qemu-server
for this VM config

it should be somewere :)

This is Proxmox cluster or one server ?
Search for this config somewere :)
your MV id is 102 right ?
 
  • Like
Reactions: NVroom
/etc/pve/nodes
Search in all nodes like
/etc/pve/node1/qemu-server
/etc/pve/node2/qemu-server
for this VM config

it should be somewere :)

This is Proxmox cluster or one server ?
Search for this config somewere :)
your MV id is 102 right ?

Oh man, thats why it didn't work. The ID was 103. :(

Editing
Code:
nano /etc/pve/qemu-server/103.conf
and removing the disk, saving, and then deleting worked.

Thanks for all the help. (It's late at night and I glanced over that.)