[GH-ISSUE #34] VNC Ticket #11

Closed
opened 2026-03-03 14:44:38 +03:00 by kerem · 3 comments
Owner

Originally created by @alebeta90 on GitHub (May 10, 2022).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/34

Hi Luther,

I had been moving forward using the library :) thanks a lot for it

I have a question regarding the VNC ticket. I can see here

https://github.com/luthermonson/go-proxmox/blob/main/proxmox.go#L196

the function VNCWebSocket receive a vnc argument, which seems to be a struct containing the vnc.Ticket and vnc.User.

Where are the VNC calls in the code? I had been searching but it seems am little bit blind.

I want to use it in order to access noVNC console from a reactjs app.

thanks in advance,

Originally created by @alebeta90 on GitHub (May 10, 2022). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/34 Hi Luther, I had been moving forward using the library :) thanks a lot for it I have a question regarding the VNC ticket. I can see here https://github.com/luthermonson/go-proxmox/blob/main/proxmox.go#L196 the function VNCWebSocket receive a vnc argument, which seems to be a struct containing the vnc.Ticket and vnc.User. Where are the VNC calls in the code? I had been searching but it seems am little bit blind. I want to use it in order to access noVNC console from a reactjs app. thanks in advance,
kerem closed this issue 2026-03-03 14:44:38 +03:00
Author
Owner

@alebeta90 commented on GitHub (May 10, 2022):

Hi Luther,

I had a look at this

https://github.com/luthermonson/go-proxmox/blob/main/virtual_machines.go#L29

TermProxy seems to fetch some info, and some of the values is the ticket

https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/termproxy

so I think I could use it, to set my VNC session. I will test it and update the issue, so it can be documented for the future

regards

<!-- gh-comment-id:1122475508 --> @alebeta90 commented on GitHub (May 10, 2022): Hi Luther, I had a look at this https://github.com/luthermonson/go-proxmox/blob/main/virtual_machines.go#L29 TermProxy seems to fetch some info, and some of the values is the ticket https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/termproxy so I think I could use it, to set my VNC session. I will test it and update the issue, so it can be documented for the future regards
Author
Owner

@luthermonson commented on GitHub (May 11, 2022):

https://luth.io/blog/2022/02/recreating-proxmox-ve-xtermjs-in-go/

this explains the logic to get to where i did on the term proxy code. the test here: https://github.com/luthermonson/go-proxmox/blob/main/virtual_machines_test.go#L87-L114 will help you figure out how to use it.

if youre in js on the browser you can recreate exactly what the proxmox UI does and you can talk directly to proxmox api instead of going through go-proxmox. i am going to use this termproxy rig in tools built in go to provision nodes etc from a terminal UI or a docker-machine driver.

<!-- gh-comment-id:1123928191 --> @luthermonson commented on GitHub (May 11, 2022): https://luth.io/blog/2022/02/recreating-proxmox-ve-xtermjs-in-go/ this explains the logic to get to where i did on the term proxy code. the test here: https://github.com/luthermonson/go-proxmox/blob/main/virtual_machines_test.go#L87-L114 will help you figure out how to use it. if youre in js on the browser you can recreate exactly what the proxmox UI does and you can talk directly to proxmox api instead of going through go-proxmox. i am going to use this termproxy rig in tools built in go to provision nodes etc from a terminal UI or a docker-machine driver.
Author
Owner

@alebeta90 commented on GitHub (May 11, 2022):

I had an amazing time reading that blog post couple of days ago. Thinking that I could use it in the future! it looks like an amazing solution.

I got the VNC console going properly. using the TermProxy function to receive a vnc ticket and then Ticket func to get the session ticket.

Everything within this module provides everything, happy to find it.

<!-- gh-comment-id:1123989984 --> @alebeta90 commented on GitHub (May 11, 2022): I had an amazing time reading that blog post couple of days ago. Thinking that I could use it in the future! it looks like an amazing solution. I got the VNC console going properly. using the TermProxy function to receive a vnc ticket and then Ticket func to get the session ticket. Everything within this module provides everything, happy to find it.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#11
No description provided.