Article ID: 115565, created on Feb 18, 2013, last review on May 11, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor 5.0

Symptoms

Command line tools ping and ping6 do not work on Fedora 17 and Fedora 18 containers:
[root@fedora ~]# ping 10.1.1.1
-bash: /bin/ping: Operation not permitted

Cause

The ping and ping6 tools require kernel cap_net_raw capability.

Resolution

Enable net_raw capability on ping tools inside the container:
[root@fedora ~]# setcap cap_net_raw+ep /bin/ping
[root@fedora ~]# setcap cap_net_raw+ep /bin/ping6

0dd5b9380c7d4884d77587f3eb0fa8ef 2897d76d56d2010f4e3a28f864d69223 c62e8726973f80975db0531f1ed5c6a2 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f a26b38f94253cdfbf1028d72cf3a498b c662da62f00df94fd77ba7a2c9eff4b4

Email subscription for changes to this article
Save as PDF