[libvirt-users] can't establish more than 1000 connections with virsh

Daniel P. Berrange berrange at redhat.com
Thu May 25 10:37:04 UTC 2017


On Thu, May 25, 2017 at 06:20:51PM +0800, dw wrote:
> Hi:
> 
>     I'm trying to connect with libvirtd with virsh from a remote PC,but only
> can establish 1000 connections.
> 
>     If try more connections,prompt:
> 
>     "error: failed to connect to the hypervisor
>     error: Failed to open file '/etc/libvirt/libvirt.conf': Too many open
> files"
> 
>     I tried in another PC,also get the same prompt.
> 
>     Anybody know why?

There's a limit of 1024 open file handles by default on Linux. You would
have to raise that limit in /etc/security/limits.d/ for your user.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvirt-users mailing list