How do I create a new plugin?
-
This might be a silly question (either because it's really easy or because the API isn't open that way), but anyway.
I would like to create a couple of plugins for Xen Orchestra. How do I get started?
-
Short answer: see this test plugin to help you to start with a base: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server-test-plugin
Longer answer: it might be better to start by explaining what do you need I mean, functionally speaking. Maybe others need something similar or we can even make it if it's not too specific (or send you in the right direction)
-
@olivierlambert Nice.
I have a few ideas, but for starters, I would like to try something that seems simple enough to implement and that I miss from ESXi: A GUI to setup hardware passthrough.It would show up the devices on the host, allow the user to check the ones to reserve for passthrough and then assign them to VMs (I'm assuming that injecting a new field into the VM config is not something that's possible, so everything can be managed from the same page instead).
-
So this is not meant for a plugin, but directly in XO.
We can help you to reach there, but first you need to check exactly how it's done with XCP-ng Center and if it's possible to make it entirely with the GUI, which I'm not sure at all.
-
I recently found the notification platform apprise and I wonder if it would be a good notification system for XOA to support. The API seems very straight forward. Would this be a good use of plugins? Ultimately I am looking for a HomeAssistant or a HACS integration but notifications being routed through apprise to HASS would be a good first step and seems like a lower barrier to entry.
-
Hi!
What kind of notifications you are thinking about?
-
@olivierlambert, To start I would like to get my backup notification sent to HomeAssistant.