mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 15:16:01 +03:00
[GH-ISSUE #102] Getting VNCProxy information out of proxmoxer #51
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WillNilges on GitHub (Jul 2, 2022).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/102
Originally assigned to: @jhollowe on GitHub.
Hello!
I'm wondering if it's possible to hit the
vncproxyPOST endpoint and thevncwebsocketGET endpoint via proxmoxer?https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/vncproxy
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/vncwebsocket
If so, can someone give me an example for how you'd do this?
@WillNilges commented on GitHub (Jul 2, 2022):
This worked for the first call...
@WillNilges commented on GitHub (Jul 2, 2022):
Getting this error while running this command:
Clearly missing a property---how can I add that? I have both of them, I just don't know how to insert them into the command.
@WillNilges commented on GitHub (Jul 2, 2022):
Theoretically, this works
If this all works out, I'm opening a documentation PR.
@jhollowe commented on GitHub (Jul 3, 2022):
It seems that you first need to call
nodes/{node}/qemu/{vmid}/vncproxyto get the port and ticket information to use withnodes/{node}/qemu/{vmid}/vncwebsocketHowever, I have no idea how proxmoxer (and ultimately requests) will handle the VNC websocket. I really don't see this being useful for programmatic use, but if to wanted to do that, I don't think you would use proxmoxer to handle the VNC traffic. You can use the
vncproxyendpoint to setup a connection and use other software to manage the VNC connection.@WillNilges commented on GitHub (Jul 3, 2022):
Thanks for the info!
I spent yesterday poking around the proxmox forums, and yes, it appears that that secondary endpoint should be used as a websocket (
wss://) connection. It seems like Proxmox has some patches for noVNC that enable it to handle this. I've been trying to get that set up as a standalone thing, but am struggling. I don't suppose you have any recommendations for VNC clients that can handle websockets?@jhollowe commented on GitHub (Jul 4, 2022):
Well, I think you can use noVNC which Proxmox uses, but I'm not sure if that will work for your needs.
I'm going to close as it seems proxmoxer is working as intended. If you get something working, feel free to open a PR against the documentation repo.