From owner-freebsd-jail@FreeBSD.ORG Mon Jun 14 11:06:54 2010 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 042341065701 for ; Mon, 14 Jun 2010 11:06:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E61D28FC2C for ; Mon, 14 Jun 2010 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5EB6rNw078554 for ; Mon, 14 Jun 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5EB6rN0078552 for freebsd-jail@FreeBSD.org; Mon, 14 Jun 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Jun 2010 11:06:53 GMT Message-Id: <201006141106.o5EB6rN0078552@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 11:06:54 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/147162 jail [jail] [panic] Page Fault / Kernel panic when jail sta s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 7 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon Jun 14 14:02:43 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1811E106566C for ; Mon, 14 Jun 2010 14:02:43 +0000 (UTC) (envelope-from jwhatley@rhyton.com) Received: from lion.rhyton.com (mail.rhyton.com [70.85.6.241]) by mx1.freebsd.org (Postfix) with ESMTP id C7B1C8FC17 for ; Mon, 14 Jun 2010 14:02:42 +0000 (UTC) Received: from sephariel (azzuro.rhyton.com [70.91.115.129]) (authenticated (0 bits)) by lion.rhyton.com (8.12.10/8.11.6) with ESMTP id o5EDaaxb091636 for ; Mon, 14 Jun 2010 09:36:37 -0400 (EDT) From: "Jacob Whatley" To: Date: Mon, 14 Jun 2010 09:36:40 -0400 Message-ID: <009001cb0bc6$a2641810$e72c4830$@com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsLxp6z6mrEjdkAQ4ebZFyXCaCSvA== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: jid's not refreshing after jail shutdown X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 14:02:43 -0000 Hello group! On 8.0 Release, our system is setup so that we specify the jid when a jail is built, which we make numerical (ie, 1001, 1002, etc..). This works great for consistency and for setup scripts. However, we are running into a problem that after shutting down a jail (or group of jails) using 'jail -r ', when we attempt to start the jail(s) anew, we get the error: jail: jail already exists Running jls shows no active jail for that jid. Is there something that we can do to flush whatever buffer is holding the old jid data, so that we may restart a dead jail with the same jid? Incidentally, this happens more often than not, but occasionally and after a few minutes we can run 'jail -c .....' and it will not bomb. Thanks! Jake Whatley, Developer Rhyton Corporation jwhatley@rhyton.com http://rhyton.com **************************** From owner-freebsd-jail@FreeBSD.ORG Mon Jun 14 22:34:36 2010 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA67A1065675 for ; Mon, 14 Jun 2010 22:34:36 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from gritton.org (gritton.org [208.92.232.93]) by mx1.freebsd.org (Postfix) with ESMTP id 30D048FC1A for ; Mon, 14 Jun 2010 22:34:36 +0000 (UTC) Received: from guppy.corp.verio.net (fw.oremut02.us.wh.verio.net [198.65.168.24]) (authenticated bits=0) by gritton.org (8.14.3/8.14.3) with ESMTP id o5EMYYt8067848; Mon, 14 Jun 2010 16:34:35 -0600 (MDT) (envelope-from jamie@FreeBSD.org) Message-ID: <4C16ADF0.7010800@FreeBSD.org> Date: Mon, 14 Jun 2010 16:32:16 -0600 From: Jamie Gritton User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.5) Gecko/20100103 Thunderbird/3.0 MIME-Version: 1.0 To: Jacob Whatley References: <009001cb0bc6$a2641810$e72c4830$@com> In-Reply-To: <009001cb0bc6$a2641810$e72c4830$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@FreeBSD.org Subject: Re: jid's not refreshing after jail shutdown X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 22:34:36 -0000 On 06/14/10 07:36, Jacob Whatley wrote: > On 8.0 Release, our system is setup so that we specify the jid when a jail > is built, which we make numerical (ie, 1001, 1002, etc..). This works great > for consistency and for setup scripts. However, we are running into a > problem that after shutting down a jail (or group of jails) using 'jail -r > ', when we attempt to start the jail(s) anew, we get the error: > > jail: jail already exists > > Running jls shows no active jail for that jid. Is there something that we > can do to flush whatever buffer is holding the old jid data, so that we may > restart a dead jail with the same jid? Incidentally, this happens more often > than not, but occasionally and after a few minutes we can run 'jail -c > .....' and it will not bomb. After you remove a jail, it still exists in a hidden state until nothing in the kernel refers to anymore. There one big thing that can hold on to a jail for a few minutes are it's been removed: TCP timers. Once the last tcp connection times out, the jail is let go and you can re-use its ID. You can see these half-dead jails with the "-d" flag to jls(8). Unfortunately, you can't shortcut that timeout, or change an existing jail's jid. There is one thing you can do, that may fit your needs. With the "-d" flag to jail(8), you can make changes to such a dying jail, including setting the "persist" parameter which will bring it back to life, or running a command which will make it alive until the command completes (as with a normal newly created jail). Even though the jail appears to not exist, it actually does and so you'll need to use the "-m" flag to modify an existing jail. Of course it may have gone away, so you're best off with "-cm". You also have to be aware that any other parameters you've set before may be still in that state (if the jail hasn't gone away and you're bringing it back to life) or may not (if it went away and you're creating a new one). - Jamie From owner-freebsd-jail@FreeBSD.ORG Tue Jun 15 23:10:03 2010 Return-Path: Delivered-To: freebsd-jail@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BFC51065670 for ; Tue, 15 Jun 2010 23:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1C39E8FC12 for ; Tue, 15 Jun 2010 23:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5FNA2qC073161 for ; Tue, 15 Jun 2010 23:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5FNA2D5073160; Tue, 15 Jun 2010 23:10:02 GMT (envelope-from gnats) Date: Tue, 15 Jun 2010 23:10:02 GMT Message-Id: <201006152310.o5FNA2D5073160@freefall.freebsd.org> To: freebsd-jail@FreeBSD.org From: Marcin Wisnicki Cc: Subject: Re: conf/142972: [jail] [patch] Support JAILv2 and vnet in rc.d/jail X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Wisnicki List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2010 23:10:03 -0000 The following reply was made to PR conf/142972; it has been noted by GNATS. From: Marcin Wisnicki To: bug-followup Cc: Subject: Re: conf/142972: [jail] [patch] Support JAILv2 and vnet in rc.d/jail Date: Wed, 16 Jun 2010 01:04:21 +0200 # man 8 jail | grep -i experimental Usage: .Va variable_name ... (#71) # There is nothing in manual page that this is experimental (but there is a syntax error?). From owner-freebsd-jail@FreeBSD.ORG Wed Jun 16 05:10:07 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E6771065687 for ; Wed, 16 Jun 2010 05:10:07 +0000 (UTC) (envelope-from mosconi@mosconi.mat.br) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 264268FC19 for ; Wed, 16 Jun 2010 05:10:06 +0000 (UTC) Received: by qyk11 with SMTP id 11so1222530qyk.13 for ; Tue, 15 Jun 2010 22:10:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.124.212 with SMTP id v20mr3750363qar.278.1276663276613; Tue, 15 Jun 2010 21:41:16 -0700 (PDT) Received: by 10.229.34.147 with HTTP; Tue, 15 Jun 2010 21:41:16 -0700 (PDT) Date: Wed, 16 Jun 2010 01:41:16 -0300 Message-ID: From: Rodrigo Mosconi To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: vfs jail-friendly X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 05:10:07 -0000 Hi all! I would like to know which File-System are setted as "Jail-Friendly" (JF for short) on 8.1-PRERELEASE? On ZFS is marked as JF, but on file "src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c" the jailed property was setted as "not supported by FreeBSD". I notice some wrappers to suport jails in ZFS ("libzfs.h") As example: Tales# zfs set jailed=on Tales/t1 property 'jailed' not supported on FreeBSD: permission denied My big question: Why UFS isn't a JF FS, if the UFS is the native FS (not ported from others projects, as ZFS, or tempfs)? All this doubts are because I'm trying to make a diskless-like rc script (just for fun/test my skills) to startup jails. I thought a single shared root, with the ZFS dataset as /conf - maybe I need a separated mount table to use somethink like md devices, or mount the jail specific etc directly, if the zfs jail command isolate the dataset from the others jails... An Utopia (I now that doesn't work, but it's a suggestion): # mount (...snip...) Tales/jails/base on /jails/base (zfs, local) Tales/t1 on /jails/base/etc (zfs, local(?)) Tales/t2 on /jails/base/etc (zfs, local(?)) # jexec 1 ls /etc test1 # jexec 2 ls /etc test2 Thanks Mosconi From owner-freebsd-jail@FreeBSD.ORG Wed Jun 16 05:11:22 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD24B1065672 for ; Wed, 16 Jun 2010 05:11:22 +0000 (UTC) (envelope-from mosconi@mosconi.mat.br) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6F13C8FC0C for ; Wed, 16 Jun 2010 05:11:22 +0000 (UTC) Received: by vws20 with SMTP id 20so7988889vws.13 for ; Tue, 15 Jun 2010 22:11:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.249.213 with SMTP id ml21mr3632003qcb.288.1276663406637; Tue, 15 Jun 2010 21:43:26 -0700 (PDT) Sender: mosconi@mosconi.mat.br Received: by 10.229.34.147 with HTTP; Tue, 15 Jun 2010 21:43:26 -0700 (PDT) Date: Wed, 16 Jun 2010 01:43:26 -0300 X-Google-Sender-Auth: sKa2fnZ68QSUcIv6wxhjbKYw0ZQ Message-ID: From: Rodrigo Mosconi To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: vfs jail-friendly X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 05:11:22 -0000 Hi all! I would like to know which File-System are setted as "Jail-Friendly" (JF for short) on 8.1-PRERELEASE? On ZFS is marked as JF, but on file "src/cddl/contrib/opensolaris/ lib/libzfs/common/libzfs_dataset.c" the jailed property was setted as "not supported by FreeBSD". I notice some wrappers to suport jails in ZFS ("libzfs.h") As example: Tales# zfs set jailed=on Tales/t1 property 'jailed' not supported on FreeBSD: permission denied My big question: Why UFS isn't a JF FS, if the UFS is the native FS (not ported from others projects, as ZFS, or tempfs)? All this doubts are because I'm trying to make a diskless-like rc script (just for fun/test my skills) to startup jails. I thought a single shared root, with the ZFS dataset as /conf - maybe I need a separated mount table to use somethink like md devices, or mount the jail specific etc directly, if the zfs jail command isolate the dataset from the others jails... An Utopia (I now that doesn't work, but it's a suggestion): # mount (...snip...) Tales/jails/base on /jails/base (zfs, local) Tales/t1 on /jails/base/etc (zfs, local(?)) Tales/t2 on /jails/base/etc (zfs, local(?)) # jexec 1 ls /etc test1 # jexec 2 ls /etc test2 Thanks Mosconi