RDP Guacamole errors

Hello, today I updated testing installation from 5.10 to 6.2 and I am playing with new functionalities. I try to use Guacamole for VNC - works great. When I try it for RDP I get “CLIENT_ERROR” and in logs are following details

UPDATE:
Looks like this problem is related to encrypted CONTEXT/PASSWORD variable. When I disable encryption and redeployed VM, Guacamole RDP is working

Related issue: VM Encrypted vars and contexualization

Jun  1 15:32:37 one1 guacd[24482]: Creating new client for protocol "rdp"
Jun  1 15:32:37 one1 guacd: guacd[24482]: INFO:#011Creating new client for protocol "rdp"
Jun  1 15:32:37 one1 guacd: guacd[24482]: INFO:#011Connection ID is "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7"
Jun  1 15:32:37 one1 guacd[24482]: Connection ID is "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7"
Jun  1 15:32:37 one1 guacd[28761]: Security mode: Negotiate (ANY)
Jun  1 15:32:37 one1 guacd[28761]: Invalid width: "0". Using default of 1024.
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011Security mode: Negotiate (ANY)
Jun  1 15:32:37 one1 guacd: guacd[28761]: ERROR:#011Invalid width: "0". Using default of 1024.
Jun  1 15:32:37 one1 guacd: guacd[28761]: ERROR:#011Invalid height: "0". Using default of 768.
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011Resize method: none
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011User "@1b88ea59-c16e-43f2-bedc-fd51a786a521" joined connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" (1 users now present)
Jun  1 15:32:37 one1 guacd: guacd[28761]: ERROR:#011Unable to create directory "": No such file or directory
Jun  1 15:32:37 one1 guacd[28761]: Invalid height: "0". Using default of 768.
Jun  1 15:32:37 one1 guacd[28761]: Resize method: none
Jun  1 15:32:37 one1 guacd[28761]: User "@1b88ea59-c16e-43f2-bedc-fd51a786a521" joined connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" (1 users now present)
Jun  1 15:32:37 one1 guacd[28761]: Unable to create directory "": No such file or directory
Jun  1 15:32:37 one1 guacd[28761]: Loading keymap "base"
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011Loading keymap "base"
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011Loading keymap "en-us-qwerty"
Jun  1 15:32:37 one1 guacd[28761]: Loading keymap "en-us-qwerty"
Jun  1 15:32:37 one1 guacd[28761]: Cannot create static channel "rdpdr": failed to load "guac-common-svc" plugin for FreeRDP.
Jun  1 15:32:37 one1 guacd: guacd[28761]: WARNING:#011Cannot create static channel "rdpdr": failed to load "guac-common-svc" plugin for FreeRDP.
Jun  1 15:32:37 one1 guacd: guacd[28761]: WARNING:#011Support for the RDPDR channel (device redirection) could not be loaded. Drive redirection and printing will not work. Sound MAY not work.
Jun  1 15:32:37 one1 guacd: guacd[28761]: WARNING:#011Cannot create static channel "rdpsnd": failed to load "guac-common-svc" plugin for FreeRDP.
Jun  1 15:32:37 one1 guacd: guacd[28761]: WARNING:#011Support for the RDPSND channel (audio output) could not be loaded. Sound will not work. Drive redirection and printing MAY not work.
Jun  1 15:32:37 one1 guacd[28761]: Support for the RDPDR channel (device redirection) could not be loaded. Drive redirection and printing will not work. Sound MAY not work.
Jun  1 15:32:37 one1 guacd[28761]: Cannot create static channel "rdpsnd": failed to load "guac-common-svc" plugin for FreeRDP.
Jun  1 15:32:37 one1 guacd[28761]: Support for the RDPSND channel (audio output) could not be loaded. Sound will not work. Drive redirection and printing MAY not work.
Jun  1 15:32:37 one1 guacd[28761]: Error connecting to RDP server
Jun  1 15:32:37 one1 guacd: guacd[28761]: ERROR:#011Error connecting to RDP server
Jun  1 15:32:37 one1 guacd[28761]: User "@1b88ea59-c16e-43f2-bedc-fd51a786a521" disconnected (0 users remain)
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011User "@1b88ea59-c16e-43f2-bedc-fd51a786a521" disconnected (0 users remain)
Jun  1 15:32:37 one1 guacd: guacd[28761]: INFO:#011Last user of connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" disconnected
Jun  1 15:32:37 one1 guacd[28761]: Last user of connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" disconnected
Jun  1 15:32:37 one1 guacd[24482]: Connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" removed.
Jun  1 15:32:37 one1 guacd: guacd[24482]: INFO:#011Connection "$e1dcc7bb-4e88-4d13-8699-df3363cca4c7" removed.```

Please help.

Hi @feldsam,

This new funcionality of Sunstone and Guacamole that you comment is related to the context variables.

If the VM has a PASSWORD and USERNAME set in the contextualization section, this will be reflected in the RDP connection. You can read more in the documentation.

On the other hand, in OpenNebula 6.2.0, Sunstone didn’t support the encrypted attributes on the VM context. But if you can update to 6.2.1 it should be resolved.

You can see in the documentation the other new features 6.2.1 includes:
https://docs.opennebula.io/6.2/intro_release_notes/release_notes_enterprise/resolved_issues_621.html

Best,
Sergio

Hello, yes, I applied all paches from 6.2.1 and 6.2.2, it shoudlk be related to this issue

there are some changes in VirtualMachineContext.cc file, but it still doesnt work as excepted.

Decryption of CONTEXT/PASSWORD fixed in context.sh generation, but looks like, stil persist in remote console code, because RDP can not be autentificated via guacamole.

In meantime I fix problem, PR: B #5871: Guacamole RDP doesn't work with encrypted CONTEXT/PASSWORD by feldsam · Pull Request #5872 · OpenNebula/one · GitHub

Hi @feldsam,

Thanks for the pull request!

We are working to test that everything works well. As soon as possible, we will merge it.

Bests,
Sergio