Using jail name in rctl(8) doesn't work - jail id works

Edward Tomasz Napierała trasz at FreeBSD.org
Sat Mar 10 08:14:58 UTC 2012


On Fri, Mar 09, 2012 at 09:45:02PM +0100, Thomas Steen Rasmussen wrote:
> On 08-03-2012 23:30, Thomas Steen Rasmussen wrote:
> > Hello,
> >
> > When I specify an rctl(8) rule for a jail using
> > the jail name it doesn't work. Displaying
> > resource usage doesn't work either, when
> > using the jail name, like "rctl -hu jail:myjail"
> >
> > On the other hand, if I run "rctl -hu jail:3"
> > where 3 is the jail id, it works as expected.
> >
> > The manpage examples use the jail name so
> > it should work. Any idea why it doesn't ? I am
> > using 9.0-REL on this system.
> >
> > Should I submit a PR with relevant examples ?
> Hello,
> 
> I submitted the PR which has more information.
> jexec(8) is also unable to convert the jail name to jail id on
> this sýstem.
> My jails are created and started using ezjail, if that matters.
> 
> Link to the PR:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=165886

Reason for this is that both rctl(8) and jexec(8) use jail names,
not jail hostnames, and jls(8) called without arguments displays
jail hostname, not jail name.



More information about the freebsd-jail mailing list