<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    10.11.2015 19:32, Frank Laszlo пишет:<br>
    <blockquote
cite="mid:CA+RnUZwVMrXk5p2PXY2rvL6Za8TdwB4zi=sGhW6nVivMbFOLcg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I've been tasked with integrating libvirt into a server
          running Parallel Cloud Server 6.0. However, it seems I've ran
          into some trouble getting the vz/parallel driver to compile.
          It appears there might be an issue with the version of
          parallels-virtualization-sdk thats installed (6.10.24195)</div>
        <div><br>
        </div>
        <div>I first tried using the latest libvirt version, 1.2.21.
          After finding the magical configure arguments and ENV
          variables to get it to find the SDK, the configure script
          reported "Yes" next to the vz driver. I then proceeded to run
          a make, and was confronted with the following error message:</div>
        <div><br>
        </div>
        <div>
          <div>vz/vz_sdk.c: In function 'prlsdkAddNet':</div>
          <div>vz/vz_sdk.c:2964: error:
            'PRL_USE_VNET_NAME_FOR_BRIDGE_NAME' undeclared (first use in
            this function)</div>
          <div>vz/vz_sdk.c:2964: error: (Each undeclared identifier is
            reported only once</div>
          <div>vz/vz_sdk.c:2964: error: for each function it appears
            in.)</div>
          <div>make[3]: *** [vz/libvirt_driver_vz_la-vz_sdk.lo] Error 1</div>
          <div>make[3]: Leaving directory `/root/libvirt-1.2.21/src'</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I then tried to use libvirt 1.2.16, thinking that if I go
          back a few versions to before the driver was renamed
          (parallels -> vz), it might work. This appears to have
          sorted out the compiler errors, however, when it goes to link
          the modules, I get the following:</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    Hello Frank,<br>
    <br>
    The version of parallels-virtualization-sdk provided with Parallels
    Cloud Server 6.0 is not supposed to be linked with libvirt. You need
    an open version, which comes with the next VZ 7.0. You can get
    sources from here:<br>
     <a class="moz-txt-link-freetext" href="https://src.openvz.org/scm/ovz/libprlsdk.git">https://src.openvz.org/scm/ovz/libprlsdk.git</a><br>
     <a class="moz-txt-link-freetext" href="https://github.com/OpenVZ/libprlsdk">https://github.com/OpenVZ/libprlsdk</a><br>
    <br>
    Then build it yourself.<br>
    If have any questions, please feel free to contact me directly.<br>
    <br>
    Best,<br>
    Maxim Nestratov<br>
    <br>
  </body>
</html>