Request #5231

[spice] add native remote-viewer (virt-viewer) support

Added by kvaps kvaps almost 4 years ago. Updated almost 4 years ago.

Status:PendingStart date:07/12/2017
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Pull request:

Description

Remote-viewer this is part of virt-viewer. It is native software for connecting via spice protocol.
And it is really beautiful: It is support multiple monitors, securing, usb passtrough and have very good speed. It can be used for VNC too.

It is already done by oVirt and Proxmox,
Both uses spiceproxy for proxyng spice connections outside of network (it is simpe configured squid)
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Installation_Guide/chap-Proxies.html

I want to have the support in the OpenNebula too.
The main think is the next:

- Create vm with spice support
- Go to the sunstone, and click "connect to the vm"
- The folowing file will be downloaded:

console.vv (example)

[virt-viewer]
type=spice
host=10.34.63.223
port=5905
proxy=http://10.36.20.1:3128
password=Ak9XhlMF/A3W
tls-port=5906
fullscreen=1
title=wxp-apt-53011:%d - Press SHIFT+F12 to Release Cursor
enable-smartcard=0
enable-usb-autoshare=1
delete-this-file=1
usb-filter=-1,60186,10000,256,1|-1,1118,245,-1,1|-1,1133,2245,-1,1|-1,1133,2242,5,1|8,-1,-1,-1,1|7,-1,-1,-1,1|-1,-1,-1,-1,0
tls-ciphers=DEFAULT
host-subject=O=rhev.lab.eng.brq.redhat.com,CN=10.34.63.223
ca=-----BEGIN CERTIFICATE-----\nMIIEMDCCAxigAwIBAgICEAAwDQYJKoZIhvcNAQEFBQAwajELMAkGA1UEBhMCVVMxJDAiBgNVBAoT\nG3JoZXYubGFiLmVuZy5icnEucmVkaGF0LmNvbTE1MDMGA1UEAxMsamItcmhldm0zNC5yaGV2Lmxh\nYi5lbmcuYnJxLnJlZGhhdC5jb20uNDgyNDUwIhcRMTQwMzAzMTYwMzQyKzAwMDAXDTI0MDMwMTE2\nMDM0MlowajELMAkGA1UEBhMCVVMxJDAiBgNVBAoTG3JoZXYubGFiLmVuZy5icnEucmVkaGF0LmNv\nbTE1MDMGA1UEAxMs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nFf4dE0/q5BCbeK1uKLKOoqxcaO9Y0PA9FL1TPyhHNVk2zaFCosrvclmZI6SVvA0QpvA=\n-----END CERTIFICATE-----\n
toggle-fullscreen=shift+f11
release-cursor=shift+f12
secure-attention=ctrl+alt+end
secure-channels=main;inputs;cursor;playback;record;display;usbredir;smartcard

- After you openned this file via remote-viewer it will be connected to the vm

More about syntax here:
https://github.com/SPICE/virt-viewer/blob/master/man/remote-viewer.pod

History

#1 Updated by kvaps kvaps almost 4 years ago

For now I deveoped this script for todo this:
https://github.com/kvaps/one-connect

#2 Updated by EOLE Team almost 4 years ago

+1

Hello,

It could be cool to have a onevm console tool with configurable utilities to use (ssvncviewer, spicy, …) that can pass by the websocketproxy since the hypervisors are not always reachable by clients (like in our setup).

Regards.

Also available in: Atom PDF