--_000_9DC69612F1C44533AA0BAA907622F34Fsluse_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
This is awesome work, thank you so much for this! For our users and adminis=
trators, having a button you just click to get a console is sooo much easie=
r than having to copy-paste a bunch of cryptic addresses and passwords, and=
having to use the infamous, dangerous hacker tool VNC:)
I followed the wiki instructions and a vital piece missing is to restart ov=
irt-engine before trying to install the spice-client from the install porta=
l. 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 t=
o add that point to the wiki page as well, to avoid future confusion.
But...when I have virt-viewer(-0.5.3) installed, log in to webadmin and cli=
ck 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 th=
e edges of my monitor, and not into the console window- as you would expect=
. Maybe virt-viewer mistakenly "thinks" that the edges of it=B4s window rea=
lly are the edges of the whole monitor? Am I holding it wrong?
/Karli
6 sep 2012 kl. 22.36 skrev Dead Horse:
Wiki page added. Feel free to change/edit/contribute or provide feedback.
Link:
http://wiki.ovirt.org/wiki/How_to_Connect_to_SPICE_Console_With_Porta=
l
- DHC
On Thu, Aug 30, 2012 at 11:05 PM, Robert Middleswarth <robert(a)middleswarth.=
net<mailto:robert@middleswarth.net>> wrote:
You should be able to create an ID. Once you create it several people can =
update your account I am one of them.
Thanks
Robert
On 08/30/2012 11:17 PM, Dead Horse wrote:
I would be happy to wiki'fy it ;)
I have requested a wiki account so I will just need someone to grant the pr=
oper create/edit page access or create a stub page and allow edit access to=
it.
- DHC
On Thu, Aug 30, 2012 at 3:03 PM, Douglas Landgraf <dougsland(a)redhat.com<mai=
lto:dougsland@redhat.com>> wrote:
On 08/30/2012 02:22 AM, Yaniv Kaul wrote:
Thanks!
Can you wiki'fy it (@
wiki.ovirt.org<http://wiki.ovirt.org/>) ?
Y.
+1
Thanks!
________________________________
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.
*NOTE* this only applies to Windows/Internet Explorer users. There exists n=
o other option other than the html5 spice console (still beta/in developmen=
t) for windows users ATM. This will also only work with Internet Explorer.
Basic Steps:
- Install an oVirt server.
- Add at least one node
- Setup storage/iso/export domains
Advanced steps
- Start by downloading:
http://elmarco.fedorapeople.org/spice.cab
- Create a directory for it oVirt looks by default in /usr/share/spice
- Rename spice.cab to SpiceX.cab and copy it into /usr/share/spice
- Now edit /usr/share/ovirt-engine/engine.ear/root.war/WEB-INF and add the =
following:
<!-- SpiceX.cab --
<servlet
<servlet-name>SpiceX.cab</servlet-name
<servlet-class>org.ovirt.engine.core.FileServlet</servlet-class
<init-param
<param-name>type</param-name
<param-value>application/octet-stream</param-value
</init-param
<init-param
<param-name>file</param-name
<param-value>/usr/share/spice/SpiceX.cab</param-value
</init-param
</servlet
<servlet-mapping
<servlet-name>SpiceX.cab</servlet-name
<url-pattern>/spice/SpiceX.cab</url-pattern
</servlet-mapping
- Next create an html file within /usr/share/ovirt-engine/engine.ear/root.w=
ar
- In the example below an html file called "spice.html"
- Copy/Paste the below into spice.html:
<!DOCTYPE html
<html
<head
<title>SPICE Plugin Installer</title
<script type=3D"text/javascript"
function
installSpice()
{
try {
document.getElementById('SpiceX').innerHTML =3D '<OBJECT
id=3D"SpiceX" =
codebase=3D"/spice/SpiceX.cab"
classid=3D"clsid:ACD6D89C-938D-49B4-8E81-DDB=
D13F4B48A" width=3D"0" height=3D"0"></OBJECT>';
} catch (ex) {
alert("Epic Fail!: " + ex.Description);
}
}
</script
</head
<body
<p
<p><b id=3D'SpiceX'>Spice ActiveX Plugin</b> </p
<button onclick=3D'installSpice()'>Install
Spice Plugin</button
</p
</body
</html
- Save the file
- You will now need to restart the ovirt-engine service EG: systemctl resta=
rt ovirt-engine.service OR service ovirt-engine restart
- The installer page will now be available at http://<url to ovirt server>/=
spice.html EX:
http://ovirt.azeroth.net/spice.html
- Navigate to that page and click the install button
- IE will prompt you to deploy/install the SpiceX cabinet file
- It may gripe about an unsigned or untrusted source, acknowledge this an p=
roceed anyways
- If the install succeeds the text "Spice ActiveX Plugin" on the page will =
change to blank (it's actually the plugin with null values)
- The console button in the user and webadmin portals will now launch the n=
ew virt-viwer spice based console!
Happy Spice Consoling to your VM's from Windows!
*NOTE*
To uninstall the plugin:
- The below removes the add-on from IE (EG: removes knowledge of "applicati=
on/x-spice")
- pop a command terminal and type:
On Windows XP: regsvr32 /u "C:\Documents and Settings\Administrator\Local S=
ettings\Application Data\virt-viewer\bin\SpiceX.dll"
On Windows 7 regsvr32 /u C:\Documents and Settings\Administrator\Local Sett=
ings\AppData\virt-viewer\bin\SpiceX.dll"
- Next we need to remove the rest of virt-viewer
- Go to add/remove programs and uninstall virt-viewer, this removes the res=
t of virt-viewer from the system
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--
Cheers
Douglas
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--
Thanks
Robert Middleswarth
@rmiddle (twitter/Freenode IRC)
@RobertM (OFTC IRC)
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
Med V=E4nliga H=E4lsningar
---------------------------------------------------------------------------=
----
Karli Sj=F6berg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kron=E5sv=E4gen 8)
S-750 07 Uppsala, Sweden
Phone: +46-(0)18-67 15 66
karli.sjoberg@slu.se<mailto:karli.sjoberg@adm.slu.se
--_000_9DC69612F1C44533AA0BAA907622F34Fsluse_
Content-Type: text/html; charset="iso-8859-1"
Content-ID: <6D85B93A3E827D47B349CBB91D0647F4(a)ad.slu.se
Content-Transfer-Encoding: quoted-printable
<html
<head
<meta http-equiv=3D"Content-Type"
content=3D"text/html; charset=3Diso-8859-=
1"
</head
<body
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; "
This is awesome work, thank you so
much for this! For our users and adminis=
trators, having a button you just click to get a console is sooo much easie=
r 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 resta=
rt 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 res=
tart 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 an=
d 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 mi=
stakenly "thinks" that the edges of it=B4s 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=3D"Apple-interchange-newline"
<blockquote type=3D"cite">Wiki page added. Feel
free to change/edit/contrib=
ute or provide feedback.<br
Link: <a
href=3D"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<...
br
<br
- DHC<br
<br
<div
class=3D"gmail_quote">On Thu, Aug 30, 2012 at 11:05 PM, Robert Middles=
warth <span dir=3D"ltr"
<<a href=3D"mailto:robert@middleswarth.net"
target=3D"_blank">robert@mid=
dleswarth.net</a>></span> wrote:<br
<blockquote class=3D"gmail_quote" style=3D"margin-top: 0px;
margin-right: 0=
px; 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=3D"#FFFFFF" text=3D"#000000"
<div>You should be able to create an ID. Once you create it several
p=
eople can update your account I am one of them.<br
<br
Thanks<br
Robert
<div
<div class=3D"h5"><br
<br
On 08/30/2012 11:17 PM, Dead Horse
wrote:<br
</div
</div
</div
<div
<div
class=3D"h5"
<blockquote
type=3D"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 pr=
oper create/edit page access or create a stub page and allow edit access to=
it.<br
- DHC<br
<br
<div
class=3D"gmail_quote">On Thu, Aug 30, 2012 at 3:03 PM, Douglas Landgra=
f <span dir=3D"ltr"
<<a
href=3D"mailto:dougsland@redhat.com"
target=3D"_blank">dougsland@red=
hat.com</a>></span> wrote:<br
<blockquote class=3D"gmail_quote" style=3D"margin-top: 0px;
margin-right: 0=
px; 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=3D"#FFFFFF" text=3D"#000000"
<div>On 08/30/2012 02:22 AM, Yaniv Kaul wrote:
<blockquote type=3D"cite"
<div
style=3D"font-size:12pt;font-family:times new roman,new york,times,ser=
if">Thanks!
<div>Can you wiki'fy it (@ <a
href=3D"http://wiki.ovirt.org/"
target=3D"_bl=
ank">wiki.ovirt.org</a>) ?</div
<div>Y.<br
</div
</div
</blockquote
</div
+1<br
<br
Thanks!
<div
<div><br
<blockquote type=3D"cite"
<div
style=3D"font-size:12pt;font-family:times new roman,new york,times,ser=
if"
<div><br
<hr
<blockquote
style=3D"padding-left: 5px; font-size: 12pt; font-style: normal=
; margin-left: 5px; font-family: Helvetica, Arial, sans-serif; text-decorat=
ion: 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 n=
o other option other than the html5 spice console (still beta/in developmen=
t) 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=3D"http://elmarco.fedorapeople.org/spice.ca=
b" target=3D"_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&l=
t;/servlet-class><br
<init-param><br
<param-name>type</param-name><br=
<param-value>application/octet-stream&=
lt;/param-value><br
</init-param><br
<init-param><br
<param-name>file</param-name><br=
<param-value>/usr/share/spice/SpiceX.c=
ab</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.w=
ar<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=3D"text/javascript"><br
function
installSpice()<br
{<br
try
{<br
document.getElementById('SpiceX').innerHTML =3D '<OBJ=
ECT id=3D"SpiceX" codebase=3D"/spice/SpiceX.cab"
classi=
d=3D"clsid:ACD6D89C-938D-49B4-8E81-DDBD13F4B48A"
width=3D"0&=
quot; height=3D"0"></OBJECT>';<br
} catch (ex) {<br
alert("Epic Fail!: " &=
#43; ex.Description);<br
}<br
} <br
</script><br
<br
</head><br
<body><br
<p><br
<p><b
id=3D'SpiceX'>Spice ActiveX Plugin<=
/b> </p> <br
<button
onclick=3D'installSpice()'>Install Spice P=
lugin</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 resta=
rt ovirt-engine.service OR service ovirt-engine restart<br
- The
installer page will now be available at <a>http://</a><url to ovir=
t server>/spice.html EX:
<a
href=3D"http://ovirt.azeroth.net/spice.html"
target=3D"_blank">http://ov=
irt.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 p=
roceed 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 n=
ew 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 "appl=
ication/x-spice")<br
- pop a command terminal and
type:<br
On Windows XP: regsvr32 /u
"C:\Documents and Settings\Administrator\Lo=
cal Settings\Application Data\virt-viewer\bin\SpiceX.dll"<br
On Windows 7 regsvr32 /u C:\Documents and
Settings\Administrator\Local Sett=
ings\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 res=
t of virt-viewer from the system<br
<br
_______________________________________________<br
Users
mailing list<br
<a
href=3D"mailto:Users@ovirt.org"
target=3D"_blank">Users(a)ovirt.org</a><br=
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
>http://lists.ovirt.org/mailman/listinfo/users</a><br
</blockquote
<br
</div
</div
<br
<fieldset></fieldset>
<br
<pre>_______________________________________________
Users mailing list
<a href=3D"mailto:Users@ovirt.org"
target=3D"_blank">Users(a)ovirt.org</a
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
>http://lists.ovirt.org/mailman/listinfo/users</a
</pre
</blockquote
<br
<br
</div
</div
<span><font color=3D"#888888"
<pre cols=3D"72">--=20
Cheers
Douglas</pre
</font></span></div
</blockquote
</div
<br
<br
<fieldset></fieldset> <br
<pre>_______________________________________________
Users mailing list
<a href=3D"mailto:Users@ovirt.org"
target=3D"_blank">Users(a)ovirt.org</a
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
>http://lists.ovirt.org/mailman/listinfo/users</a
</pre
</blockquote
<br
<br
</div
</div
<span class=3D"HOEnZb"><font
color=3D"#888888"
<pre
cols=3D"72">--=20
Thanks
Robert Middleswarth
@rmiddle (twitter/Freenode IRC)
@RobertM (OFTC IRC)
</pre
</font></span></div
<br
_______________________________________________<br
Users
mailing list<br
<a
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
>http://lists.ovirt.org/mailman/listinfo/users</a><br
<br
</blockquote
</div
<br
_______________________________________________<br
Users
mailing list<br
<a
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br
http://lists.ovirt.org/mailman/listinfo/users<br
</blockquote
</div
<br
<div><span class=3D"Apple-style-span"
style=3D"border-collapse: separate; c=
olor: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-varian=
t: normal; font-weight: normal; letter-spacing: normal; line-height: normal=
; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: n=
one; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-hori=
zontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-dec=
orations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stro=
ke-width: 0px; font-size: medium; "
<div><br class=3D"Apple-interchange-newline"
<br
</div
<div>Med V=E4nliga H=E4lsningar<br
---------------------------------------------------------------------------=
----<br
Karli Sj=F6berg<br
Swedish University of Agricultural Sciences<br
Box 7079 (Visiting Address Kron=E5sv=E4gen 8)<br
S-750 07 Uppsala, Sweden<br
Phone:
+46-(0)18-67 15 66</div
<div><a
href=3D"mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></=
div
</span></div
<br
</div
</body
</html
--_000_9DC69612F1C44533AA0BAA907622F34Fsluse_--