You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent changes around LXD and the fork of Incus, using lxd-dashboard with Incus would be awesome.
Unfortunately, Incus is slightly incompatible with LXD. However, regarding the container aspects of lxd-dashboard, the only crucial change seems to be the merge of the API endpoints /1.0/containers and /1.0/virtual-machines into /1.0/instances (see https://linuxcontainers.org/incus/news/2023_10_07_06_10.html).
These APIs are similar enough that a quick and dirty
sed -e 's%/1.0/containers%/1.0/instances%' -i /opt/lxd-dashboard-3.8.0/lxd-dashboard/backend/lxd/*.php
allows lxd-dashboard to work just fine with Incus containers. An stable implementation would of course require to check whether the backend is LXD or Incus and also cover VM aspects, which I haven't checked. However, I wanted to report that Incus support may not be overly complicated and help out anyone who needs a quick way to use lxd-dashboard for Incus containers.
The text was updated successfully, but these errors were encountered:
@fthorns
Before the fork on Incus, I was already working on porting this code to a Python-based project, moving away from PHP and created LXConsole, https://github.com/PenningLabs/lxconsole. When Incus started, I made sure to support both LXD and Incus with the new code base. I moved to Python to utilize libraries and security features and have made quite a few additions/improvements to the python-based project. This is where I have been making all new updates.
You are correct that both API endpoints are still very similar with the exception of instances, vms, and containers. That was the first change I needed to make to support Incus. There are a few additional differences too, like now support for OCI-based containers in addition to LXC.
With the recent changes around LXD and the fork of Incus, using lxd-dashboard with Incus would be awesome.
Unfortunately, Incus is slightly incompatible with LXD. However, regarding the container aspects of lxd-dashboard, the only crucial change seems to be the merge of the API endpoints
/1.0/containers
and/1.0/virtual-machines
into/1.0/instances
(see https://linuxcontainers.org/incus/news/2023_10_07_06_10.html).These APIs are similar enough that a quick and dirty
allows lxd-dashboard to work just fine with Incus containers. An stable implementation would of course require to check whether the backend is LXD or Incus and also cover VM aspects, which I haven't checked. However, I wanted to report that Incus support may not be overly complicated and help out anyone who needs a quick way to use lxd-dashboard for Incus containers.
The text was updated successfully, but these errors were encountered: