[libvirt] Cannot write data: Broken pipe when accesing libvirt from a forked process
jstribny at redhat.com
Wed Sep 30 11:06:48 UTC 2015
I am trying to add vagrant-libvirt support for landrush plugin and
found out that libvirt fails for me with:
Call to virConnectNumOfNetworks failed: Cannot write data: Broken pipe
I created a minimal reproducer that causes this:
conn = Libvirt::open("qemu:///system")
This works just fine on my host, but fails on my virtualized guest
(when using nested KVM). The journal shows
the following lines in logs:
Failed to acquire pid file '/run/user/1001/libvirt/libvirtd.pid':
Resource temporarily unavailable
So the forked process here tries to access not-existing libvirtd pid
file for root (1001 on the VM).
Is this a feature/bug? How can one avoid it?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libvir-list