<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    You need to use modprobe not insmod, as the latter<br>
    requires path to .ko file, not the module name.<br>
    <br>
    [root@tpad-ovz1 ~]# lsmod | grep af_key<br>
    [root@tpad-ovz1 ~]# modprobe af_key<br>
    [root@tpad-ovz1 ~]# lsmod | grep af_key<br>
    af_key                 30067  0 <br>
    [root@tpad-ovz1 ~]# uname -a<br>
    Linux tpad-ovz1 2.6.32-042stab109.4 #1 SMP Fri May 8 15:31:07 MSK
    2015 x86_64 x86_64 x86_64 GNU/Linux<br>
    [root@tpad-ovz1 ~]# <br>
    <br>
    <div class="moz-cite-prefix">On 07/14/2015 03:24 PM, Rene C. wrote:<br>
    </div>
    <blockquote
cite="mid:CA+ZVM8vKYNsAaj8J_wVuLowLbrtknfn5en4ypOC6n6f_knOUhw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr"><br>
        <div><a moz-do-not-send="true" href="https://openvz.org/IPsec">https://openvz.org/IPsec</a>
          suggest <br>
        </div>
        <div><br>
        </div>
        <div>
          <ul style="line-height:1.5em;margin:0.3em 0px 0px
1.6em;padding:0px;color:rgb(37,37,37);font-family:sans-serif;font-size:14px">
            <li style="margin-bottom:0.1em">Kernel 042stab084.8 or later</li>
            <li style="margin-bottom:0.1em">The following kernel modules
              must be loaded before container start:</li>
          </ul>
          <dl
style="margin-top:0.2em;margin-bottom:0.5em;color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:22.3999996185303px">
            <dd
style="line-height:1.5em;margin-left:1.6em;margin-bottom:0.1em;margin-right:0px"><code
                style="font-family:'Liberation Mono','Andale
                Mono','DejaVu Sans Mono','Vera Sans
                Mono',Consolas,Courier,monospace;color:black;border:1px
                solid rgb(221,221,221);border-radius:2px;padding:1px
                4px;background-color:rgb(247,249,250)">af_key esp4 esp6
                xfrm4_mode_tunnel xfrm6_mode_tunnel</code></dd>
          </dl>
        </div>
        <div><br>
        </div>
        <div>but this throws an error:</div>
        <div><br>
        </div>
        <div>
          <div>insmod: can't read 'af_key': No such file or directory</div>
        </div>
        <div><br>
        </div>
        <div>Kernel is 2.6.32-042stab108.2</div>
        <div><br>
        </div>
        <div>What gives?  </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>