Remove attached ISO

angry_beaver

New Member
Apr 23, 2026
9
2
3
Hi,
I have a 3 nodes in proxmox cluster
on each node I have clustered storage, i use it for ISO images. this storage mount as local

# cat /etc/pve/storage.cfg
dir: isorepo
path /mnt/ocfs

content vztmpl,import,iso,snippets,rootdir
prune-backups keep-all=1
shared 1

I mount ISO in VM, then I delete ISO in storage, but no warning or error... even ISO is attached. In VM I see this ISO.
Error was then I try to migrate VM to another node.

Why proxmox didn't check if ISO is mounted when delete file ?

Thanks,
Oleg
 

Attachments

  • node1-iso-delete.png
    node1-iso-delete.png
    50.9 KB · Views: 10
  • node1-vm.png
    node1-vm.png
    36.2 KB · Views: 10
  • node-migrate.png
    node-migrate.png
    21.2 KB · Views: 11
  • node-storage.png
    node-storage.png
    29.6 KB · Views: 10
  • vm-use-iso.png
    vm-use-iso.png
    33.1 KB · Views: 11
i guess it's not checked because such a check will always be incomplete. to check every vm we'd have to iterate over all vm configs on all nodes, but while the check is running nobody is prevented to add the iso to a vm again. alternatively the whole cluster would have to be locked for as long as the deletion process which would halt every other vm operation that changes the configs...

we could implement a best effort check IMO, so if you want you can open a feature request here: https://bugzilla.proxmox.com