Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 02:50:35 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Bender, Chris" <chris_bender@cellularatsea.com>, =?iso-8859-1?Q?Eirik_=D8verby?= <ltning@anduin.net>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: JAILS help
Message-ID:  <76BDF5E970BD41CEB103C02728B5C345@multiplay.co.uk>
References:  <863259E16B6C464DAD1E9DD10BB311540582EBFC@wmsexg01.corp.cellularatsea.com><A0836B24-745D-4C9F-8545-50273F094CD1@anduin.net> <assp.03761011da.863259E16B6C464DAD1E9DD10BB311540582EC02@wmsexg01.corp.cellularatsea.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <chris_bender@cellularatsea.com>
To: "Eirik Øverby" <ltning@anduin.net>
Cc: <freebsd-jail@freebsd.org>
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 <mailto: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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76BDF5E970BD41CEB103C02728B5C345>