-
Notifications
You must be signed in to change notification settings - Fork 2
Add this to Fedora proper? #6
Comments
Thanks for your interest in my packages 😄 To answer your question: yes and no
I created this repository because I was interested in LXD and didn't have an Ubuntu around 😏. Are you using my COPR repo? What do you think about it and about (the future of) LXD on Fedora? |
@ganto If you're having problems getting in touch with the lxc maintainer and there's a bug report in bugzilla for fixes for lxc packaging, you could petition to become co-maintainer of lxc itself. You can also ask for help on the devel list on what to do about unresponsive maintainers. That said, I'm one of the snapd maintainers in Fedora, and @kyrofa is one of the Snapcraft developers interested in getting all the Snapcraft functionality working on Fedora. Snapcraft supports using LXD as a backend for "clean" snap builds, so I'm very interested in seeing all of this land in Fedora itself so that Snapcraft can leverage it. One of the things we're working towards in Snapcraft and snapd is supporting building Fedora-backed snaps, which means having a Fedora environment available in LXD, among other things. Obviously, this means Fedora's LXC support needs to be enhanced and LXD should land in Fedora. :) As for LXD itself, it's quite nice, and I'd like it to be available in Fedora, regardless of the Snapcraft thing. |
@ganto As for the SELinux issue, you should probably work with @rhatdan on figuring out what needs to be added to container-selinux module to ensure LXD can work well under an SELinux enforcing system. |
Hmn, I don't fully understand. What are you using As I can't see any use-case for If more people interested in a proper |
Hey guys, thanks for looping me in. Indeed, as @Conan-Kudo mentioned snapcraft supports LXD, but doesn't require it. By default it'll build the snap on the host itself, but that would potentially install packages on the host, which is sometimes not desired. So it also supports a "cleanbuild" that spawns a temporary container via LXD to run the build and leave the host alone. Whether or not this container is Ubuntu- or Fedora-based doesn't matter so much as we're working on RPM support. It's not currently on the roadmap, but we could potentially refactor the cleanbuild system to support multiple backends. |
@ganto I have zero Fedora packaging experience, but it's something I want to learn. Would you be willing to work with a n00b? |
@kyrofa I'm also willing to help you get started on this, if you'd like. |
Thanks @Conan-Kudo, I've put this on my backlog. Give me a few weeks to wrap up my current tasking and then I'll surely be reaching out for some advice 😃 . |
@ganto You could start with some of the generic Go and Python dependencies to get them into Fedora. We can work our way up from the dependencies to the lxd package itself. |
An update to this: I've proposed changes to the container-selinux policy to fix LXD for Fedora. @stgraber is working on fixing the SELinux support in LXD itself. So there's no reason that LXD can't start making its way into Fedora proper now. |
@Conan-Kudo Neat, thanks the info. Started cleaning up the spec files. However, for |
@ganto According to the LXD documentation, |
LXD 2.18 will work just fine with LXC 2.0.x. We do version detection and dynamically update our container configs to match the liblxc version you have installed. |
Ok, good to hear, then I'll remove the forced version dependency again. What made me think it's required in the first place was https://github.com/lxc/lxd-pkg-ubuntu/commit/089f11941011b1d80c2915ae809b9da5fe0d9a58 on the corresponding Ubuntu package. |
Yeah, we did the specific version dependency just to avoid upgrade ordering issues. LXD itself is fine either way, it should doesn't like it when you bump from 2.0 to 2.1 while it's running :) |
My PR was merged: containers/container-selinux@0620186 And new packages are being built with the changes now: containers/container-selinux#42 (comment) |
Hi guys, I just want to say that I am really excited for LXD and I am looking for proper package on Fedora. I have zero fedora-packaging experience, but if there is anything I can help you with, just let me know. |
@Conan-Kudo Thanks a lot for you work on projectatomic/container-selinux for the necessary SELinux label definitions. I'm happy to see that your changes were merged into Regarding my packaging efforts. I just uploaded On the other hand I also started by first official Fedora package review for a |
You should be all set there... |
Any progress on this issue? |
@ganto any progress on this issue? Is there anything I can help you with? |
Thanks a lot for your interest. I'm currently working on getting the The best thing you can do, if you want to help, is to review the current spec files and RPMs and report every issue you find in the corresponding Github projects:
|
As you may have seen, initial packages for LXC/LXD 3.0 are now available via ganto/lxc3 COPR repository. Here the following points that still needs to be solved, before LXD can realistically be added to Fedora proper:
If you want to help, I would be glad if you could look into one of the issues mentioned above, help me cleanup and fix the spec files (I'll gladly accept PRs) or simply use LXD from my COPR repository, experiment with one of the many features (various networking setups, various storage backends, clustering) and report when something doesn't work. |
Fedora allows bundling in this particular case, since there's too many weird/forked dependencies. The If @kyrofa is still interested in helping, he might be able to help adapt the The issue with the LXD socket path is definitely a problem for @stgraber, though. He should be able to do something to make this better for us. Same goes for the tests, as he's the one able to do this stuff. |
The latest build |
Have you considered getting LXD into Fedora proper? The process to do so isn't particularly difficult...
The text was updated successfully, but these errors were encountered: