Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 08:49:24 +0100
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        Thomas Steen Rasmussen <thomas@gibfest.dk>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Using jail name in rctl(8) doesn't work - jail id works
Message-ID:  <20120310074923.GA89251@strashydlo.local>
In-Reply-To: <4F5A6BCE.7060108@gibfest.dk>
References:  <4F5932FB.4060909@gibfest.dk> <4F5A6BCE.7060108@gibfest.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120310074923.GA89251>