Show Table of Contents
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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.