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

Issue connecting to the VNC server provided by an instance on vSphere #402

Closed
KeithMnemonic opened this issue Aug 2, 2019 · 2 comments
Closed
Labels

Comments

@KeithMnemonic
Copy link

I have an vm running on ESXi. Using RealVNC, I can directly connect to the VNC server provided by ESX to that vm so I know the ESX firewall is correct. If I try the same using websockify with vnc.html. I get one of two errrors.

In the first case , using Chrome developer tools, I can see it connect and it will actually register mouse clicks. The instant you type any character in the vnc screeen though it fails with

Sending keysym (down): 100
keyboard.js:42 onkeyevent up, keysym: 100 , code: KeyD
rfb.js:376 Sending keysym (up): 100
rfb.js:685 Failed while connected: Unsupported encoding (encoding: -260)
_fail @ rfb.js:685
_framebufferUpdate @ rfb.js:1517
_normal_msg @ rfb.js:1422
_handle_message @ rfb.js:725
_recv_message @ websock.js:304
rfb.js:635 New state 'disconnecting', was 'connected'.
rfb.js:427 >> RFB.disconnect
keyboard.js:276 >> Keyboard.allKeysUp
keyboard.js:281 << Keyboard.allKeysUp
websock.js:239 Closing WebSocket connection

Also sometimes it just fails with this error

Starting VNC handshake
websock.js:221 << WebSock.onopen
websock.js:224 >> WebSock.onclose
rfb.js:211 WebSocket on-close event
rfb.js:688 Failed when connecting: Connection closed (code: 1006)
_fail @ rfb.js:688
(anonymous) @ rfb.js:222
(anonymous) @ websock.js:225
rfb.js:635 New state 'disconnecting', was 'connecting'.

Should this work with recent versions of ESXi/vSphere hypervisors?

@KeithMnemonic
Copy link
Author

This is what a packet capture shows for the "encoding" error

Frame 159: 4967 bytes on wire (39736 bits), 4967 bytes captured (39736 bits)
Linux cooked capture
802.1Q Virtual LAN, PRI: 0, DEI: 0, ID: 868
Internet Protocol Version 4, Src: 10.84.79.7, Dst: 10.84.43.131
Transmission Control Protocol, Src Port: 5900, Dst Port: 54066, Seq: 515, Ack: 953, Len: 4895
Virtual Network Computing
Server Message Type: Framebuffer Update (0)
Padding
Number of rectangles: 15
Rectangle #1
X position: 0
Y position: 0
Width: 672
Height: 16
Encoding type: Unknown (-260)
Rectangle #2
X position: 41102
Y position: 34048
Width: 35152
Height: 20039
Encoding type: Unknown (218765834)
Rectangle #3
X position: 0
Y position: 13
Width: 18760
Height: 17490
Encoding type: Unknown (672)
Rectangle #4
X position: 0
Y position: 16
Width: 2051
Height: 0
Encoding type: Unknown (16693053)
Rectangle #5
X position: 43776
Y position: 0
Width: 1616
Height: 19540
Encoding type: Unknown (1157627904)
Rectangle #6
X position: 43690
Y position: 43539
Width: 25471
Height: 60416
Encoding type: Unknown (148297)
Rectangle #7
X position: 17473
Y position: 21608
Width: 33261
Height: 22347
Encoding type: Unknown (-1295831032)
Rectangle #8
X position: 3063
Y position: 49140
Width: 31627
Height: 9222
Encoding type: Unknown (616591074)
Rectangle #9
X position: 32294
Y position: 26321
Width: 18797
Height: 16416
Encoding type: Unknown (1688722870)
Rectangle #10
X position: 26059
Y position: 40550
Width: 8863
Height: 3327
Encoding type: Unknown (563861481)
Rectangle #11
X position: 15175
Y position: 12411
Width: 24210
Height: 188
Encoding type: Unknown (-2037559009)
Rectangle #12
X position: 26904
Y position: 7051
Width: 23405
Height: 15287
Encoding type: Unknown (-1281495013)
Rectangle #13
X position: 60772
Y position: 9161
Width: 63593
Height: 15347
Encoding type: Unknown (80369837)
Rectangle #14
X position: 32198
Y position: 53319
Width: 43705
Height: 1377
Encoding type: Unknown (818896154)
Rectangle #15
X position: 61864
Y position: 65503
Width: 4997
Height: 62104
Encoding type: Unknown (157673645)
Server Message Type: Unknown (241)

@KeithMnemonic
Copy link
Author

this is actually an issue with noVNC and not websockify, novnc/noVNC#1273

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

No branches or pull requests

2 participants