rc.d/jail and jail.conf

Jamie Gritton jamie at FreeBSD.org
Mon Apr 1 02:24:56 UTC 2013


On 03/31/13 14:58, Dirk Engling wrote:
> On 31.03.13 22:01, Miroslav Lachman wrote:
>
>>> So I guess, I am out of luck here, because users used to think of their
>>> jails as what they saw in the hostname field on jls. If I am writing
>>> tools that use jail_getid to map the jailname to the jid, it will never
>>> match that hostname and I also can not copy the hostname to the jailname.
>>
>> I understand what you are talking about, but jails in these days are
>> something different from what jails were at the begining in 4.x days and
>> users must accept that jailname is something different than hostname.
>
>> In these days, you can have jails with many IP addresses or without IP
>> address. Hostname needn't to be unique etc.
>>
>> Dot (.) is not allowed in jailname because of hierarchical jails,
>> where dot is used as hierarchy separator.
>
> Humm, this seems a strange thing to answer to my question. Once you see
> jails as virtual servers (which I understand is not the only way to do,
> but the biased way I and most jail users I talk to happen to deploy them
> in huge quantities), the natural approach to name them is via their
> hostname. I find it hard to grasp to tell them "don't" ;)
>
> And still I find the choice of '.' as a separator unfortunate, '/'
> springs in mind, but there might have been reasons.

It just seemed like the natural thing to do. Possibly inspired by
sysctl, but honestly I don't recall. I hadn't considered that jails
would be named after the hostname, probably because I'd never done that
with my own jails or non-jail virtualization.

- Jamie


More information about the freebsd-jail mailing list