Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPICE tunneled connection not working #75

Closed
Future998 opened this issue Feb 28, 2023 · 4 comments
Closed

SPICE tunneled connection not working #75

Future998 opened this issue Feb 28, 2023 · 4 comments

Comments

@Future998
Copy link
Contributor

In the server/src/uds/transports/SPICE/spicetunnel.py file, on line 162, the IP address is explicitly set.

r = RemoteViewerFile(
     '127.0.0.1',
     '{port}',
     secure_port}',
     ['ticket']['value'],  # This is secure ticket from kvm, not UDS ticket
     .get('ca', self.serverCertificate.value.strip()),
     ['cert_subject'],
     =self.fullScreen.isTrue(),
)

There is a problem when connecting through a tunnel.

@dkmstr
Copy link
Collaborator

dkmstr commented Mar 17, 2023

Can you provide please some more info?
I imagine that we are talking about master version, right?

I'll try to test this with master anyway. Right now, was closing 3.6 stable release (master is inestable).

@dkmstr dkmstr closed this as completed Mar 29, 2023
@Future998
Copy link
Contributor Author

Version: 3.5

When considering connecting via the SPICE Tunnel transport with the remote-viewer window open with the message "Connecting to a graphics server" and nothing else happens.

Remote system: virtual machine in OpenNebula.

I am attaching the uds.log logs at the time of the intended connection.

The logs confuse the possible lines:

DEBUG 2023-02-17 14:32:31,337 client receives 210 data:#######
{'as_file': '[virt-viewer]\ntype=spice\nhost=127.0.0.1\nport={port}\npassword=\ntls-port={secure_port}\nfullscreen=0\ntitle=UDS Enterprise:%d - Press SHIFT+F12 to release cursor\nenable-smartcard=0\nenable-usb-autoshare=0\nenable-usbredir=0\ndelete-this-file=1\nusb-filter=-1,-1,-1 , -1,0\ntls-ciphers=DEFAULT\nhost-subject=\nca=\ntoggle-fullscreen=shift+f11\nrelease-cursor=shift+f12\nsecure-attention=ctrl+alt+end\n\n' , 'as_file_ns': '[virt-viewer]\ntype=spice\nhost=127.0.0.1\nport={port}\npassword=\ntls-port={secure_port}\nfullscreen=0\ntitle=UDS Enterprise:%d - Press SHIFT+F12 to release cursor\nenable-smartcard=0\nenable-usb-autoshare=0\nenable-usbredir=0\ndelete-this-file=1\nusb-filter=-1,-1,-1 ,- 1,0\ntls-ciphers=DEFAULT\nhost-subject=\nca=\ntoggle-fullscreen=shift+f11\nrelease-cursor=shift+f12\nsecure-attention=ctrl+alt+end\n\n' , 'Tunhost': '10.88.14.95', 'tunport': '7777', 'tunwait': 30, 'tunchk': false

Note:

  1. Through the SPICE Direct transport, the connection succeeds.
  2. Connection of other protocols (HTML5, RDP, X2GO) through the tunnel is successful.

@dkmstr
Copy link
Collaborator

dkmstr commented Apr 13, 2023

Finally located the problem. From v3.5 onwards will work fine now. Sorry for the inconvenience and thank you very much for your report!

@Future998
Copy link
Contributor Author

Could you provide the hashes of the commits that fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants