[Solved] Container already locked for OpenVZ VPS

If you get the error as “container already locked” for an OpenVZ VPS when you are trying to stop a VPS, then follow the steps mentioned here. Assume that your VPS ID is 104

Error details:

[[email protected] ~]# vzctl stop 104
Container already locked


1. Remove the lock.

# rm /vz/lock/VE_ID.lck

[[email protected] ~]#  rm /vz/lock/104.lck
rm: remove regular file `/vz/lock/104.lck'? y

2. Kill the checkpoint

# vzctl chkpnt VE_ID –kill

[[email protected] ~]#  vzctl chkpnt 104 --kill

Done! 🙂 🙂

Related links:
WHM showing disk usage 0 for all users in OpenVZ VPS
How to Enable/Check TUN/TAP module in VPS(OpenVZ)

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *