Connettersi in VNC a delle VM Proxmox

From RVM Wiki
Jump to navigation Jump to search

Installing openbsd-inetd package

To install the openbsd-inetd package, you simply type (from the console or using the web “console”) the following command

   aptitude install openbsd-inetd

When prompted, Press Yes to confirm the installation of this package

At this stage, the service is not started because not configured yet. We will need to modify the inetd configuration file. For each virtual machine that you want to connect to using the external vnc viewer, you will need to add a entry in the /etc/inetd.conf file using the following structure

<%port> stream tcp nowait root /usr/sbin/qm qm vncproxy <%vmid%>

   where <%port%> is the port number where the service will listen for incoming requests
   where <%vmid%>  is the id of the virtual machine you want to connect to

In my example, I will need to connect to the Virtual machine with ID 104 and I will assign the VNC port (where to listen to) to 59004. You can edit the file and add the following line at the bottom of the configuration file

   59004 stream tcp nowait root /usr/sbin/qm qm vncproxy 104

Finally, you will need to restart the openbsd-inetd daemon to have the changes applied. You perform this action by issuing the following command

   /etc/init.d/openbsd-inetd restart