G
G
gre2012-05-05 16:14:32
FreeBSD
gre, 2012-05-05 16:14:32

Understand how ezjail works?

I just can not figure out how to "correctly" mount the ports.
so, I install on FreeBSD 9 (version, however, is not important) ezjail
1. cd `whereis ezjail` && make install
2. ezjail-admin install
3. ezjail-create jailname jailip
A jail is created based on basejail, while /usr is a symlink on /basejail/usr
and basejail itself is mounted using nullfs in a read-only
task so that ports from the host system are mounted in jail in /usr/ports.
Solutions that did not help me:
1. ln -s /usr/ports /usr/jails/basejail/usr/
2. mount -t nullfs /usr/ports /usr/jails/basejail/usr/ports
Alternatively, disable the setting basejail (By the way, how? but I suspect on ezjail.conf :) )
Actually the question is how do you set up your jails and how do you deal with ports?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
phasma, 2012-05-05
@phasma

> Actually the question is how do you set up your jails and how do you deal with ports?
hands. Working with jails on FreeBSD is not that difficult. Ports are mounted via nullfs without problems.

G
gre, 2012-05-05
@gre

Thank you!
I just don't understand what to do in the case of a standard setup with Basejail :)

P
Panamer, 2017-05-23
@Panamer

ezjail-admin install -pm
And that's it. The base cage will be with fresh ports.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question