<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
This is awesome work, thank you so much for this! For our users and administrators, having a button you just click to get a console is sooo much easier than having to copy-paste a bunch of cryptic addresses and passwords, and having to use the infamous, dangerous
hacker tool VNC:)
<div><br>
</div>
<div>I followed the wiki instructions and a vital piece missing is to restart ovirt-engine before trying to install the spice-client from the install portal. I went back and read through the email you first posted and the restart was mentioned there so I did
and then it worked! Wohoo! So you might want to add that point to the wiki page as well, to avoid future confusion.</div>
<div><br>
</div>
<div>But...when I have virt-viewer(-0.5.3) installed, log in to webadmin and click for console on a guest, the console shows up. But when I try to go into the console window with the mouse cursor, the cursor jumps off to one of the edges of my <b>monitor</b>,
and not into the console window- as you would expect. Maybe virt-viewer mistakenly "thinks" that the edges of it´s window really are the edges of the whole monitor? Am I holding it wrong?</div>
<div><br>
</div>
<div>/Karli</div>
<div><br>
<div>
<div>6 sep 2012 kl. 22.36 skrev Dead Horse:</div>
<br class="Apple-interchange-newline">
<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>
<div class="gmail_quote">On Thu, Aug 30, 2012 at 11:05 PM, Robert Middleswarth <span dir="ltr">
<<a href="mailto:robert@middleswarth.net" target="_blank">robert@middleswarth.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<div bgcolor="#FFFFFF" text="#000000">
<div>You should be able to create an ID. Once you create it several people can update your account I am one of them.<br>
<br>
Thanks<br>
Robert
<div>
<div class="h5"><br>
<br>
On 08/30/2012 11:17 PM, Dead Horse wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<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>
<div class="gmail_quote">On Thu, Aug 30, 2012 at 3:03 PM, Douglas Landgraf <span dir="ltr">
<<a href="mailto:dougsland@redhat.com" target="_blank">dougsland@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<div bgcolor="#FFFFFF" text="#000000">
<div>On 08/30/2012 02:22 AM, Yaniv Kaul wrote:
<blockquote type="cite">
<div style="font-size:12pt;font-family:times new roman,new york,times,serif">Thanks!
<div>Can you wiki'fy it (@ <a href="http://wiki.ovirt.org/" target="_blank">wiki.ovirt.org</a>) ?</div>
<div>Y.<br>
</div>
</div>
</blockquote>
</div>
+1<br>
<br>
Thanks!
<div>
<div><br>
<blockquote type="cite">
<div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div><br>
<hr>
<blockquote style="padding-left: 5px; font-size: 12pt; font-style: normal; margin-left: 5px; font-family: Helvetica, Arial, sans-serif; text-decoration: none; font-weight: normal; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); position: static; z-index: auto; ">
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" target="_blank">
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>
<br>
<!-- SpiceX.cab --><br>
<servlet><br>
<servlet-name>SpiceX.cab</servlet-name><br>
<servlet-class>org.ovirt.engine.core.FileServlet</servlet-class><br>
<init-param><br>
<param-name>type</param-name><br>
<param-value>application/octet-stream</param-value><br>
</init-param><br>
<init-param><br>
<param-name>file</param-name><br>
<param-value>/usr/share/spice/SpiceX.cab</param-value><br>
</init-param><br>
</servlet><br>
<servlet-mapping><br>
<servlet-name>SpiceX.cab</servlet-name><br>
<url-pattern>/spice/SpiceX.cab</url-pattern><br>
</servlet-mapping><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 "spice.html"<br>
- Copy/Paste the below into spice.html:<br>
<br>
<!DOCTYPE html><br>
<html><br>
<head><br>
<title>SPICE Plugin Installer</title><br>
<br>
<script type="text/javascript"><br>
function installSpice()<br>
{<br>
try {<br>
document.getElementById('SpiceX').innerHTML = '<OBJECT id="SpiceX" codebase="/spice/SpiceX.cab" classid="clsid:ACD6D89C-938D-49B4-8E81-DDBD13F4B48A" width="0" height="0"></OBJECT>';<br>
} catch (ex) {<br>
alert("Epic Fail!: " + ex.Description);<br>
}<br>
} <br>
</script><br>
<br>
</head><br>
<body><br>
<p><br>
<p><b id='SpiceX'>Spice ActiveX Plugin</b> </p> <br>
<button onclick='installSpice()'>Install Spice Plugin</button><br>
</p><br>
</body><br>
</html><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 <a>http://</a><url to ovirt server>/spice.html EX:
<a href="http://ovirt.azeroth.net/spice.html" target="_blank">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 "Spice ActiveX Plugin" 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 "application/x-spice")<br>
- pop a command terminal and type:<br>
On Windows XP: regsvr32 /u "C:\Documents and Settings\Administrator\Local Settings\Application Data\virt-viewer\bin\SpiceX.dll"<br>
On Windows 7 regsvr32 /u C:\Documents and Settings\Administrator\Local Settings\AppData\virt-viewer\bin\SpiceX.dll"<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" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote>
<br>
</div>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</div>
</div>
<span><font color="#888888">
<pre cols="72">--
Cheers
Douglas</pre>
</font></span></div>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</div>
</div>
<span class="HOEnZb"><font color="#888888">
<pre cols="72">--
Thanks
Robert Middleswarth
@rmiddle (twitter/Freenode IRC)
@RobertM (OFTC IRC)
</pre>
</font></span></div>
<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" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
http://lists.ovirt.org/mailman/listinfo/users<br>
</blockquote>
</div>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div><br class="Apple-interchange-newline">
<br>
</div>
<div>Med Vänliga Hälsningar<br>
-------------------------------------------------------------------------------<br>
Karli Sjöberg<br>
Swedish University of Agricultural Sciences<br>
Box 7079 (Visiting Address Kronåsvägen 8)<br>
S-750 07 Uppsala, Sweden<br>
Phone: +46-(0)18-67 15 66</div>
<div><a href="mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></div>
</span></div>
<br>
</div>
</body>
</html>