On Fri, Dec 05, 2025 at 15:54:40 +0100, Erik Huelsmann wrote:
Hi,
And lastly, how do I tell virt-manager what socket to use? The qemu://system URL doesn't seem to directly map to any socket....
Normally you don't. The socket gets picked based on the URI and whether you are opening a read-only or read write connection and the socket is placed in a well-known path.
Searching for the definition of how to declare a "read only" URL, I looked at https://libvirt.org/uri.html ; but it doesn't mention the option (instead referring to virConnectReadOnly() ). I also searched the code base, but couldn't find where "readonliness" is extracted from the URL. If you can provide the URL parameter for read-only, I'll want to send a patch for the docs to list it.
Yes, the read-only connection is opened by using the API you mention. That's the reason why the socket paths are also not something we expose because the URI and method used to open connection will infer it.