From owner-freebsd-jail@FreeBSD.ORG Tue Jan 31 03:01:09 2012 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 64AB2106566C for ; Tue, 31 Jan 2012 03:01:09 +0000 (UTC) (envelope-from prvs=13775e1059=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id D2A3B8FC16 for ; Tue, 31 Jan 2012 03:01:08 +0000 (UTC) X-Spam-Processed: mail1.multiplay.co.uk, Tue, 31 Jan 2012 02:50:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50017802256.msg for ; Tue, 31 Jan 2012 02:50:16 +0000 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=13775e1059=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-jail@freebsd.org Message-ID: <76BDF5E970BD41CEB103C02728B5C345@multiplay.co.uk> From: "Steven Hartland" To: "Bender, Chris" , =?iso-8859-1?Q?Eirik_=D8verby?= References: <863259E16B6C464DAD1E9DD10BB311540582EBFC@wmsexg01.corp.cellularatsea.com> Date: Tue, 31 Jan 2012 02:50:35 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: freebsd-jail@freebsd.org Subject: Re: JAILS help 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: Tue, 31 Jan 2012 03:01:09 -0000 You should just need to put those jail_ lines without the export in /etc/rc.conf e.g jail_tools2_hostname="tools2" jail_tools2_ip="172.19.4.41" Along with jail_enable="YES" and then you should be good to just run /etc/rc.d/jail start We also tend to add the following which enables you to configure which jails to automatically start on boot or with the above line when not specifying the jail as the second parameter. jail_list="tools2" Regards Steve ----- Original Message ----- From: "Bender, Chris" To: "Eirik Øverby" Cc: Sent: Monday, January 30, 2012 10:55 PM Subject: RE: JAILS help There is no mention but I found a scipt that looks to execute such an item in the home directory. zs1# more tools2 export jail_tools2_hostname="tools2" export jail_tools2_ip="172.19.4.41" export jail_tools2_ip_multi0="172.19.4.46" export jail_tools2_ip_multi1="172.19.4.47" export jail_tools2_ip_multi2="172.19.4.48" export jail_tools2_ip_multi3="135.209.138.15" export jail_tools2_ip_multi4="135.209.138.20" export jail_tools2_rootdir="/usr/jails/tools2" export jail_tools2_exec_start="/bin/sh /etc/rc" export jail_tools2_mount_enable="YES" export jail_tools2_devfs_enable="YES" export jail_tools2_devfs_ruleset="devfsrules_jail" export jail_tools2_procfs_enable="YES" export jail_tools2_fdescfs_enable="YES" export jail_tools2_image="" export jail_tools2_imagetype="" export jail_tools2_attachparams="" export jail_tools2_attachblocking="" export jail_tools2_forceblocking="" This file is not in the jailed system files but outside the files system. When I run it I get zs1# /etc/rc.d/jail start tools 2 Configuring jails:. Starting jails:/etc/rc.d/jail: ERROR: jail: No hostname has been defined for tools zs1# /etc/rc.d/jail -h start tools 2 /etc/rc.d/jail: unknown directive '-h'. Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar) zs1# /etc/rc.d/jail -h start tools2 /etc/rc.d/jail: unknown directive '-h'. Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar) zs1# /etc/rc.d/jail -h onestart tools2 /etc/rc.d/jail: unknown directive '-h'. Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar) zs1# /etc/rc.d/jail -h one start tools2 /etc/rc.d/jail: unknown directive '-h'. Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar) zs1# /etc/rc.d/jail -h one start tools2 ???Thanks -----Original Message----- From: Eirik Øverby [mailto:ltning@anduin.net] Sent: Monday, January 30, 2012 5:49 PM To: Bender, Chris Cc: freebsd-jail@freebsd.org Subject: Re: JAILS help Check /etc/rc.conf for any mention of jails. If there is, you should be able to start the jails using the /etc/rc.d/jail script, specifying the operation (start) and the jail name. If there is no mention in /etc/rc.conf - how and where are the jails defined? How do you know there are any? /Eirik On Jan 30, 2012, at 23:44, Bender, Chris wrote: > zs1# uname -spr > > FreeBSD 8.2-RELEASE-p2 amd64 > > > > Can anyone assist me with a Jails issue. System restarted and JAILS is > NOT running a mission critical system. > > > > Willing to pay for help. > > Thanks > > > > Chris Bender > > Network Engineer > > AT&T / Wireless Maritime Services > > 3088 N Commerce Parkway > > Miramar, FL 33025 > > > > Cell Phone: 954-235-5972 > > Desk: 954-883-2453 > > > > Chris.Bender@cellularatsea.com > > > > > > > > _______________________________________________ > 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" > _______________________________________________ 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" ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.