<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.4.4">
</head>
<body>
Hi,<br>
<br>
we´ve been using the spice page to make users install the ActiveX plugin for a while now, and have had no complaints so far. But while it does it´s job, you really noticed it wasn´t quite part of oVirt as a whole with it´s rather...spartan design:) So I have
 taken a little time to make it look just a little prettier, and feel more like a part of the product.<br>
<br>
/usr/share/ovirt-engine/engine.ear/root.war/spice.html:<br>
<a href="http://pastebin.com/hjK3MtMH">http://pastebin.com/hjK3MtMH</a><br>
<br>
/usr/share/ovirt-engine/engine.ear/root.war/spice.css:<br>
<a href="http://pastebin.com/dtQZ1kif">http://pastebin.com/dtQZ1kif</a><br>
<br>
Hope someone enjoys it.<br>
<br>
Best Regards<br>
Karli Sjöberg<br>
<br>
tor 2012-09-06 klockan 15:36 -0500 skrev Dead Horse:<br>
<blockquote type="CITE">Wiki page added. Feel free to change/edit/contribute or provide feedback.<br>
Link: <a href="http://wiki.ovirt.org/wiki/How_to_Connect_to_SPICE_Console_With_Portal">
http://wiki.ovirt.org/wiki/How_to_Connect_to_SPICE_Console_With_Portal</a><br>
<br>
- DHC<br>
<br>
</blockquote>
<blockquote type="CITE">On Thu, Aug 30, 2012 at 11:05 PM, Robert Middleswarth &lt;<a href="mailto:robert@middleswarth.net">robert@middleswarth.net</a>&gt; wrote:
</blockquote>
<blockquote type="CITE">
<blockquote>You should be able to create an ID.&nbsp; Once you create it several people can update your account I am one of them.<br>
<br>
Thanks<br>
Robert </blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote><br>
<br>
On 08/30/2012 11:17 PM, Dead Horse wrote:<br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">I would be happy to wiki'fy it ;)<br>
I have requested a wiki account so I will just need someone to grant the proper create/edit page access or create a stub page and allow edit access to it.<br>
- DHC<br>
<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">On Thu, Aug 30, 2012 at 3:03 PM, Douglas Landgraf &lt;<a href="mailto:dougsland@redhat.com">dougsland@redhat.com</a>&gt; wrote:
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>On 08/30/2012 02:22 AM, Yaniv Kaul wrote: </blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">Thanks! </blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">Can you wiki'fy it (@ <a href="http://wiki.ovirt.org">wiki.ovirt.org</a>) ?
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">Y.<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>&#43;1<br>
<br>
Thanks! </blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote><br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE"><br>
<hr align="center">
<br>
<blockquote>I have seen this question asked many times on this list and the spice-devel list. Now having figured out how to make it work I will provide the answer to the rest of the community.<br>
<br>
*NOTE* this only applies to Windows/Internet Explorer users. There exists no other option other than the html5 spice console (still beta/in development) for windows users ATM. This will also only work with Internet Explorer.<br>
<br>
Basic Steps:<br>
- Install an oVirt server.<br>
- Add at least one node<br>
- Setup storage/iso/export domains<br>
<br>
Advanced steps<br>
- Start by downloading: <a href="http://elmarco.fedorapeople.org/spice.cab">http://elmarco.fedorapeople.org/spice.cab</a><br>
- Create a directory for it oVirt looks by default in /usr/share/spice<br>
- Rename spice.cab to SpiceX.cab and copy it into /usr/share/spice<br>
- Now edit /usr/share/ovirt-engine/engine.ear/root.war/WEB-INF and add the following:<br>
&nbsp;<br>
&nbsp;&lt;!-- SpiceX.cab --&gt;<br>
&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;SpiceX.cab&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-class&gt;org.ovirt.engine.core.FileServlet&lt;/servlet-class&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;type&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;application/octet-stream&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;file&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;/usr/share/spice/SpiceX.cab&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp; &lt;/servlet&gt;<br>
&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;SpiceX.cab&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/spice/SpiceX.cab&lt;/url-pattern&gt;<br>
&nbsp; &lt;/servlet-mapping&gt;<br>
<br>
- Next create an html file within /usr/share/ovirt-engine/engine.ear/root.war<br>
- In the example below an html file called &quot;spice.html&quot;<br>
- Copy/Paste the below into spice.html:<br>
<br>
&lt;!DOCTYPE html&gt;<br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;title&gt;SPICE Plugin Installer&lt;/title&gt;<br>
<br>
&lt;script type=&quot;text/javascript&quot;&gt;<br>
function installSpice()<br>
{<br>
try {<br>
&nbsp;&nbsp;&nbsp; document.getElementById('SpiceX').innerHTML = '&lt;OBJECT id=&quot;SpiceX&quot; codebase=&quot;/spice/SpiceX.cab&quot; classid=&quot;clsid:ACD6D89C-938D-49B4-8E81-DDBD13F4B48A&quot; width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;/OBJECT&gt;';<br>
&nbsp;&nbsp;&nbsp; } catch (ex) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(&quot;Epic Fail!: &quot; &#43; ex.Description);<br>
&nbsp;&nbsp;&nbsp; }<br>
}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&lt;/script&gt;<br>
<br>
&lt;/head&gt;<br>
&lt;body&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;p&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;p&gt;&lt;b id='SpiceX'&gt;Spice ActiveX Plugin&lt;/b&gt; &lt;/p&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;button onclick='installSpice()'&gt;Install Spice Plugin&lt;/button&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
- Save the file<br>
- You will now need to restart the ovirt-engine service EG: systemctl restart ovirt-engine.service OR service ovirt-engine restart<br>
- The installer page will now be available at http://&lt;url to ovirt server&gt;/spice.html EX:
<a href="http://ovirt.azeroth.net/spice.html">http://ovirt.azeroth.net/spice.html</a><br>
- Navigate to that page and click the install button<br>
- IE will prompt you to deploy/install the SpiceX cabinet file<br>
- It may gripe about an unsigned or untrusted source, acknowledge this an proceed anyways<br>
- If the install succeeds the text &quot;Spice ActiveX Plugin&quot; on the page will change to blank (it's actually the plugin with null values)<br>
- The console button in the user and webadmin portals will now launch the new virt-viwer spice based console!<br>
<br>
Happy Spice Consoling to your VM's from Windows!<br>
<br>
*NOTE*<br>
To uninstall the plugin:<br>
- The below removes the add-on from IE (EG: removes knowledge of &quot;application/x-spice&quot;)<br>
- pop a command terminal and type:<br>
On Windows XP: regsvr32 /u &quot;C:\Documents and Settings\Administrator\Local Settings\Application Data\virt-viewer\bin\SpiceX.dll&quot;<br>
On Windows 7 regsvr32 /u C:\Documents and Settings\Administrator\Local Settings\AppData\virt-viewer\bin\SpiceX.dll&quot;<br>
- Next we need to remove the rest of virt-viewer<br>
- Go to add/remove programs and uninstall virt-viewer, this removes the rest of virt-viewer from the system<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE"><br>
<br>
<pre>
_______________________________________________
Users mailing list
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE">
<blockquote>
<pre>
<font color="#888888">-- </font>
<font color="#888888">Cheers</font>
<font color="#888888">Douglas</font>
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote type="CITE"><br>
<br>
<br>
<pre>
_______________________________________________
Users mailing list
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<pre>
<font color="#888888">-- </font>
<font color="#888888">Thanks</font>
<font color="#888888">Robert Middleswarth</font>
<font color="#888888">@rmiddle (twitter/Freenode IRC)</font>
<font color="#888888">@RobertM (OFTC IRC)</font>
</pre>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE"><br>
</blockquote>
<br>
</body>
</html>