<div dir="ltr">I eventually managed to spin up all the processes (libvirtd, virtlogd, virtlockd) individually and under root, which also helped exposing the read-only socket. I gathered from reading through the libvirt source code that the read-only socket is only activated under privileged mode which has led me down that path.<div><br></div><div>With all this running, I went back to my automation efforts with Vagrant libvirt and realized that it wants to make a call that doesn't seem supported on macOS (yet):</div><div><br></div><div>Call to virDomainCreateWithFlags failed: Unable to create TAP devices on this platform: Function not implemented</div><div><br></div><div>^ which I suppose confirms the mentioned worries of Michal</div><div><br></div><div>So I can say that while running libvirt on macOS isn't super smooth it's possible. :)</div><div>The sharp edges around permissions and launchd plist files is something that can be smoothed out eventually and that is probably something to resolve on the distribution side (e.g. Homebrew) anyway, not necessarily on libvirt's.</div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Radek Simko</div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 2, 2021 at 5:47 PM Radek Simko <<a href="mailto:radek.simko@gmail.com">radek.simko@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Recompiling with these few changes helped and the networking drivers _seems_ to be working on macOS.<div>At least I got past the error I was getting initially.</div><div><br></div><div>I'm just now dealing with a slightly different set of problems related to libvirt sockets on macOS.</div><div>The Homebrew formula ships a launchd plist which doesn't seem to do socket activation, unlike systemd.</div><div>I worked around that by setting the socket dir path manually in the config:</div><div><br></div><div>unix_sock_dir = "/usr/local/var/run/libvirt"</div><div><br></div><div>which did make libvirtd create "libvirt-sock" in that directory as expected, but per docs there should also be a secondary read-only socket "libvirt-sock-ro" <a href="https://libvirt.org/daemons.html#monolithic-sockets" target="_blank">https://libvirt.org/daemons.html#monolithic-sockets</a> and it's not there for some reason. Is there any additional configuration needed to activate that secondary socket?</div><div><br></div><div>Feel free to tell me if this is getting too off-topic btw. - The big picture is that I'm trying to get libvirt working on darwin and automate RPi virtualization via Vagrant (vagrant-libvirt) and taking it step by step.</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Radek Simko</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 1, 2021 at 2:54 PM Andrea Bolognani <<a href="mailto:abologna@redhat.com" target="_blank">abologna@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2021-03-31 at 21:39 +0100, Radek Simko wrote:<br>
> I was attempting to virtualize Raspberry Pi on qemu via libvirt,<br>
> where my host machine is macOS (both qemu and libvirt installed via<br>
> Homebrew) and I while trying to set up the network I stumbled upon<br>
> this:<br>
> <br>
> $ virsh -c qemu:///system?socket=/usr/local/var/run/libvirt/libvirt-sock net-list --all<br>
<br>
Aside: if you have libvirt >= 6.9.0, which at this point is very<br>
likely, you shouldn't need to include the 'socket' parameter in the<br>
connection URI; in fact, for local connections, it should have worked<br>
without the parameter even before that.<br>
<br>
-- <br>
Andrea Bolognani / Red Hat / Virtualization<br>
<br>
</blockquote></div>
</blockquote></div>