KasmVNC in coder not working with my personalized template

Hi, First, good job on coder, it is a very nice tool. About the error. I have coder installed in a Kubernetes cluster k3s with traefik. Using this template https://github.com/sharkymark/v2-templates/tree/main/src/pod-idea-vnc I access correctly the VNC client trough the browser. Now I want to use my own template with Kasmvnc or noVNC installed (prefer KasmVNC). Both templates are working in docker client with port forward, however they do not work on coder. I have this message that I attached. To be honest I am not a specialist, so I do not know If there is more logs to have a look into to debbug my issue Do you have any idea of things that I can try? Thanks
GitHub
v2-templates/src/pod-idea-vnc at main · sharkymark/v2-templates
Coder CDE Terraform templates and tips. Contribute to sharkymark/v2-templates development by creating an account on GitHub.
No description
13 Replies
Codercord
Codercord2mo ago
<#1290646810234454046>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
深雪
深雪2mo ago
can u inspect the page (right click - inspect) and look at console? May need to reload the page to see whats wrong @bruno-laranjo
bruno-laranjo
bruno-laranjoOP2mo ago
Thank for the quick reply. I did it and this inpect and refresh and this is what i have
No description
bruno-laranjo
bruno-laranjoOP2mo ago
and the console
No description
Phorcys
Phorcys2mo ago
@bruno-laranjo how are you installing KasmVNC?
bruno-laranjo
bruno-laranjoOP2mo ago
With your help @深雪 I get what is going on. @Phorcys I have kasmVNC installed from the RPM installer available on their website. The issue is the correct way to run KasmVNC with the "default" way of installing it is, on the template file, for the "coder_app" use the subdomain=true. I cannot set subdomain=true because of my networks requirements. I just need a way to config KasmVNC with subdomain=false
bruno-laranjo
bruno-laranjoOP2mo ago
With the info I have I managed to put working noVNC with coder For the container I built it based on this example https://github.com/coder/enterprise-images/blob/main/deprecated/vnc/Dockerfile.ubuntu Now I need to understand how to get KasmVNC container working.
GitHub
enterprise-images/deprecated/vnc/Dockerfile.ubuntu at main · coder/...
Example Docker images for use with Coder. Contribute to coder/enterprise-images development by creating an account on GitHub.
Phorcys
Phorcys2mo ago
@bruno-laranjo we have a KasmVNC module in the works that should be released very soon I would advise you to wait and use our module when it comes out
bruno-laranjo
bruno-laranjoOP2mo ago
Ok I will wait it them. Thank you for the support.
Atif
Atif2mo ago
If you are eager to try, you can test it by adding
module "kasmvnc" {
source = "git::https://github.com/coder/modules.git//kasmvnc?ref=kasmVNC"
agent_id = coder_agent.dev.id
desktop_environment = "REPLACE with your desktop environment name" # i.e. lxde, xfce, gnome, kde, lxqt
}
module "kasmvnc" {
source = "git::https://github.com/coder/modules.git//kasmvnc?ref=kasmVNC"
agent_id = coder_agent.dev.id
desktop_environment = "REPLACE with your desktop environment name" # i.e. lxde, xfce, gnome, kde, lxqt
}
Replace dev with your coder_agent resource name. Please share any feedback you have and if it works for you. Currently we require the workspace to have a desktop emnvironment already installed.
bruno-laranjo
bruno-laranjoOP2mo ago
Thanks, I will try and give feedback Hi @Atif , so I tested the module and do not work on my case. My network configuration does not allow me to have the subdomain = true option But I am happy with noVNC for now. Thank you all for your help. This tread can be closed.
Atif
Atif2mo ago
There would be probably a way to run this without a subdomain but I haven't explored that out. Happy that hear that you were able to use noVNC.
Codercord
Codercord2mo ago
@Atif closed the thread.
Want results from more Discord servers?
Add your server