<html><body><p><font size="2">Hi,</font><br><br><font size="2">I am using python libvirt api to get domain information. When using a uri without specifying the socket path,  an error occurs. </font><br><br><font size="2">uri = "qemu+ssh://myuser@some.kvm.host/system"</font><br><font size="2">conn = libvirt.open(uri)</font><br><br><font size="2">This results in the following:</font><br><br><font size="2">libvirt: XML-RPC error : internal error: received hangup event on socket</font><br><br><font size="2">If I append the socket path to the URI, it works. e.g. </font><br><br><font size="2">qemu+ssh://myuser@some.kvm.host/system?socket=/var/run/libvirt/libvirt-sock </font><br><br><font size="2">Is this the recommended way to construct an ssh uri? My concern is that the socket path may be different when connecting to different libvirt hosts.</font><br><br><font size="2">remote host is ubuntu 20.04 running libvirtd (libvirt) 6.0.0 under systemd</font><br><br><font size="2">- Joe</font><BR>
</body></html>