Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
14.6.7. Displaying the IP Address and Port Number for the VNC Display
The
virsh vncdisplay
will print the IP address and port number of the VNC display for the specified domain. If the information is unavailable the exit code 1 will be displayed.
# virsh vncdisplay rhel6 127.0.0.1:0