Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

20.14. Displaying a URI for Connection to a Graphical Display

Running the virsh domdisplay command will output a URI that can then be used to connect to the graphical display of the guest virtual machine via VNC, SPICE, or RDP. The optional --type can be used to specify the graphical display type. If the argument --include-password is used, the SPICE channel password will be included in the URI.

Example 20.36. How to display the URI for SPICE

The following example displays the URI for SPICE, which is the graphical display that the virtual machine guest1 is using:
# virsh domdisplay --type spice guest1
spice://192.0.2.1:5900
For more information about connection URIs, see the libvirt upstream pages.