https://openvz.org/IPsec suggest
- Kernel 042stab084.8 or later
- The following kernel modules must be loaded before container start:
af_key esp4 esp6 xfrm4_mode_tunnel xfrm6_mode_tunnel
but this throws an error:
insmod: can't read 'af_key': No such file or directory
Kernel is 2.6.32-04
You need to use modprobe not insmod, as the latter
requires path to .ko file, not the module name.
[root@tpad-ovz1 ~]# lsmod | grep af_key
[root@tpad-ovz1 ~]# modprobe af_key
[root@tpad-ovz1 ~]# lsmod | grep af_key
af_key 30067 0
[root@tpad-ovz1 ~]# uname -a
Linux tpad-ovz1 2.6.3