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

iocage cannot be used with hierarchical jails #33

Open
3 tasks done
Defenso-QTH opened this issue Sep 23, 2024 · 1 comment · May be fixed by #34
Open
3 tasks done

iocage cannot be used with hierarchical jails #33

Defenso-QTH opened this issue Sep 23, 2024 · 1 comment · May be fixed by #34

Comments

@Defenso-QTH
Copy link
Contributor

This is similar to iocage/iocage#1133 raised by @dlangille and inspired by https://it-notes.dragas.net/2023/11/27/migrating-from-vm-to-hierarchical-jails-freebsd/

Version: 1.8

iocage uses $pool/iocage, currently hardcoded path, to store its datasets (jails, templates, downloaded releases, etc.)

That makes it impossible to use in hierarchical (nested) jails.

I would like to have a --prefix option use to set a prefix to be used for iocage datasets, when I first activate the pool to be used, for instance: iocage activate mypool --prefix my/prefix.

Then I would expect jails to live in mypool/my/prefix/iocage/jails.

This should make it possible to use iocage within jails, like bastille: https://docs.bastillebsd.org/en/latest/chapters/zfs-support.html (see the bastille_zfs_prefix configuration directive).


Make sure to follow and check these boxes before submitting an issue! Thank you.

  • Supply iocage --version
    - [ ] Supply the commands used, along with any steps to recreate it.
    - [ ] Provide the output from the command you issued.
  • Supply what you expected the result or output to be
  • Checked that the problem has not already been fixed on master if using
    a stable release.
@Defenso-QTH Defenso-QTH linked a pull request Sep 25, 2024 that will close this issue
2 tasks
@Defenso-QTH
Copy link
Contributor Author

I provided a draft PR to address this but there is still an issue to address, please join the discussion!

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

Successfully merging a pull request may close this issue.

1 participant