2010/4/28 Tim McLeod <tim.mcleod@xxxxxxxxxxxx>: > Having newly compiled a Libvirt on a Windows Vista machine (many thanks to > Matthias Bolte) Nine :) > I have attempted to connect to a remote Ubuntu machine using > virsh.exe. However, the connection fails as follows: > > > > $ virsh -c qemu+tcp:///system You need to specify the server in this URI using a hostname or IP address: qemu+tcp://ubuntu-server.com/system > error: unable to connect to libvirtd at 'localhost': errno=10061 > > error: failed to connect to the hypervisor > > > > 1. I have modified /etc/libvirt/libvirt.conf to set listen_tcp=1. You also need to change this #auth_tcp = "sasl" to auth_tcp = "none" to disable SASL authentication/encryption for TCP connections, because your libvirt on Windows is compiled without SASL support. If you need the libvirt connections to be encrypted you can switch from TCP to TLS connections using: qemu+tls://ubuntu-server.com/system > 2. I cannot find /etc/sysconfig/libvirtd so I am unable to set > LIBVIRTD_ARGS="--listen". > For Ubuntu packaged libvirt see /etc/default/libvirt-bin and change libvirtd_opts="-d" to libvirtd_opts="-d -l" as the comment suggest and restart libvirtd using /etc/init.d/libvirt-bin restart Now you should be able to connect to the libvirtd on your Ubuntu server. Matthias