KVM Virtualization: Start VNC Remote Access For Guest Operating Systems

www.lautt‮c.iru‬om
KVM Virtualization: Start VNC Remote Access For Guest Operating Systems

To start VNC remote access for a guest operating system running on KVM, you will need to perform the following steps:

  1. Edit the guest's configuration file to enable VNC access. The configuration file is typically located at /etc/libvirt/qemu/<guest>.xml.

  2. Add the following lines to the <devices> section of the configuration file:

<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'>
  <listen type='address' address='0.0.0.0'/>
</graphics>
  1. Restart the guest using the virsh command:
virsh destroy <guest>
virsh start <guest>
  1. Connect to the VNC server using a VNC client program. The VNC server will be listening on the IP address of the host and the port specified in the configuration file. You can use the virsh command to determine the port number:
virsh vncdisplay <guest>
  1. You should now be able to access the guest operating system's desktop remotely using the VNC client.

Note: The steps above assume that the host operating system is Linux. If you are using a different host operating system, the path to the configuration file and the command to determine the VNC port number may be different.

Created Time:2017-10-29 22:08:50  Author:lautturi