Open Pablo1107 opened 5 months ago
Some information I found:
This article mentions that in the NUR has packaged cockpit-machines like this one: https://github.com/nix-community/nur-combined/blob/4adeb491423345da5c831d339cd7c6dcfc7bc697/repos/procyon/nix/pkgs/cockpit-machines/default.nix
But when installed, as mentioned in the ticket for cockpit one cannot create a VM because it shows "No results found" on the OS select input:
This is because we lack two deps: libosinfo and osinfo-db as mentioned by this comment but just installing those in systemPackages
don't work.
@lucasew did you try get this working when you worked on cockpit?
@lucasew did you try get this working when you worked on cockpit?
I didn't try to package any plugins, but I had to use a trick for cockpit to recognize the core plugin. Plugins should work out of the box but the problem is that these plugins have paths hardcoded so they require patching or upstream collaboration.
i spent today messing around with this. i was able to get as far as getting machines to call their osinfo python script correctly.
get os list returned error: "{"problem":null,"exit_status":127,"exit_signal":null,"message":"...the entire script...: No such file or directory"}"
the script loads properly. earlier during debugging, it was throwing python import errors. when i debug in a python interpreter, Namespace Libosinfo is not available
throws before anything else. the fact that it's failing after those makes it seem that cockpit-machines, gobject-introspection, and libosinfo itself is set up correctly.
i think that either the script is is trying and failing to load the db files or libosinfo isn't installed properly and can't find the db files. not sure where to go from here though.
Project description
As a follow up to this ticket https://github.com/NixOS/nixpkgs/issues/38161 we need this package to be able to control and create libvirtd VMs.
Metadata
platforms: linux
Add a :+1: reaction to issues you find important.