Discussion:
[PVE-User] Win7 spice client does not release cursor/mouse
Frank, Petric (Petric)
2014-02-04 14:14:31 UTC
Permalink
Hello,

installed the spice client (win7 x64) on the client.

Then I mapped the application/x-virt-viewer to the remote client executable.

The client window opens correctly with the VM contents (booting von CD). But I can lot release the mouse. The Help line (on top) tells
(Press to release)

As you see no key is given. So i cannot leave the window.

Installed:
Proxmox 3.1 (dist-upgrade from today)
Spice-Proxy: virt-viewer-x64-0.6.0.msi (as linked from proxmox wiki page)

It seems that spiceproxy does not define the release-cursor key and the default <Ctrl>-<Alt> is not working under Windows.

Any hints ?

Kind regards
Petric
Lindsay Mathieson
2014-02-04 14:22:36 UTC
Permalink
Post by Frank, Petric (Petric)
Proxmox 3.1 (dist-upgrade from today)
Spice-Proxy: virt-viewer-x64-0.6.0.msi (as linked from proxmox wiki page)
It seems that spiceproxy does not define the release-cursor key and the
default <Ctrl>-<Alt> is not working under Windows.
QemuServer.pm needs to be patched to set it for 0.60, I'll dig it up for you
tommorrow.

Alternatively, I think Spice Client 0.5.7 defaults to Ctl-Alt.
--
Lindsay
Lindsay Mathieson
2014-02-04 14:29:30 UTC
Permalink
Post by Frank, Petric (Petric)
Proxmox 3.1 (dist-upgrade from today)
Spice-Proxy: virt-viewer-x64-0.6.0.msi (as linked from proxmox wiki page)
It seems that spiceproxy does not define the release-cursor key and the
default <Ctrl>-<Alt> is not working under Windows.
Any hints ?
Forgot I actually detailed it in another email.

This is *not* supported by proxmox the company. *Backup* Qemu.pm first.

On the proxmox server edit "/usr/share/perl5/PVE/API2/Qemu.pm", changes below are in bold.

1399 # LWM
* 1400 my $conf = PVE::QemuServer::load_config($vmid, $node);*
1401
1402 return {
* 1403 'secure-attention' => "Ctrl+Alt+Ins",*
* 1404 'toggle-fullscreen' => "Shift+F11",*
* 1405 'release-cursor' => "Ctrl+Alt+R",*
* 1406 title => "VM $vmid - $conf->{'name'}",*
* 1407 type => 'spice',*
* 1408 #title => "VM $vmid",*
1409 host => $proxyticket, # this break tls hostname
verification, so we need to use 'host-subject'
1410 proxy => "http://$proxy:3128",
1411 'tls-port' => $port,
1412 'host-subject' => $subject,
1413 ca => $cacert,
1414 password => $ticket,
1415 'delete-this-file' => 1,
1416 };
1417 }});


then issue the command:

service pvedaemon restart

to activate the changes.
--
Lindsay
Frank, Petric (Petric)
2014-02-04 14:46:46 UTC
Permalink
Hello Lindsay,
Post by Lindsay Mathieson
Post by Frank, Petric (Petric)
Proxmox 3.1 (dist-upgrade from today)
Spice-Proxy: virt-viewer-x64-0.6.0.msi (as linked from proxmox wiki page)
It seems that spiceproxy does not define the release-cursor key and the
default <Ctrl>-<Alt> is not working under Windows.
Any hints ?
Forgot I actually detailed it in another email.
This is *not* supported by proxmox the company. *Backup* Qemu.pm first.
On the proxmox server edit "/usr/share/perl5/PVE/API2/Qemu.pm", changes below are in bold.
1399 # LWM
1400 my $conf = PVE::QemuServer::load_config($vmid, $node);
1401
1402 return {
1403 'secure-attention' => "Ctrl+Alt+Ins",
1404 'toggle-fullscreen' => "Shift+F11",
1405 'release-cursor' => "Ctrl+Alt+R",
1406 title => "VM $vmid - $conf->{'name'}",
1407 type => 'spice',
1408 #title => "VM $vmid",
1409 host => $proxyticket, # this break tls hostname
verification, so we need to use 'host-subject'
1410 proxy => "http://$proxy:3128",
1411 'tls-port' => $port,
1412 'host-subject' => $subject,
1413 ca => $cacert,
1414 password => $ticket,
1415 'delete-this-file' => 1,
1416 };
1417 }});
service pvedaemon restart
to activate the changes.
added the lines 1403 to 1405 and restarted pvedaemon.

Works now.

Thanks for your fast support. Maybe it con be made configurable in the next proxmox release.

Kind regards
Petric
Lindsay Mathieson
2014-02-04 21:12:15 UTC
Permalink
Post by Frank, Petric (Petric)
added the lines 1403 to 1405 and restarted pvedaemon.
Works now.
Excellent.
Post by Frank, Petric (Petric)
Thanks for your fast support. Maybe it con be made configurable in the next
proxmox release.
I don't think it will be configurable, but the same setting will be included.
Shame the spice-client devs didn't included them as client side settings.
--
Lindsay
Martin Maurer
2014-02-04 14:30:07 UTC
Permalink
Post by Frank, Petric (Petric)
installed the spice client (win7 x64) on the client.
Then I mapped the application/x-virt-viewer to the remote client executable.
The client window opens correctly with the VM contents (booting von CD).
But I can lot release the mouse. The Help line (on top) tells
(Press to release)
As you see no key is given. So i cannot leave the window.
Proxmox 3.1 (dist-upgrade from today)
Spice-Proxy: virt-viewer-x64-0.6.0.msi (as linked from proxmox wiki page)
It seems that spiceproxy does not define the release-cursor key and the
default <Ctrl>-<Alt> is not working under Windows.
Any hints ?
[Martin Maurer]
This is fixed in the latest version from pvetest.

You can "exit" with a key combination and you can also send CTRL-ALT-DEL by pressing CTRL-ALT-INS. Very cool and step forward.

Martin
Loading...