To enable VNC access to a virtual machine, you need to do the following:
- Enable VNC support in the virtual machine.
-
Specify the TCP port number on the physical server that will be used to listen to VNC connections for the virtual machine.
Note
Note: A unique port number must be specified for each virtual machine where you plan to connect via VNC.
- Set a password to secure your VNC connection.
You can perform all these operations with a single command. For example:
# prlctl set MyVM --vnc-mode manual --vnc-port 5901 --vnc-passwd XXXXXXXX
The changes will come into effect on the next virtual machine start.