[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)

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

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