How do I connect to a VM with a native SPICE client?

I’m running TrueNAS Community Edition 25.04.

I’ve created a Linux VM, and if I click “Display” in the TrueNAS “Virtual Machines” UI I can interact with the XFCE desktop using the web SPICE client. However, the web client is a little unreliable: if I leave it idle for 20 to 30 seconds it stops responding to input until I reload the tab and re-enter the password.

I’m hoping a native SPICE client will be better. I’ve downloaded and installed virt-viewer for Windows, which seems to be the Windows client suggested by the SPICE website linked in the docs.

When I start virt-viewer, it asks for a connection address. How do I find the connection address for my VM? I cannot find anything in the UI or docs which tells me this.

Nevermind, I figured it out: if I list the “Devices” on the VM in the UI, the details of the “Display” device show the SPICE IP address and port to use. As well as the configured password in plain text!

Did you install virt-viewer or virt-manager?

virt-viewer.
Although once installed, the shortcuts have the very generic name of “Remote viewer”.