From owner-freebsd-jail@FreeBSD.ORG Mon Jan 30 23:00:43 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 4C1E21065670 for ; Mon, 30 Jan 2012 23:00:43 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from mail.modirum.com (mail.modirum.com [31.185.27.10]) by mx1.freebsd.org (Postfix) with ESMTP id DD0988FC19 for ; Mon, 30 Jan 2012 23:00:41 +0000 (UTC) Received: from [84.38.152.7] (helo=ranger.home.anduin.net) by mail.modirum.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1Rs0DI-000Fxh-NM; Mon, 30 Jan 2012 23:00:40 +0000 Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: =?iso-8859-1?Q?Eirik_=D8verby?= In-Reply-To: Date: Tue, 31 Jan 2012 00:00:39 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <863259E16B6C464DAD1E9DD10BB311540582EBFC@wmsexg01.corp.cellularatsea.com> To: "Bender, Chris" X-Mailer: Apple Mail (2.1251.1) X-SA-Authenticated: Yes X-SA-Exim-Connect-IP: 84.38.152.7 X-SA-Exim-Mail-From: ltning@anduin.net X-SA-Exim-Scanned: No (on mail.modirum.com); SAEximRunCond expanded to false 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: Mon, 30 Jan 2012 23:00:43 -0000 Last ditch before I hit the bed: zs1# . tools2 zs1# export jail_list=3D"tools2" zs1# /etc/rc.d/jail start tools2 If this fails, run 'bash' first and then retry. Good luck. /Eirik On Jan 30, 2012, at 23:55, Bender, Chris wrote: > There is no mention but I found a scipt that looks to execute such an = item in the home directory.=20 > zs1# more tools2 > export jail_tools2_hostname=3D"tools2" > export jail_tools2_ip=3D"172.19.4.41" > export jail_tools2_ip_multi0=3D"172.19.4.46" > export jail_tools2_ip_multi1=3D"172.19.4.47" > export jail_tools2_ip_multi2=3D"172.19.4.48" > export jail_tools2_ip_multi3=3D"135.209.138.15" > export jail_tools2_ip_multi4=3D"135.209.138.20" > export jail_tools2_rootdir=3D"/usr/jails/tools2" > export jail_tools2_exec_start=3D"/bin/sh /etc/rc" > export jail_tools2_mount_enable=3D"YES" > export jail_tools2_devfs_enable=3D"YES" > export jail_tools2_devfs_ruleset=3D"devfsrules_jail" > export jail_tools2_procfs_enable=3D"YES" > export jail_tools2_fdescfs_enable=3D"YES" > export jail_tools2_image=3D"" > export jail_tools2_imagetype=3D"" > export jail_tools2_attachparams=3D"" > export jail_tools2_attachblocking=3D"" > export jail_tools2_forceblocking=3D"" >=20 > This file is not in the jailed system files but outside the files = system.=20 > When I run it > I get=20 >=20 > 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 >=20 > ???Thanks >=20 >=20 >=20 > -----Original Message----- > From: Eirik =D8verby [mailto:ltning@anduin.net]=20 > Sent: Monday, January 30, 2012 5:49 PM > To: Bender, Chris > Cc: freebsd-jail@freebsd.org > Subject: Re: JAILS help >=20 > 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. >=20 > If there is no mention in /etc/rc.conf - how and where are the jails = defined? How do you know there are any? >=20 > /Eirik >=20 > On Jan 30, 2012, at 23:44, Bender, Chris wrote: >=20 >> zs1# uname -spr >>=20 >> FreeBSD 8.2-RELEASE-p2 amd64 >>=20 >>=20 >>=20 >> Can anyone assist me with a Jails issue. System restarted and JAILS = is=20 >> NOT running a mission critical system. >>=20 >>=20 >>=20 >> Willing to pay for help. >>=20 >> Thanks >>=20 >>=20 >>=20 >> Chris Bender >>=20 >> Network Engineer >>=20 >> AT&T / Wireless Maritime Services >>=20 >> 3088 N Commerce Parkway >>=20 >> Miramar, FL 33025 >>=20 >>=20 >>=20 >> Cell Phone: 954-235-5972 >>=20 >> Desk: 954-883-2453 >>=20 >>=20 >>=20 >> Chris.Bender@cellularatsea.com = >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> 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 >=20 > _______________________________________________ > 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