Xen orchestra VM Console broken?
-
@ronivay that's a great information. I can reproduce the comportment with xenserver 7.1 CU 2
Thank you -
@ronivay @bberndt Could you try this branch
fix_console_proxy_xcp_7x
containing a quick fix (fallback for older hosts to the old method)?from this PR: https://github.com/vatesfr/xen-orchestra/pull/6191
-
Thanks. This seems to fix it for me at least. XO logs
UNEXPECTED RESPONSE
andFALLBACK
for those HVM VM's and console opens up fine. -
@ronivay yeah
I'm making a little code cleanup before merging in master (removing console , adding changelog)
We'll probably make another patch release with this fix.I'm glad you saw it and give us such a precise feedback.
-
@olivierlambert said in Xen orchestra VM Console broken?:
@ronivay Do you mean it works for PV guests but not HVM ones?
edit: that might be the reason why we can't reproduce since we probably test on PV guest
When I tested yesterday, this was on HVM guests.
-
You need both HVM guest AND XS < 7.2
-
@olivierlambert Yes, that was the case of one of the tests as far as I can tell.
-
I don't know if this helps:
most of my VMs are Windows. There are a few Linux, Centos 7+, Rocky, and Ubuntu 18.
the production XO I use, is behind an Apache reverse proxy, using https. The temporary one, is just XO, using http on 8080. Looks like all of these are PVHVM, (so, HVM?) it claims. Both of these XO's are VMs on the same host, and the other hosts are on the same subnet, but some are on a different VLAN. There are also a number that are in a co-location facility, connected via a point to point fiber link, on a different VLAN, but all behind our edge router.
Console working: XCP 8.1, XS 7.1
Console not working: XCP 7.6 - I can't say for sure that these have any updates applied, though. -
@stormi at least it failed on 7.1CU2 installed this morning.
I implemented a fallback not checking the version, but catching the specific error message and going back to the old method -
@bberndt are you able to test the fix ?
-
-
@florent I see that the issue is still open, but looks like PR https://github.com/vatesfr/xen-orchestra/pull/6191 was merged so i assume it's not WIP anymore? Just wanted to let you know that some of the changes in that PR before merge made the initial fix non functional. Tested with installation from latest master branch commit.
Errors in browser have changed slightly:
Failed when connecting: Failed to connect to server ( (code: 1005)) util.js:44:54 Error util.js:44 _fail rfb.js:578 f rfb.js:233 onclose websock.js:305
and
Tried changing state of a disconnected RFB object util.js:44:54 Error util.js:44 _updateConnectionState rfb.js:473 disconnect rfb.js:284 _clean react-novnc.js:66 componentWillUnmount react-novnc.js:115 React 139
XO doesn't log anything related to fallback method, just a normal
console proxy
INFO message. Host still gives the sameFailure "ws_proxy: not implemented"
error and seems that the fallback to TCP doesn't happen and console doesn't open. Still works for PV guests as it did before. -
@ronivay hi , something should not have worked as intended, I'm working on it. Your server is a 7.6 ?
-
yeah itβs 7.6 i see this with
-
@ronivay hi, can you test this branch
fix_console_bis
before we merge it?thank you for your report
-
@florent thanks, yeah this seems to fix it again.
-
Updated to Master build, a66ae, xo-server 5.92.0, xo-web 5.96.0.
Consoles seem to work fine again.
thanks all!