CONNECTING TO LIBVIRT: remote connect using virsh

Latest response

From my RHEL Workstation, I want to connect to my RHEL Server using virsh. I know I can ssh into the server, but I would like to cut out the extra connection efforts.

So how do I use; virsh qemu:///system to connect to rhelserver.domain.net?

Responses

It is discussed in the upstream documentation at https://libvirt.org/uri.html, or you can create an SSH connection with the Virt Manager interface and observe the URL it creates. This format works for me:

virsh --connect="qemu+ssh://USERNAME@HOSTNAME/system?known_hosts=/home/USERNAME/.ssh/known_hosts"

Great, thanks!.....