Article ID: 114594, created on Aug 16, 2012, last review on May 11, 2014

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

A container on Parallels Virtuozzo Containers for Linux 4.7 hangs in the "stopping" state and becomes inoperable.

Several bash and sshd processes can be found in the "D" or "Z" state in this container, and it is not possible to terminate those processes using the kill command:
[root@myserver ~]# vzctl stop 12345
Stopping the Container ...
Set up iolimit: 0
Set up iopslimit: 0
Unable to stop the Container; operation timed out

[root@myserver ~]# vzps -fE 12345
 CTID UID        PID  PPID  C STIME TTY          TIME CMD
12345 0        50171     1  0 Aug08 ?        00:00:00 [init]
12345 0        50172     2  0 Aug08 ?        00:00:00 [kthreadd/12345]
12345 0        50173 50172  0 Aug08 ?        00:00:00 [khelper/12345]
12345 0        46822 50171  0 Aug08 ?        00:00:00 sshd: root@pts/0
12345 0        50427 46822  0 Aug08 ?        00:00:00 [bash] <defunct>
12345 0        54667 50171  0 Aug08 ?        00:00:00 /usr/sbin/pppd

Cause

This behavior is caused by a known issue with ID PCLIN-31160. The issue occurs when pppd leads to a race condition, resulting in a container lockup.

Resolution

The issue will be fixed in one of the upcoming kernel updates.
The workaround is to prohibit ppp in containers:
for CTID in `vzlist -a -o ctid -H`; do vzctl set $CTID --save --feature ppp:off; done

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f

Email subscription for changes to this article
Save as PDF