BSDStore
management and repository for FreeBSD jails

Jail create


Attention! I apologize, but it is automatic machine translation of the text. You can improve it if will send to me more correct version of the text or fix html pages via GITHUB repository.

Commands:

% cbsd jconstruct-tui

% cbsd jconstruct

% cbsd jcreate jconf=/path/to/conf.jconf
Description:

The jail is created according to configuration file created by cbsd jcreate jconf=path_to_cfg. For create configuration, use a command cbsd jconstruct (question-answer dialog mode), or dialog(1)-based interface: cbsd jconstruct-tui, or via WEB interface. When pkg.conf and repository configured properly, you can preset to new jail some packages. For safety reason recommendet to use the official FreeBSD pkg repo or build you own package repository. If you wish to use pkg repo, from which the jail of cbsd created, place into your /usr/local/etc/pkg.conf strings:

      PACKAGESITE:      http://dl.bsdstore.ru/freebsd/amd64/9.2/nox
(where 9.2 is your base version) and run: pkg update -f in shell

Please note: when repo unavailable, item pkglist in cbsd jconstruct-tui did not show anything.
Please note: multi-repo and and the ability to choose a specific repository from the list at the moment is missing, and will be used repository prescribed in pkg.conf of master host.

for create config via DIALOG:


% cbsd jconstruct-tui

If jconstruct-tui work correctly, on the exit the question for jail create will be asked. In a case positively answer, jcreate it will be executed on a new configuration automatically. Otherwise, the script will save configuration file (in $workdir/ftmp), on which it is possible to create a jail by hand.

Example (fill for jname, fqdn, ips fields + GO):


% cbsd jconstruct-tui




When repository configured properly, you can preset to new jail some packages. Use first character of name port for faster searching and hit space for mark it.




Required fields: a short (one word) the name of the jail. This name is used to identify the jail:


Required fields full (the domain) name of the cell. This name will be used as jail hostname:



Required fields: IP address of jail. May have a network prefix with a record like IP/prefix. To assign more than one IP address, use the editing of the file rc.conf jails described in Jail config



When you choose item GO, you are prompted to create the jail immediately by automatically running cbsd jcreate jconf=... Otherwise, you will be the path to the saved configuration to run cbsd jcreate by hand: