Hi all,
this is my first post here. First thanks for this great system. Im a long term linux guy (principally debian), but after linux move to systemd I started to look on another direction...
First an introduction before my question. I'm building an automated provisioning system with ansible for web servers with php. I would like to have different php versions running at the same time and the way pkgs are build (I prefer to stay with binary builds for now) make impossible to mix different php versions, so I started to investigate "jails".
With jails I could install all php version in a clean manner and use php-fpm. But the problem I get is that on all doc/howto/info I can search, all jails are created from a base jail that is independent from host base install (like ezjail) or completely independent jails with his own base install. I get here two problems:
1. For each new server I have to update and take care of a minimum of two base systems (host + base jail). This can complicate things with a lot of servers (yes, automation can help, but...)
2. Disk space. With dedicated servers or relatively big cloud/vps servers you get enough disk but with small cloud offers, 1G~ lost for a jail base template can be a lot. I know about zfs deduplication, compression and clones. But if I can avoid spending 1G, better.
So finally my question
I know some jails systems (iocell/iocage maybe others) use nullfs filesystems in read-only over the base/template jail and let var etc and usr/local on it's own jail. I did some test creating jails manually with nullfs over the host base system and it work ok. So in theory this solve my "problems": only one base system to update and not waste disk space (or minimal). But I'm just starting to play with freebsd so maybe I miss something because I can't found info about creating jails on this manner... why ?, security problems ? any other issue ?
Any comment is welcome,
Thanks!
this is my first post here. First thanks for this great system. Im a long term linux guy (principally debian), but after linux move to systemd I started to look on another direction...
First an introduction before my question. I'm building an automated provisioning system with ansible for web servers with php. I would like to have different php versions running at the same time and the way pkgs are build (I prefer to stay with binary builds for now) make impossible to mix different php versions, so I started to investigate "jails".
With jails I could install all php version in a clean manner and use php-fpm. But the problem I get is that on all doc/howto/info I can search, all jails are created from a base jail that is independent from host base install (like ezjail) or completely independent jails with his own base install. I get here two problems:
1. For each new server I have to update and take care of a minimum of two base systems (host + base jail). This can complicate things with a lot of servers (yes, automation can help, but...)
2. Disk space. With dedicated servers or relatively big cloud/vps servers you get enough disk but with small cloud offers, 1G~ lost for a jail base template can be a lot. I know about zfs deduplication, compression and clones. But if I can avoid spending 1G, better.
So finally my question
I know some jails systems (iocell/iocage maybe others) use nullfs filesystems in read-only over the base/template jail and let var etc and usr/local on it's own jail. I did some test creating jails manually with nullfs over the host base system and it work ok. So in theory this solve my "problems": only one base system to update and not waste disk space (or minimal). But I'm just starting to play with freebsd so maybe I miss something because I can't found info about creating jails on this manner... why ?, security problems ? any other issue ?
Any comment is welcome,
Thanks!