<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Fortunately, you answered to me before I spend to much time to
      debug something that can't work... (compiling phodav on el6 is
      awful)</p>
    <p>I had time to make a hook to add a spiceport device, if someone
      could be interested:</p>
    <p>#!/usr/bin/python2<br>
      <br>
      import os<br>
      import sys<br>
      import hooking<br>
      import traceback<br>
      <br>
      '''<br>
      spice file_sharing vdsm hook<br>
      ================<br>
      adding spice file sharing to libvirt domain entry:<br>
      <br>
      &lt;devices&gt;<br>
          &lt;channel type='spiceport'&gt;<br>
              &lt;source channel='org.spice-space.webdav.0'/&gt;<br>
              &lt;target type='virtio'
      name='org.spice-space.webdav.0'/&gt;<br>
          &lt;/channel&gt;<br>
      &lt;/devices&gt;<br>
      '''<br>
      <br>
      try:<br>
          domxml = hooking.read_domxml()<br>
          devices = domxml.getElementsByTagName('devices')[0]<br>
          channel = domxml.createElement('channel')<br>
          channel.setAttribute('type', 'spiceport')<br>
          devices.appendChild(channel)<br>
      <br>
          source = domxml.createElement('source')<br>
          source.setAttribute('channel', 'org.spice-space.webdav.0')<br>
          channel.appendChild(source)<br>
      <br>
          target = domxml.createElement('target')<br>
          target.setAttribute('type', 'virtio')<br>
          target.setAttribute('name', 'org.spice-space.webdav.0')<br>
          channel.appendChild(target)<br>
      <br>
          hooking.write_domxml(domxml)<br>
      <br>
      except:<br>
          sys.stderr.write('spice file sharing: [unexpected error]:
      %s\n' %<br>
                           traceback.format_exc())<br>
          sys.exit(2)<br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 13/04/2017 à 15:43, Lev Veyde a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CANB6pM6Bu_VuMWQxzonvU2x-HU969hkEFFzB89sR6P_MBkcWtQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Nathanael,<br>
            <br>
          </div>
          It's an experimental feature, so currently it's not officially
          supported in oVirt/RHV, nor in the spice client included in
          RHEL (and probably not in distros that are based on it).<br>
        </div>
        <div>So no native way to enable it.<br>
        </div>
        <div><br>
        </div>
        But you're right, the hook should be relatively easy to write,
        just be sure to use Fedora as your client, in order to have the
        required WebDav support on the (spice) client side.<br>
        <br>
        Please also note that you'll need to install the spice-webdavd
        daemon in the VM itself.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Apr 13, 2017 at 3:03 PM,
          Nathanaël Blanchet <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:blanchet@abes.fr"
              target="_blank">blanchet@abes.fr</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
            <br>
            Is there a native way to enable spice sharing like described
            there: <a moz-do-not-send="true"
href="https://www.spice-space.org/docs/manual/manual.chunked/ar01s10.html"
              rel="noreferrer" target="_blank">https://www.spice-space.org/do<wbr>cs/manual/manual.chunked/ar01s<wbr>10.html</a><br>
            <br>
            I guess such a hook is very simple to write.<br>
            <br>
            <br>
            -- <br>
            Nathanaël Blanchet<br>
            <br>
            Supervision réseau<br>
            Pôle Infrastrutures Informatiques<br>
            227 avenue Professeur-Jean-Louis-Viala<br>
            34193 MONTPELLIER CEDEX 5       <br>
            Tél. 33 (0)4 67 54 84 55<br>
            Fax  33 (0)4 67 54 84 14<br>
            <a moz-do-not-send="true" href="mailto:blanchet@abes.fr"
              target="_blank">blanchet@abes.fr</a><br>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true" href="mailto:Users@ovirt.org"
              target="_blank">Users@ovirt.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ovirt.org/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div><br>
                          <div>
                            <p
style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span>Lev</span>
                              <span>Veyde</span></p>
                            <p
                              style="font-weight:normal;font-size:10px;margin:0px
                              0px 4px;text-transform:uppercase"><span>Software
                                Engineer</span><span
                                style="color:rgb(204,204,204)">, <span
style="font-weight:normal;color:#aaa;margin:0">RHCE | RHCVA | MCITP</span></span></p>
                            <p
                              style="font-weight:normal;margin:0;font-size:10px;color:#999"><a
                                moz-do-not-send="true"
style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif"
                                href="https://www.redhat.com"
                                target="_blank">Red Hat <span>Israel<br>
                                  <br>
                                </span></a></p>
                            <p style="font-weight:normal;margin:0px 0px
                              6px;font-size:10px;color:rgb(153,153,153)"><span
                                style="margin:0px;padding:0px">
                                <a moz-do-not-send="true"
style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif"
                                  href="mailto:lev@redhat.com"
                                  target="_blank">lev@redhat.com</a> | </span><span><span
                                  style="margin:0px;padding:0px"><a
                                    moz-do-not-send="true"
style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif"
                                    href="mailto:lveyde@redhat.com"
                                    target="_blank">lveyde@redhat.com</a></span></span>
                            </p>
                            <a moz-do-not-send="true"
                              href="https://red.ht/sig" target="_blank">
                              <img moz-do-not-send="true"
src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png"
                                height="auto" width="90"></a>
                            <div><a moz-do-not-send="true"
                                href="https://redhat.com/trusted"
                                style="text-decoration:none;color:#c00;font-weight:bold"
                                target="_blank">TRIED. TESTED. TRUSTED.</a></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5         
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet@abes.fr</a> </pre>
  </body>
</html>