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

[enhancement] Add support for plain jails #33

Open
keltia opened this issue Oct 19, 2014 · 6 comments
Open

[enhancement] Add support for plain jails #33

keltia opened this issue Oct 19, 2014 · 6 comments

Comments

@keltia
Copy link

keltia commented Oct 19, 2014

Some people find ezjail more of an hindrance to manage upgrades compared to "plain jails". There is also the fact that ezjail supports only one base jail which makes mixing versions and/or archs more difficult. It would be nice if ploy could work with plain jails too.

@tomster
Copy link
Contributor

tomster commented Oct 26, 2014

yes, this topic has come up elsewhere already, too and i'm very much in favour of adding it but i'm still not sure what approach to take.

implementing the create / start / stop / terminate lifecycle should be trivial enough.

i'd probably go for implementing it as a plugin (ploy_jail?) , though, so people could chose which jail implementation to use (i.e. CBSD and also because technically BSDploy is in no way limited to FreeBSD.

what would you expect 'plain jail' support to look like? i.e. what would configuring a jailhost in that scenario entail in your mind?

@fschulze
Copy link
Member

I'd also say we should definitely do this in another plugin. I think the hardest part is the jail creation. There are quite a few ways to do it. The thing ezjail does is having an opinion on how to do it, which is the basejail with null mounts approach. How would one handle that for the general case?

@tomster
Copy link
Contributor

tomster commented Oct 26, 2014

i definitely like the nullfs mount approach. the flexibility of mapping ZFS filesystems (in)to jails is very powerful.

but then again, if you really want that you can always just use ezjail :)

OTOH i really wouldn't mind using a non-ezjail approach myself, but for me the nullfs mount feature is a must-have...

@keltia
Copy link
Author

keltia commented Oct 26, 2014

The thing is, in the freebsd project, we use jails a lot and we have found that ezjail is not flexible enough (only one basejail for example) and harder to update than "plain" jails. In fact, we just converted all 100-ish jails to plain ones. I guess my problem is more with ezjail than bsdploy in fact :) So flexibility would be better.

@fschulze
Copy link
Member

So, how do you use jails now? I would be really interested in how you create the jails now. A plugin that only implements start (without create), stop, terminate, ssh etc is pretty simple, but I'm not sure without create it's that useful.

@fschulze
Copy link
Member

Oh and just FYI: I have things brewing in my head for ploy 2.0 based on my experience so far and what I see others doing, which would make it all much simpler overall.

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

No branches or pull requests

3 participants