Hello,
"pip install libvirt-python" does not work in several cases as that
requires the low-level C library, compilers, tools, and Python header
files to be installed. This prevents the use of "libvirt" in scenarios,
where "root" privileges are not available to install these dependencies,
e.g. running "libvirt" inside a JupyterHub notebook for gathering
statistics. This also breaks the adoption on Windows, see
<https://gitlab.com/libvirt/libvirt-python/-/issues/7> and
<https://gitlab.com/libvirt/libvirt-python/-/issues/6>
Looking at <https://libvirt.org/bindings.html> and
<https://gitlab.com/libvirt> I only see "bindings" for the low-level C
library.
Does someone know of a "pure Python binding" for talking to a remote
"libvirtd", either via "+ssh" or "+tls"?
Or is there another "trick" to talk to libvirtd? And no, parsing the
output of subprocess.run("ssh ... virsh ...") is not an option ;-)
Philipp
--
Philipp Hahn
Open Source Software Engineer
Univention GmbH
Mary-Somerville-Str. 1
28359 Bremen
Germany | Deutschland
Phone: +49 (0)421 22232-0 | E-Mail: info@xxxxxxxxxxxxx
https://www.univention.de | https://www.univention.com
Managing Directors: Peter H. Ganten, Stefan Gohmann
Local court: Amtsgericht Bremen
HRB 20755 | Ust-ID: DE220051310