[GH-ISSUE #25] Virtual Machine VNC Web Socket #8

Closed
opened 2026-03-03 14:44:36 +03:00 by kerem · 0 comments
Owner

Originally created by @luthermonson on GitHub (Feb 7, 2022).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/25

After getting the termproxy and vncwebsocket end points working I've run into something with virtual machines which I will document here for others to see. The basics are you need a serial terminal for the websocket to work properly. You will need to add a serial0: socket config to the VM like this

	task, err = vm.Config(
		VirtualMachineOption{Name: "serial0", Value: "socket"},
	)

if you do not have the interface setup your proxy will return unable to find a serial interface. When you have the socket seriali interface configured you will see the following starting serial terminal on interface serial0.

Just adding the interface is not everything, you will need to follow the guide to configure the guest Virtual Machine actually use it, ideally this can be documented on how to setup cloud-init or ignition to bootstrap the serial0 socket device properly and move to a wiki how-to guide.

Originally created by @luthermonson on GitHub (Feb 7, 2022). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/25 After getting the termproxy and vncwebsocket end points working I've run into something with virtual machines which I will document here for others to see. The basics are you need a [serial terminal](https://pve.proxmox.com/wiki/Serial_Terminal) for the websocket to work properly. You will need to add a `serial0: socket` config to the VM like this ``` task, err = vm.Config( VirtualMachineOption{Name: "serial0", Value: "socket"}, ) ``` if you do not have the interface setup your proxy will return `unable to find a serial interface`. When you have the socket seriali interface configured you will see the following `starting serial terminal on interface serial0`. Just adding the interface is not everything, you will need to follow the guide to configure the guest Virtual Machine actually use it, ideally this can be documented on how to setup cloud-init or ignition to bootstrap the serial0 socket device properly and move to a wiki how-to guide.
kerem closed this issue 2026-03-03 14:44:36 +03:00
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#8
No description provided.