mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 01:15:57 +03:00
[GH-ISSUE #221] LXC Container Terminal Websocket Fails #63
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#63
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 @z46-dev on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/221
After following https://deepwiki.com/luthermonson/go-proxmox/6.1-container-lifecycle-operations#terminal-access, I wrote the
RawExecutefunction at the bottom of this issue's description. Upon running the test that would test this function, I get the following:failed to create terminal websocket: unexpected EOF. Checking Proxmox, I can see:I should note that the test creates, starts, stops, and destroys an Ubuntu 25 container around this with no issues. The token I'm using has Administrator permissions, and is on the root user (yes, dangerous, I know, but it's what I'm doing for testing at this point in time).
The process of the test is:
deferin Go)Step 4 always fails, and then the container is cleaned up and destroyed. I need terminal access to LXC containers for my project so that on containers without SSH pre-installed and running I can install/enable it to then run other commands. Or it would be splendid to just raw-execute as root over a terminal instead of using ssh, which could seriously improve my app.
It is possible I am doing this wrong, and if I am, please do tell.
Note that
apiis initialized with