Closed thekad closed 1 year ago
cc @p3ck
Thanks for this :) I tried something similar the other week by hand and had an issue with missing python bindings for libvirt, I must have missed something. Code looks fine for a quicky 5pm glance. I'll test this one Tomorrow morning :).
I hit this error sushy-emulator[900973]: [2022-11-25 05:32:14,748] ERROR in main: libvirt driver not loaded
I think the python package for the libvirt bindings isn't in the virtual env
A quick attempt at adding libvirt-python failed.
Hmmmm, my virtualenv must've been polluted, let me make an attempt from zero and will try to figure it out
@nocturnalastro it wasn't my virtualenv, rather my machine had libvirt-devel already installed, can you take a look please ?
Currently, sushy tools is installed in the system-wide python path, this causes issues with e.g. newer versions of libraries in the sushy releases, and overwriting RPM files with PIP files. Also adjusting the systemd service file to use the virtual environment.