
Hi all, Is there a native way to enable spice sharing like described there: https://www.spice-space.org/docs/manual/manual.chunked/ar01s10.html I guess such a hook is very simple to write. -- 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 blanchet@abes.fr

Hi Nathanael, 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). So no native way to enable it. 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. Please also note that you'll need to install the spice-webdavd daemon in the VM itself. On Thu, Apr 13, 2017 at 3:03 PM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Hi all,
Is there a native way to enable spice sharing like described there: https://www.spice-space.org/docs/manual/manual.chunked/ar01s10.html
I guess such a hook is very simple to write.
-- 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 blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Lev Veyde Software Engineer, RHCE | RHCVA | MCITP Red Hat Israel <https://www.redhat.com> lev@redhat.com | lveyde@redhat.com <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>

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