If libvirt is not running virsh can't connect to it and will complain that the socket does not exist.