0

I have a FreeBSD 11 host, and I want to setup multiple jails in it. Official guide suggests hard copying /usr/bin into each of the containers. Having that my jails shall be nearly identical, this seems wasteful for me.

It would be nice if I could reuse the same part of filesystem inside all of the jails, in the same manner as with Linux's mount --bind -o ro <host /usr/bin> <jailed /usr/bin>. It it possible?

Tracey
  • 3
  • 2

1 Answers1

2

In FreeBSD your can use nullfs to mount subtree of filesystem.

There are several tools to make jail creating/updating more easy (listed in the Freebsd Wiki). One of them ezjail and ezjail uses nullfs to mount one basejail inside several jails.

citrin
  • 469
  • 2
  • 5