runj icon indicating copy to clipboard operation
runj copied to clipboard

Is only FreeBSD on scope?

Open tuxillo opened this issue 3 years ago • 5 comments

There are other FreeBSD-based OSes like DragonFly BSD that will likely take a, somewhat, different approach wrt jails and that don't have a linux compatibility layer.

I'm wondering if such would be considered, ofc by submitting PRs ourselves.

tuxillo avatar Mar 20 '23 10:03 tuxillo

Apologies for the lengthy delay in getting back to you. runj is focused on FreeBSD for now as I only have a FreeBSD VM set up to test with (and I'd rather get runj more complete before starting work on another OS). However, if the patches to make runj work on DragonFly BSD are relatively small, that could be reasonable to incorporate into runj.

What are some of the differences in approaches between FreeBSD and DragonFly BSD with respect to jails?

samuelkarp avatar Aug 19 '23 23:08 samuelkarp

Basically, DragonFly BSD jails are FreeBSD's late 4.x or early 5.x jails. We haven't ported new changes from FreeBSD and we haven't developed jails further yet. Now I'm thinking it might just be easier for everyone that we add some sort of compatibility layer with the idea of being able to run whatever that runs for FreeBSD.

In any case this was just a thought that I wanted to get input on. Many thanks!

tuxillo avatar Aug 20 '23 09:08 tuxillo

I think it's gonna be really tricky without vnet support

igalic avatar Aug 21 '23 08:08 igalic

I think it's gonna be really tricky without vnet support

Can you expand on that a bit? Thanks!

tuxillo avatar Sep 16 '23 09:09 tuxillo

VNET(9) is the way we isolate networking between jails, but it looks like you can create containers without network isolation, if I'm reading this right https://github.com/samuelkarp/runj/blob/8ab46e96ccb331e5c5ac4879494c7f8af8dbe6f7/oci/config.go#L82-L108

igalic avatar Sep 17 '23 10:09 igalic