From owner-freebsd-stable@FreeBSD.ORG Thu Jan 19 15:34:28 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 761BD106564A for ; Thu, 19 Jan 2012 15:34:28 +0000 (UTC) (envelope-from linuxmail@4lin.net) Received: from mail.4lin.net (mail.4lin.net [IPv6:2a01:4f8:130:6021::50]) by mx1.freebsd.org (Postfix) with ESMTP id 06E228FC0A for ; Thu, 19 Jan 2012 15:34:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.4lin.net (Postfix) with ESMTP id DEB986791 for ; Thu, 19 Jan 2012 16:36:18 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.4lin.net Received: from mail.4lin.net ([127.0.0.1]) by localhost (mail.4lin.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1ZQXiJ0-vGZg for ; Thu, 19 Jan 2012 16:36:14 +0100 (CET) Received: from pcdenny.rbg.informatik.tu-darmstadt.de (pcdenny.rbg.informatik.tu-darmstadt.de [130.83.160.152]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.4lin.net (Postfix) with ESMTPSA id A4ED06573 for ; Thu, 19 Jan 2012 16:36:14 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) From: Denny Schierz In-Reply-To: <741811DB-240C-4390-A3B3-4BEFE8714942@4lin.net> Date: Thu, 19 Jan 2012 16:34:22 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5A4BB62D-AD68-45CE-BDCA-F2504780307A@4lin.net> References: <4F174607.9070707@fdrive.com.au> <741811DB-240C-4390-A3B3-4BEFE8714942@4lin.net> To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.1251.1) Subject: Re: Fighting with vnet / jails epair and so on X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2012 15:34:28 -0000 hi, I've created a new patch (adapted the old freebsd-9RC2 patch) for = /etc/rc.d/jail: The original patch: http://wiki.polymorf.fr/files/jail_rc.patch My patch: http://pastebin.com/9LdLwaNA It works (was very happy) if you start the jail, but has problems with = stopping: it shows in jls still as active: # jls JID IP Address Hostname Path 1 - template.domain /jails/template If I try to remove with "jail -r 1" than first the process hang, second = after while, the whole machine needs a reset. There is no process from = the jail active, nor any epair* interfaces or mounts, which is quite = good, but ... I you try to create the jail again (after /etc/rc.d/jail stop), it tries = to create the epair0a (the last I can see) interface and than it hangs = again -> reset needed Also nice to know: # umount /jails/template=20 umount: unmount of /jails/template failed: Device busy Also not possible: a normal reboot after starting / stopping the jail. = -> reset needed cu denny=