- shutdown guest
virsh shutdown guest
- edit guest xml file
virsh edit guest
- add following to xml file in
<device> </device>
section
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'/>
- guest port will be auto-allocated. First guest will be given port 5900, second 5901.
- to encrypt the connection
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' passwd='protectme'/>
- start the guest
virsh start guest
- now open a vnc client and enter KVM host IP address with port number