1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot remove VM ( VM is locked (snapshot-delete) )

Discussion in 'Proxmox VE: Installation and configuration' started by kroem, Jul 17, 2017.

  1. kroem

    kroem New Member

    Joined:
    Jul 12, 2016
    Messages:
    27
    Likes Received:
    0
    I'm trying to remove an old VM but the web gui is refusing to, gicing me ERROR: VM is locked (snapshot-delete). The reason being, probably, because I did some recent changes to my zfs snaps and (accidentally) removed a Proxmox snap (called innan-deb8). Is there a way to manually remove that snap from the VM's config?

    root@cat:~# qm listsnapshot 103
    innan_deb8 no-parent no-description
    current innan_deb8 no-description
    root@cat:~# qm delsnapshot 103 innan_deb8
    VM is locked (snapshot-delete)
     
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    2,004
    Likes Received:
    90
    Hi,

    use this command to unlock

    Code:
    qm unlock 103
    
    more information see
    Code:
    man qm 
    
     
  3. kroem

    kroem New Member

    Joined:
    Jul 12, 2016
    Messages:
    27
    Likes Received:
    0
    Code:
    root@cat:~# qm unlock 103
    root@cat:~# qm listsnapshot 103        
    innan_deb8           no-parent            no-description
    current              innan_deb8           no-description
    root@cat:~# qm delsnapshot 103 innan_deb8
    zfs error: could not find any snapshots to destroy; check snapshot names.
    :|
     

Share This Page