How to use the command qm vncproxy (with examples)
The qm vncproxy
command is used to proxy Virtual Machine VNC (Virtual Network Computing) traffic to stdin
or stdout
. This command is commonly used in Proxmox Virtual Environment (PVE) to control and monitor virtual machines remotely.
Use case 1: Proxy a specific virtual machine
Code:
qm vncproxy vm_id
Motivation: The motivation for using this example is to establish a VNC proxy connection to a specific virtual machine. This allows remote access to the virtual machine’s graphical interface for tasks such as troubleshooting, configuration, or software installation.
Explanation:
The vm_id
argument represents the ID of the virtual machine to which you want to establish a VNC proxy connection. Each virtual machine in Proxmox VE has a unique ID associated with it, which can be found in the Proxmox GUI or by running the qm list
command.
Example output:
Connection established. VNC traffic is now being proxied.
In this example, the qm vncproxy
command establishes a VNC proxy connection to the virtual machine specified by vm_id
. Once the connection is established, the output confirms that the connection is successfully established and VNC traffic is being proxied.
Conclusion:
The qm vncproxy
command is a powerful tool for remote access and management of virtual machines in Proxmox VE. By using the command with the appropriate arguments, you can easily establish VNC proxy connections to specific virtual machines, enabling you to control and monitor their graphical interfaces remotely.