Skip to content
Connect to a virt-manager machine from a client

Connect to a virt-manager machine from a client

Connect to a virt-manager machine from a client

To connect to a virt-manager machine from an intranet client using the built-in SPICE console, you need to configure the VM host to listen for network connections and then use a SPICE client (virt-viewer) on the client machine to connect directly to the VM’s IP address and SPICE port.

On the KVM Host Machine

Ensure SPICE is configured for the VM:

  • Open virt-manager and double-click the desired VM.
  • Go to View > Details to see the hardware list.
  • If a “Display Spice” entry does not exist, click Add Hardware, select Graphics, and set the type to Spice server.
  • Ensure a “Video QXL” device is also present (add one if necessary via Add Hardware > Video > QXL model) for optimal performance.
  • Configure the SPICE server to listen on the network: In the “Display Spice” settings, check the “Listen on all public network interfaces” (or similar “Specify host address” to your host’s LAN IP) checkbox. Take note of the Port number assigned to the SPICE display (e.g., 5900, 5901). This port is internal to the host and is what the client will use.
  • Configure Networking and Firewall: Ensure your VM’s network is set up in a way that is reachable from the intranet (e.g., using a bridge device instead of a strictly NAT-based virtual network, which might require additional firewall configuration). Open the necessary SPICE port(s) in the host machine’s firewall (e.g., TCP 5900, 5901, etc.) to allow incoming connections from the intranet. The exact port can be found in the VM’s display details in virt-manager or by running virsh domdisplay on the host’s command line.
  • Restart the VM: Stop and restart the virtual machine for the changes to take effect.

On the Intranet Client Machine

Install a SPICE client:

Download and install virt-viewer (also known as Remote Viewer) for your operating system (Windows, Linux, macOS) from the SPICE website or your OS package manager.

Connect to the VM:

  • Launch the virt-viewer application.
  • In the connection address field, enter the SPICE server address in the format: spice://: (e.g., spice://192.168.1.100:5901).
  • Click Connect.
  • Authenticate (if prompted): If a password was configured in the VM’s SPICE settings on the host, you will be prompted to enter it now.

You should now be connected to the VM’s console directly via the SPICE protocol.

Connect to multiple servers simultaneously with virt-viewer! This is actually a common workflow for managing multiple virtual machines.

Here are the main approaches:

Multiple Instances You can launch multiple instances of virt-viewer, each connecting to a different VM. Simply open separate terminal windows or application instances and run:

virt-viewer vm-name-1 virt-viewer vm-name-2

Multiple Windows in One Instance Some versions of virt-viewer support opening multiple connection windows within a single application instance. When you connect to a second VM, it should open in a new window rather than replacing the first connection.

Connection Configuration For easier management, you can create connection files in ~/.config/virt-viewer/ with predefined settings for each server. This makes launching multiple connections more streamlined.

Potential Limitations

  • Resource usage: Each connection consumes system resources, so very large numbers of simultaneous connections may impact performance
  • Display management: Multiple VM windows can become unwieldy to manage on smaller screens
  • Network bandwidth: SPICE/VNC traffic from multiple VMs can consume significant bandwidth

Alternative Approaches:

Remmina with the SPICE plugin is an excellent choice for connecting to multiple virtual machines simultaneously! It’s actually a popular alternative to virt-viewer for exactly this use case.

  • Key Advantages:
    • Tabbed Interface: Remmina supports multiple connections in tabs within a single window, making it much easier to manage several VMs at once
    • Protocol Support: Beyond SPICE, it also handles RDP, VNC, and other protocols if you need flexibility
    • Session Management: You can save connection profiles for quick access to frequently-used VMs
    • Feature Set: Includes clipboard sharing, file transfer, resolution scaling, and more

Setup Notes:

You’ll need to ensure the SPICE plugin is installed on your system. On Debian/Ubuntu-based systems, this typically means installing remmina-plugin-spice in addition to the base Remmina package.

Things to Consider:

Performance: Like virt-viewer, SPICE performance depends on your network and host resources Configuration: Initial setup of connection profiles takes a bit more effort than virt-viewer’s simpler approach Platform: Remmina is primarily Linux-focused; if you need cross-platform access, you might want to evaluate other options

Comparison Summary:

If you wish, you can add a leading and tailing pipe to each line of the table:

First HeaderSecond HeaderThird Header
Content CellContent CellContent Cell
Content CellContent CellContent Cell
Featurevirt-viewerRemmina
Multiple VMsSeparate windowsTabbed interface
Setup complexitySimplerMore configuration
Protocol flexibilitySPICE/VNC focusedMulti-protocol
Session savingLimitedRobust profile system

Please see the Remmina with the Spice plugin for further details.


//lgn 2026-03-12