From owner-freebsd-jail@FreeBSD.ORG Mon Apr 18 11:07:02 2011 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 E2C741065676 for ; Mon, 18 Apr 2011 11:07:02 +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 D01C78FC29 for ; Mon, 18 Apr 2011 11:07:02 +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 p3IB72eL019534 for ; Mon, 18 Apr 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3IB72NC019532 for freebsd-jail@FreeBSD.org; Mon, 18 Apr 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Apr 2011 11:07:02 GMT Message-Id: <201104181107.p3IB72NC019532@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, 18 Apr 2011 11:07:03 -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/156111 jail [jail] procstat -b not supported in jail o misc/155765 jail [patch] `buildworld' does not honors WITHOUT_JAIL o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/150599 jail [patch] /etc/rc.d/jail does not set jailname. o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET 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 11 problems total. From owner-freebsd-jail@FreeBSD.ORG Thu Apr 21 17:53:33 2011 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 978751065673 for ; Thu, 21 Apr 2011 17:53:33 +0000 (UTC) (envelope-from mh.unet@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6F5AC8FC15 for ; Thu, 21 Apr 2011 17:53:33 +0000 (UTC) Received: by pwj8 with SMTP id 8so1239846pwj.13 for ; Thu, 21 Apr 2011 10:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=PG8wwDed/0Z2qIH+gOKpd36gog3pCDdOQZxoeH7ywag=; b=Pu9kCtWP1Ho9hg2Y9HFxo6J0ETSDBX03bW1QwH63Vt7Y8TzoyzqKmDqq+2HTw3ChOM W4TTA6BtCNTawjLgefIoAbJanZhayRDeXz+0jyVbk5auAJ6lW1fecLCN/EgiwGqG9/zH Nt8B9wzO15Knq9llfM9PtTfA5DTS8gEJUPXOg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HowD8yXFI/OzDMTwxqrHytSLn/DFOWXFK0zYem13IB5iwnpoVsPK12JdqF7znsAv4M iJhY7K/sHKrkJqFERhRGI+oFVmtYltjzki55bbAH/bTOjeZfNe1+0Vx6a4Vvb3CbYzLb 3X2aKtJ21MfguxvF9tphr2cnzC2sYI2aVfyxE= MIME-Version: 1.0 Received: by 10.142.178.17 with SMTP id a17mr106910wff.64.1303407087525; Thu, 21 Apr 2011 10:31:27 -0700 (PDT) Received: by 10.143.18.4 with HTTP; Thu, 21 Apr 2011 10:31:27 -0700 (PDT) Date: Thu, 21 Apr 2011 10:31:27 -0700 Message-ID: From: Mickey Harvey To: freebsd-jail@freebsd.org X-Mailman-Approved-At: Thu, 21 Apr 2011 18:29:11 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: jail rc 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: Thu, 21 Apr 2011 17:53:33 -0000 This might be more of a question about how rc works instead of being entirely jail specific but here goes: I am trying to start a jail using the jail command such that it appears on the command line as "jail /path/to/jail hostname 192.168.1.1 /bin/rc". I am expecting it to just start the jail and run the rc scripts but I must be doing something wrong because it returns the error "jail: execvp: /bin/rc: Permission denied". From owner-freebsd-jail@FreeBSD.ORG Thu Apr 21 18:51:32 2011 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 153C91065670 for ; Thu, 21 Apr 2011 18:51:32 +0000 (UTC) (envelope-from michael.scheidell@secnap.com) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id CD2BD8FC15 for ; Thu, 21 Apr 2011 18:51:31 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 2385E2B7C6A; Thu, 21 Apr 2011 14:32:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secnap.com; h= mime-version:content-transfer-encoding:content-id:content-type :content-type:content-language:accept-language:in-reply-to :references:message-id:date:date:subject:subject:from:from; s= dkim; t=1303410767; x=1305225167; bh=KnDAjzdAsaNIz1YSeDi7/Qg2Gpc H8zhLsowBDA+YDBk=; b=l0b79zqPPEJJiG/yx6YVRKAwQZPMmoGaQtqQIuTVz2H qBIYj4QZJLwxrDYqA8W21L2oDxcy1CoNUaXlxKwIZ1bU3J2HytWkvvh2wGGjFsnA J7/4HY31DFyeyX2ImbgnrfeekTrycg3llhIfrcxLwUatspXdFOMq/cESsFiFhc8A = X-Amavis-Modified: Mail body modified (using disclaimer) - mx1.secnap.com.ionspam.net X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.14 at mx1.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (usbctdc001.secnap.com [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.secnap.com.ionspam.net (Postfix) with ESMTPS id 581C82B7C5E; Thu, 21 Apr 2011 14:32:47 -0400 (EDT) Received: from USBCTDC001.secnap.com ([10.70.1.1]) by USBCTDC001 ([10.70.1.1]) with mapi; Thu, 21 Apr 2011 14:32:47 -0400 From: Michael Scheidell To: Mickey Harvey , "freebsd-jail@freebsd.org" Thread-Topic: jail rc Thread-Index: AcwAUoJlOGz5ZgjbyEO1l/LXE38LNg== Date: Thu, 21 Apr 2011 18:33:00 +0000 Message-ID: References: <945f73f9-39bd-4bbc-8814-11e324874586@blur> In-Reply-To: <945f73f9-39bd-4bbc-8814-11e324874586@blur> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-ID: <78b2e209-4910-48f8-ad0e-dd98d26631c3> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: Subject: Re: jail rc 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: Thu, 21 Apr 2011 18:51:32 -0000 ICAgVXNlIHNoIC9iaW4vcmMNCg0KLS0NCk1pY2hhZWwgU2NoZWlkZWxsDQpDVE8gU0VDTkFQIE5l dHdvcmsgU2VjdXJpdHkNCjU2MS05NDgtMjI1OTx0ZWw6NTYxOTQ4MjI1OT4NCg0KDQotLS0tLU9y aWdpbmFsIG1lc3NhZ2UtLS0tLQ0KRnJvbTogTWlja2V5IEhhcnZleSA8bWgudW5ldEBnbWFpbC5j b20+DQpUbzogImZyZWVic2QtamFpbEBmcmVlYnNkLm9yZyIgPGZyZWVic2QtamFpbEBmcmVlYnNk Lm9yZz4NClNlbnQ6IFRodSwgQXByIDIxLCAyMDExIDE4OjMwOjE3IEdNVCswMDowMA0KU3ViamVj dDogamFpbCByYw0KDQpUaGlzIG1pZ2h0IGJlIG1vcmUgb2YgYSBxdWVzdGlvbiBhYm91dCBob3cg cmMgd29ya3MgaW5zdGVhZCBvZiBiZWluZw0KZW50aXJlbHkgamFpbCBzcGVjaWZpYyBidXQgaGVy ZSBnb2VzOiBJIGFtIHRyeWluZyB0byBzdGFydCBhIGphaWwgdXNpbmcgdGhlDQpqYWlsIGNvbW1h bmQgc3VjaCB0aGF0IGl0IGFwcGVhcnMgb24gdGhlIGNvbW1hbmQgbGluZSBhcyAiamFpbCAvcGF0 aC90by9qYWlsDQpob3N0bmFtZSAxOTIuMTY4LjEuMSAvYmluL3JjIi4gSSBhbSBleHBlY3Rpbmcg aXQgdG8ganVzdCBzdGFydCB0aGUgamFpbCBhbmQNCnJ1biB0aGUgcmMgc2NyaXB0cyBidXQgSSBt dXN0IGJlIGRvaW5nIHNvbWV0aGluZyB3cm9uZyBiZWNhdXNlIGl0IHJldHVybnMNCnRoZSBlcnJv ciAiamFpbDogZXhlY3ZwOiAvYmluL3JjOiBQZXJtaXNzaW9uIGRlbmllZCIuDQpfX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KZnJlZWJzZC1qYWlsQGZyZWVi c2Qub3JnIG1haWxpbmcgbGlzdA0KaHR0cDovL2xpc3RzLmZyZWVic2Qub3JnL21haWxtYW4vbGlz dGluZm8vZnJlZWJzZC1qYWlsDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhbnkgbWFpbCB0byAiZnJl ZWJzZC1qYWlsLXVuc3Vic2NyaWJlQGZyZWVic2Qub3JnIg0K From owner-freebsd-jail@FreeBSD.ORG Fri Apr 22 04:31:59 2011 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 8BED5106566C for ; Fri, 22 Apr 2011 04:31:59 +0000 (UTC) (envelope-from mh.unet@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 666B28FC19 for ; Fri, 22 Apr 2011 04:31:59 +0000 (UTC) Received: by pzk27 with SMTP id 27so234862pzk.13 for ; Thu, 21 Apr 2011 21:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=+4ynp3puYC8iWU+1pBtiauV1KydoKJmo8OXVkJWgQnM=; b=MrcFzcjmJDJe3J1v6mF5hjLz5U9qd5o+spLg6QFe2Icois+iiO3aWxEObKLAte97EU Aa+IMv2Gin1T+B+4HrU/XFFTVTjnn0BhcATA5qcooBA0Ddo/sHuCd1Hh/f9M4cPumZyo CEJzmVhI9Ai6ypbpWrtzeRRuodqwdO/6om7+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kC7AZxBD50M3z75fj1NMLv3euFzwIPfbqg2xmzbi30lb5i2SPsR2T1RpbqwK2znCj3 2OgX8jogfuucdNDtmL2Y/E1HF9GA1x5opS2kysox0Z7s4RJW7IDSiiRkiqEKELNc26Xf BPOw2wCvqjXP14zkT0O3WEqKn2YQQsb6aX2ZA= MIME-Version: 1.0 Received: by 10.142.118.23 with SMTP id q23mr459133wfc.7.1303446718930; Thu, 21 Apr 2011 21:31:58 -0700 (PDT) Received: by 10.143.18.4 with HTTP; Thu, 21 Apr 2011 21:31:58 -0700 (PDT) Date: Thu, 21 Apr 2011 21:31:58 -0700 Message-ID: From: Mickey Harvey To: freebsd-jail@freebsd.org X-Mailman-Approved-At: Fri, 22 Apr 2011 05:18:06 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: limiting jail size 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: Fri, 22 Apr 2011 04:31:59 -0000 I was wondering if there is an easy way to limit the amount of hard drive space a jail can take up. Say I have 20 jails on a system would this even be possible? From owner-freebsd-jail@FreeBSD.ORG Fri Apr 22 05:58:39 2011 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 A1177106566C for ; Fri, 22 Apr 2011 05:58:39 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from mail.anduin.net (mail.anduin.net [213.225.74.249]) by mx1.freebsd.org (Postfix) with ESMTP id 652D48FC18 for ; Fri, 22 Apr 2011 05:58:39 +0000 (UTC) Received: from [84.38.152.7] (helo=[192.168.2.119]) by mail.anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QD95q-000NBl-C1; Fri, 22 Apr 2011 07:39:50 +0200 References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8G4) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net> X-Mailer: iPhone Mail (8G4) From: =?utf-8?Q?Eirik_=C3=98verby?= Date: Fri, 22 Apr 2011 07:39:46 +0200 To: Mickey Harvey X-SA-Exim-Connect-IP: 84.38.152.7 X-SA-Exim-Mail-From: ltning@anduin.net X-SA-Exim-Scanned: No (on mail.anduin.net); SAEximRunCond expanded to false Cc: "freebsd-jail@freebsd.org" Subject: Re: limiting jail size 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: Fri, 22 Apr 2011 05:58:39 -0000 Hi, No problem. Use ZFS :) And dozens or even hundreds of jails are possible; limited only by RAM and k= ern.maxfiles .. /Eirik On 22. apr. 2011, at 06:31, Mickey Harvey wrote: > I was wondering if there is an easy way to limit the amount of hard drive > space a jail can take up. Say I have 20 jails on a system would this even b= e > possible? > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >=20 From owner-freebsd-jail@FreeBSD.ORG Fri Apr 22 16:34:41 2011 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 3C595106564A for ; Fri, 22 Apr 2011 16:34:41 +0000 (UTC) (envelope-from mh.unet@gmail.com) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 14CC38FC13 for ; Fri, 22 Apr 2011 16:34:40 +0000 (UTC) Received: by pxi6 with SMTP id 6so1700488pxi.17 for ; Fri, 22 Apr 2011 09:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=naiaNz2+vfhI3S3YcaNq2re4jlOlGEo77iczfCk5Lw0=; b=S50S7yRQH6+d+dIUI5ipHEXhiPosJUig6qwVEehhtvCKT65/gjRC3vkjBnKphdN6/P v1fzet2TCnARXdV24qMsD880Nmw2mT78uLlvafEGjc79eybvjQBLc5LXUeN5dsZ0T1QA OXkhnbvS3FSfNlOhhml7vKCRR3+jkZpzl9va4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oyM/pvcNCKMp0fq+Oy4MrDHyxTw2Udchtt01fYfg0V2LvAl2zxXD+mh+dC3h0KBjAq pkz7GuAZkcLfmxN9d23jCtvbYibhdg2MCQIqowASrtV8wZWs8/s7ftvsB1WwL44/FcWM n5n1qdwZs7UDqvgBrEodJNbopLtXwt2H6afIE= MIME-Version: 1.0 Received: by 10.142.63.6 with SMTP id l6mr776021wfa.178.1303490080642; Fri, 22 Apr 2011 09:34:40 -0700 (PDT) Received: by 10.143.18.4 with HTTP; Fri, 22 Apr 2011 09:34:40 -0700 (PDT) Date: Fri, 22 Apr 2011 09:34:40 -0700 Message-ID: From: Mickey Harvey To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: starting jails hangs during boot 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: Fri, 22 Apr 2011 16:34:41 -0000 When I boot up my host rc hangs at "starting jails:" indefinitely. If i Control^C during the hang boot continues as usual so I login ,run jls and the jail appears to have started correctly. I can login to the jail as usual using "jexec 1 sh". I'm using 8.2-RELEASE i386 on a VirtualBox VM. My rc is set up as follows: ifconfig_em0="DHCP" ifconfig_em0_alias0="10.0.2.16 netmask 255.255.255.255" jail_enable="YES" jail_list="www" jail_www_rootdir="/usr/local/ jails/www" jail_www_hostname="www" jail_www_ip="10.0.2.16" jail_www_devfs_enable="YES" From owner-freebsd-jail@FreeBSD.ORG Fri Apr 22 23:07:24 2011 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 37BC8106564A for ; Fri, 22 Apr 2011 23:07:24 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id F32B48FC13 for ; Fri, 22 Apr 2011 23:07:23 +0000 (UTC) Received: from SBHFISLREXT03 ([10.132.254.62]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p3MM5A2P007520; Fri, 22 Apr 2011 17:05:10 -0500 Received: from sbhfisltcgw02.FNFIS.COM (Not Verified[10.132.248.122]) by SBHFISLREXT03 with MailMarshal (v6, 5, 4, 7535) id ; Fri, 22 Apr 2011 17:05:37 -0500 Received: from sbhfisltcgw02.FNFIS.COM ([10.132.248.122]) by sbhfisltcgw02.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Fri, 22 Apr 2011 17:05:09 -0500 Received: from dtwin ([10.132.254.135]) by sbhfisltcgw02.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 22 Apr 2011 17:05:09 -0500 From: "Devin Teske" To: "FreeBSD Questions" , Date: Fri, 22 Apr 2011 15:04:48 -0700 Organization: Vicor, Inc. Message-ID: <04a401cc0139$4c86d450$e5947cf0$@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcwBL9vV2+e9CegnTTOTlVvrQpDEoQ== Content-Language: en-us X-OriginalArrivalTime: 22 Apr 2011 22:05:09.0664 (UTC) FILETIME=[5882EA00:01CC0139] Cc: "Teske, Devin" Subject: [UPDATE] jail_build(8) -- a dialog(1)-based utility for building jails from binary releases 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: Fri, 22 Apr 2011 23:07:24 -0000 Hi List, I'm happy to report that I've fixed a critical bug in my jail_build(8) utility: - Fixed bug that could cause binary distribution sets to not be unpacked if/when the inodes of the split tar archive pieces did not occur in sequential order. The result would be entire swaths of missing files in the jail destination directory. Problem was missing "-s" argument to force find(1) to produce lexicographically sorted results when building the list of tar pieces to be concatenated into a pipe to tar(1). You can get the updated script here: http://druidbsd.sf.net/download/jail_build.txt or http://druidbsd.sf.net/download/jail_build.gz or http://druidbsd.sf.net/ For those not familiar, my jail_build(8) script can be used to unpack a binary release (found at ftp://ftp-archive.freebsd.org/pub/FreeBSD/releases or ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases or if you have a CD/DVD-ROM from either Walnut Creek or FreeBSDMall) as a new jail to any desired destination directory. Creating a jail from a binary release is much faster than using the build(7) process. The only downside is that you may not have the absolutely latest code (unless you use the release(7) process to create your binary release from, say, HEAD). NOTE: This may not work for RELENG_9 binary releases as FreeBSD-9 is expected to introduce a new binary release format (shunning the split tarballs of yesteryear for a single tar-xv archive), however this has been tested with every binary release from FreeBSD-1.0 to FreeBSD-8.1 with success. Here's the patch to show what changed: --- jail_build.orig 2011-04-22 14:54:43.000000000 -0700 +++ jail_build 2011-04-22 14:06:56.000000000 -0700 @@ -2,11 +2,11 @@ # -*- tab-width: 4 -*- ;; Emacs # vi: set tabstop=4 :: Vi/ViM # -# Revision: 1.0 -# Last Modified: October 13th, 2010 +# Revision: 1.0.1 +# Last Modified: April 22nd, 2011 ############################################################ COPYRIGHT # -# (c)2010. Devin Teske. All Rights Reserved. +# (c)2010-2011. Devin Teske. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -247,7 +247,7 @@ dialog --title "$progname" \ # Get a list of viable repositories to build our jail from # repositories="$( - find -H "$JAIL_BUILD_REPOS" -type d -maxdepth 2 \ + find -s -H "$JAIL_BUILD_REPOS" -type d -maxdepth 2 \ -name '*-RELEASE' -o \ -name '*-STABLE' -o \ -name '*-CURRENT' \ @@ -490,7 +490,7 @@ esac # NOTE: Required for repositories that live on NFS (otherwise we could get # cached responses for `-e', `-f', `-r', and `-w' tests). # -find $repos > /dev/null 2>&1 +find -s $repos > /dev/null 2>&1 # # Determine which distribution-set(s) exist @@ -582,7 +582,7 @@ for dist in $dists_real; do -C "'$destdir'" ${quiet:+"> /dev/null 2>&1"} retval=$? elif [ -e "$repos/$dist.aa" ]; then - eval cat $( find "$repos/$dist_path" \ + eval cat $( find -s "$repos/$dist_path" \ -name "$dist_name.??" -exec echo "'{}'" ';' \ ) '|' tar --unlink -pzx${verbose:+v}f - -C "'$destdir'" \ ${quiet:+"> /dev/null 2>&1"} -- Cheers, Devin Teske -> FUN STUFF <- -----BEGIN GEEK CODE BLOCK----- Version 3.12 GAT/CS/B/CC/E/IT/MC/M/MU/P/S/TW d+(++) s: a- C+++@$ UB++++$ P++++@$ L++++$ E- W+++ N? o? K? w@ O M++$ V- PS+>++ PE@ Y+ PGP-> t(+) 5? X(+) R(-) tv+ b+>++ DI+ D+(++) G++ e>++++ h r+++ z+++ ------END GEEK CODE BLOCK------ Learn about the "Geek Code": http://www.geekcode.com/ -> LEGAL DISCLAIMER <- This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. -> END TRANSMISSION <- _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ From owner-freebsd-jail@FreeBSD.ORG Sat Apr 23 02:31:11 2011 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 4570F106566B for ; Sat, 23 Apr 2011 02:31:11 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id EE1148FC0A for ; Sat, 23 Apr 2011 02:31:10 +0000 (UTC) Received: by iwn33 with SMTP id 33so1148921iwn.13 for ; Fri, 22 Apr 2011 19:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=hksYMGPgyzzllf6uy9U0HCSWuCOAn/kFSWL+8hHixxQ=; b=fYNF7b5615DqdGdffMYAWbQM4pETPLkp7+/+j8am6UO546cAAsF3B3x6HEpP/vH922 WsvnM0xwIHu/6gBfzm+g6UvjRq/SDgg56c+a/qd+VHx/W5vUcGZxJPj7UVCz+9gzJST6 igRWaD/LYojir3KkFD7H7zDVE01x9H+7dF4z8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=rTTaGDOUfrFTj/82s+uOU0Rvq9CdKu2PLq773bWp2PCxWBQq5X0RZuPQQbDV7N4wqR PwIY+wMJqveyr9hhVYfSz15SRwBmmpHCkvLT+RJBmpi6hr6u0iCqn/mHpjVQ0Okfp3UG FRGapUjQG98olJWY6XptZYdwVTkYGLIQt75/M= Received: by 10.43.58.148 with SMTP id wk20mr2027835icb.242.1303525474606; Fri, 22 Apr 2011 19:24:34 -0700 (PDT) Received: from DataIX.net (adsl-99-190-84-116.dsl.klmzmi.sbcglobal.net [99.190.84.116]) by mx.google.com with ESMTPS id xe15sm1196414icb.20.2011.04.22.19.24.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Apr 2011 19:24:33 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p3N2OTNs036968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Apr 2011 22:24:30 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p3N2OSMc036967; Fri, 22 Apr 2011 22:24:28 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Fri, 22 Apr 2011 22:24:28 -0400 From: "J. Hellenthal" To: Mickey Harvey Message-ID: <20110423022428.GB30454@DataIX.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E Cc: freebsd-jail@freebsd.org Subject: Re: starting jails hangs during boot 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: Sat, 23 Apr 2011 02:31:11 -0000 --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 22, 2011 at 09:34:40AM -0700, Mickey Harvey wrote: >When I boot up my host rc hangs at "starting jails:" indefinitely. If i >Control^C during the hang boot continues as usual so I login ,run jls and >the jail appears to have started correctly. I can login to the jail as usu= al >using "jexec 1 sh". I'm using 8.2-RELEASE i386 on a VirtualBox VM. My rc is >set up as follows: > >ifconfig_em0=3D"DHCP" >ifconfig_em0_alias0=3D"10.0.2.16 netmask 255.255.255.255" >jail_enable=3D"YES" >jail_list=3D"www" >jail_www_rootdir=3D"/usr/local/ >jails/www" >jail_www_hostname=3D"www" >jail_www_ip=3D"10.0.2.16" >jail_www_devfs_enable=3D"YES" Take a look over the jail(8) manual page. There are some directions in there for services that you might consider disabling like sendmail etc. I would suspect that sendmail got stuck here and is waiting for its FQDN to resolve but wont because for whatever reason it can't find it. --=20 Regards, J. Hellenthal WWJD --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNsjhcAAoJEJBXh4mJ2FR+4p0H/00M93VBvn4sKHC6cP9ATRDU uQAZB2A7f5XEVTMAtV7kDZLM1IPbb3prLSld9JeVlcN7KLez/jMJfSCVLLxB2PRG nu2IPcpejADp7gLGolgAtaFSd1wPsiXcRC1NL2IMliGvuThfAOvQIBY8McUKaE6y Q2Hw452G/7xDiIxYa7L5D+bcPS2q1z8dmLo7yz8GRgMtPHbl9UfoBs3KLcLuUKJA eF5369jp/ihn0Bf26PPTXq+lDN58bSCW92/f47wkwpUPwjF2FBKLgK2LiyQwEu4b qX+DtLFVtjpQye8ueW+kUHgW1vg6BRtQvAg5+m/E740k1fUj+im9F4VncLR0Rww= =4fOU -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8-- From owner-freebsd-jail@FreeBSD.ORG Sat Apr 23 02:40:43 2011 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 EE32C1065674 for ; Sat, 23 Apr 2011 02:40:42 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A23EC8FC12 for ; Sat, 23 Apr 2011 02:40:42 +0000 (UTC) Received: by iwn33 with SMTP id 33so1152566iwn.13 for ; Fri, 22 Apr 2011 19:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=KSW+MFjDmKbUv6LFW8b8laxGbGrsOqfxVlUptiL06Z4=; b=CBINQPyj88HN8qUq8pb2Hvly6qN9LVroeMgxw+s6ZzfIIVVdLkNyWm0QL6Lfx/09CR tnvUBOUAja0utZ34GypMOEitVOshpp14IOlAruHEKY9mQslYx3BE3ek8zMlUVjd+B2IM zEo5/j6GB7RHp8y+TiYuC9n+ZEgGjG/cpBDpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=HD6tdyaatUaYq6sVy86JOj2LCu8Y0nTXRhJyp96Q/Pypv/LzUUf40DD9w/opnIDoXh Vq40wuZzW5Yb/Pnqb2pMzr17IuqJ0+e2rmnWEJwIlKjJUGwJh67E6C9sXMSDj1mu2xfM U9EQk98t5nx2g9r89jfw+SWFl6443ZgzlBWME= Received: by 10.42.156.2 with SMTP id x2mr2153939icw.155.1303525033882; Fri, 22 Apr 2011 19:17:13 -0700 (PDT) Received: from DataIX.net (adsl-99-190-84-116.dsl.klmzmi.sbcglobal.net [99.190.84.116]) by mx.google.com with ESMTPS id d9sm1329425ibb.53.2011.04.22.19.17.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Apr 2011 19:17:12 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p3N2H7xh036793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Apr 2011 22:17:07 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p3N2H6jU036792; Fri, 22 Apr 2011 22:17:06 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Fri, 22 Apr 2011 22:17:05 -0400 From: "J. Hellenthal" To: Eirik =?iso-8859-1?Q?=D8verby?= Message-ID: <20110423021705.GA30454@DataIX.net> References: <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net> X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E Cc: "freebsd-jail@freebsd.org" Subject: Re: limiting jail size 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: Sat, 23 Apr 2011 02:40:43 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 22, 2011 at 07:39:46AM +0200, Eirik =D8verby wrote: >Hi, > >No problem. Use ZFS :) >And dozens or even hundreds of jails are possible; limited only by RAM and= kern.maxfiles .. > >/Eirik > >On 22. apr. 2011, at 06:31, Mickey Harvey wrote: > >> I was wondering if there is an easy way to limit the amount of hard drive >> space a jail can take up. Say I have 20 jails on a system would this eve= n be >> possible? ZFS is not the only way to limit the jails there certainly is an abundance of other things you can work at doing to if your limited. For example: # mkdir /exports/jail1 # truncate -s 2g /exports/jail1.vnode # mdconfig -f /exports/jail1.vnode # newfs -O2 /dev/md0 # mount /dev/md0 /exports/jail1 # # And you now have a 2G portable jail without all the copy this here that there mess if you have to back it up just copy the file over to another jail to adjust for a second running jail and so on. This is slightly incomplete to a full setup but should be enough to paint the beginning of the picture for you. Happy Trees! --=20 Regards, J. Hellenthal WWJD --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNsjahAAoJEJBXh4mJ2FR+e0oH/RTnh//3cLz7GJTa7fEPmSPD uvUPkG8gSeDgPCYDowZFQ58Y3rfCKdynJT4kLRvNqy+LIYxHXM2XRRymglGsAUFk sSdNR/Op41vHNcQE7jjHHCfWKVvCzer5I/JuwcKGp8f9A++wiBlZkpHpu7Fwr+HM 09LJiUoy9qh/R+++tN/ofL2qJJOfFssS4oQ1Rj1MYMKrTUns94QtgpUkZ2tFdJ0d aIHJIzvM7oBowtIDJfjgXakvqVGe0hpw7/Ouh2yLS3eSjAA4JzLkOzgCcXsk2h3h 0uTvqxNTpgOWPS1aYT/lSfSckjMsJzf2c9UJA4PNYe8EFI52mPaWXc8P6Zc4Ifg= =TU7a -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- From owner-freebsd-jail@FreeBSD.ORG Sat Apr 23 06:49:22 2011 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 836671065693 for ; Sat, 23 Apr 2011 06:49:22 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from mail.anduin.net (mail.anduin.net [213.225.74.249]) by mx1.freebsd.org (Postfix) with ESMTP id 417A88FC0A for ; Sat, 23 Apr 2011 06:49:21 +0000 (UTC) Received: from [84.38.152.7] (helo=[192.168.2.119]) by mail.anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QDWeb-000PzR-HK; Sat, 23 Apr 2011 08:49:17 +0200 References: <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net> <20110423021705.GA30454@DataIX.net> In-Reply-To: <20110423021705.GA30454@DataIX.net> Mime-Version: 1.0 (iPhone Mail 8G4) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <3253BA18-4971-4CE1-BAFF-00CE9029EC1B@anduin.net> X-Mailer: iPhone Mail (8G4) From: =?utf-8?Q?Eirik_=C3=98verby?= Date: Sat, 23 Apr 2011 08:49:12 +0200 To: "J. Hellenthal" X-SA-Exim-Connect-IP: 84.38.152.7 X-SA-Exim-Mail-From: ltning@anduin.net X-SA-Exim-Scanned: No (on mail.anduin.net); SAEximRunCond expanded to false Cc: "freebsd-jail@freebsd.org" Subject: Re: limiting jail size 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: Sat, 23 Apr 2011 06:49:22 -0000 On 23. apr. 2011, at 04:17, "J. Hellenthal" wrote: > On Fri, Apr 22, 2011 at 07:39:46AM +0200, Eirik =C3=98verby wrote: >> Hi, >>=20 >> No problem. Use ZFS :) >> And dozens or even hundreds of jails are possible; limited only by RAM an= d kern.maxfiles .. >>=20 >> /Eirik >>=20 >> On 22. apr. 2011, at 06:31, Mickey Harvey wrote: >>=20 >>> I was wondering if there is an easy way to limit the amount of hard driv= e >>> space a jail can take up. Say I have 20 jails on a system would this eve= n be >>> possible? >=20 > ZFS is not the only way to limit the jails there certainly is an > abundance of other things you can work at doing to if your limited. >=20 > For example: > # mkdir /exports/jail1 > # truncate -s 2g /exports/jail1.vnode > # mdconfig -f /exports/jail1.vnode > # newfs -O2 /dev/md0 > # mount /dev/md0 /exports/jail1 > # > # >=20 > And you now have a 2G portable jail without all the copy this here that > there mess if you have to back it up just copy the file over to another > jail to adjust for a second running jail and so on. I used to do this, and still do for some static/embedded stuff. I changed to= ZFS though for most jails - that gets you a whole lot of other benefits lik= e quotas, compression, better snapshots, etc.=20 /Eirik > This is slightly incomplete to a full setup but should be enough to > paint the beginning of the picture for you. >=20 >=20 > Happy Trees! >=20 > --=20 >=20 > Regards, > J. Hellenthal > WWJD >=20 From owner-freebsd-jail@FreeBSD.ORG Sat Apr 23 08:09:18 2011 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 6653E1065670 for ; Sat, 23 Apr 2011 08:09:18 +0000 (UTC) (envelope-from spry@anarchy.in.the.ph) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2A0398FC0A for ; Sat, 23 Apr 2011 08:09:18 +0000 (UTC) Received: by iyj12 with SMTP id 12so1274294iyj.13 for ; Sat, 23 Apr 2011 01:09:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.140.34 with SMTP id g34mr1266968ibu.195.1303544736255; Sat, 23 Apr 2011 00:45:36 -0700 (PDT) Received: by 10.231.12.134 with HTTP; Sat, 23 Apr 2011 00:45:36 -0700 (PDT) In-Reply-To: <20110423022428.GB30454@DataIX.net> References: <20110423022428.GB30454@DataIX.net> Date: Sat, 23 Apr 2011 15:45:36 +0800 Message-ID: From: Mars G Miro To: Mickey Harvey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-jail@freebsd.org Subject: Re: starting jails hangs during boot 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: Sat, 23 Apr 2011 08:09:18 -0000 On Sat, Apr 23, 2011 at 10:24 AM, J. Hellenthal wrote: > On Fri, Apr 22, 2011 at 09:34:40AM -0700, Mickey Harvey wrote: >>When I boot up my host rc hangs at "starting jails:" indefinitely. If i >>Control^C during the hang boot continues as usual so I login ,run jls and >>the jail appears to have started correctly. I can login to the jail as us= ual >>using "jexec 1 sh". I'm using 8.2-RELEASE i386 on a VirtualBox VM. My rc = is >>set up as follows: >> Hi I've seen this and from my experience it could be any of these: 1) disabling dns on sshd (UseDNS no in /etc/ssh/sshd_config) 2) don't perform vi housekeeping (virecover_enable=3D"NO" in /etc/rc.con= f) 3) add your jail's fqdn to the jail's /etc/hosts Also take a look at your /var/log/jail_.log or the jail's var/log/* >>ifconfig_em0=3D"DHCP" >>ifconfig_em0_alias0=3D"10.0.2.16 netmask 255.255.255.255" >>jail_enable=3D"YES" >>jail_list=3D"www" >>jail_www_rootdir=3D"/usr/local/ >>jails/www" >>jail_www_hostname=3D"www" >>jail_www_ip=3D"10.0.2.16" >>jail_www_devfs_enable=3D"YES" > > Take a look over the jail(8) manual page. There are some directions in > there for services that you might consider disabling like sendmail etc. > > I would suspect that sendmail got stuck here and is waiting for its FQDN > to resolve but wont because for whatever reason it can't find it. > > -- > > =A0Regards, > =A0J. Hellenthal > =A0WWJD > > --=20 cheers mars -----