How to kill an openvz container?
        Posted  
        
            by 
                johannes
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by johannes
        
        
        
        Published on 2012-10-05T21:33:10Z
        Indexed on 
            2012/10/06
            9:39 UTC
        
        
        Read the original article
        Hit count: 291
        
openvz
An openvz container can be stopped with
vzctl stop <id>
, but this needs the cooperation from the init inside the container. In case a container is compromised a way is needed to stop the container withouts its cooperation. Something like a
vzctl kill <id>
is needed which kills all processes inside the container and puts it into the stopped state. Such a kill command is not listed in the manpage.
How can an openvz container be killed/stopped without needing it's cooperation?
© Server Fault or respective owner