Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LXD Provider requires a local installation of LXD on macOS #508

Open
jat-canonical opened this issue Feb 9, 2024 · 3 comments
Open

LXD Provider requires a local installation of LXD on macOS #508

jat-canonical opened this issue Feb 9, 2024 · 3 comments
Labels
Enhancement New feature or request

Comments

@jat-canonical
Copy link

What needs to get done

Allow LXD provider to work with a remote LXD cluster so that builds on non-linux hosts like windows and macOS can become faster. I have asked for a similar requirement in Snapcraft repo as well here.
Hoping to get some traction and insight here.

Why it needs to get done

Currently the LXD provider checks for a local installation of LXD which is not possible for non-linux platforms. Please correct me if I am wrong here but most of the craft tools require only a client side implementation of the providers and offload the actual building by using mount/transfer options available for the provider to run the building process on the source package.
So giving the option to use a remote LXD cluster for packaging things instead of relying on multipass could make things faster as well since multipass always launches a new vm which is a rather heavy operation as compared to a container.

Propose Solution:
Making an LXC client that is correctly configured to a reachable lxd cluster, the required dependency could solve this problem ?

@jat-canonical jat-canonical added the Enhancement New feature or request label Feb 9, 2024
@mr-cal
Copy link
Collaborator

mr-cal commented Feb 27, 2024

Thanks for the suggestion. We have had a few requests to support remote LXD servers.

Craft-providers already has most of the work implemented to support remote LXD servers. I made a proof of concept a year or two ago. However there is a lot of work remaining to define and implement the application-side code and ensure a good UX. For example, the remote LXD server could be running on a different architecture, so we need to query the server when filtering a build plan.

Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2553.

This message was autogenerated

@jat-canonical
Copy link
Author

Yeah makes sense. Also it would be really great if we can replicate the same functionality for the client side on charmcraft too once we get this over the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants