The previous section described how to find, install, and configure existing FreeNAS® PBIs from the graphical administrative interface.
The Jails icon in the GUI allows users who are comfortable using the command line to have more control over software installation.
A FreeBSD jail provides light-weight, operating system-level virtualization which essentially allows the creation of an independent FreeBSD operating system running on the same hardware. This means that any software and configurations within a jail are isolated from both the FreeNAS® operating system and any other jails running on that system. When a FreeNAS® jail is created, a VIMAGE option can be selected which will provide that jail with its own, independent networking stack. This allows the jail to do its own IP broadcasting, which is required by some applications.
The following types of jails can be created:
1. Plugin jail: this type of jail supports the installation of FreeNAS® plugins, also known as PBIs. PBIs were created by the PC-BSD project to provide a graphical installation wrapper to software which has been ported to FreeBSD. FreeNAS® PBIs extend this functionality by providing a graphical front-end to the application's configuration file and by allowing the service to be started and stopped within the FreeNAS® GUI. In addition to FreeNAS® plugins, you can also install the following types of software within a plugin jail: PC-BSD PBIs, FreeBSD ports, traditional FreeBSD packages, and FreeBSD pkgng packages. However, only FreeNAS® plugins can be managed from the GUI as the other types of software are managed from the command line of the jail. Further, the other types of jails do not support the ability to install FreeNAS® plugins. If you plan to install FreeNAS® plugins, use a plugin jail.
2. Port jail: this type of jail supports the installation of PC-BSD PBIs, FreeBSD ports, traditional FreeBSD packages, and FreeBSD pkgng packages. It does not support the installation of FreeNAS® plugins, meaning that any software installed in this type of jail will be managed from the command line of the jail.
3. Standard jail: this type of jail is functionally the same as a port jail. A distinction is made for those users who prefer to separate network servers, such as DHCP or DNS servers, from other installed software.
4. Linux jail:
Table 10a summarizes the type of software which can be installed into each type of jail. Click the name of the type of software for instructions on how to install that type of software.
NOTE: the software which can be installed into a Linux jail is limited to the command line package management tool provided by that Linux distribution. If you install software into a Linux jail, install the 32-bit version of the software.
Table 10a: What Type of Software can be Installed Into a Jail?
|Type of Jail||FreeNAS® PBI||PC-BSD PBI||FreeBSD pkgng package||FreeBSD port|
|Port||no||no, unless vanilla is unchecked during jail creation||no, unless vanilla is unchecked during jail creation||yes|
|Standard||no||no, unless vanilla is unchecked during jail creation||no, unless vanilla is unchecked during jail creation||yes|
The ability to create multiple jails and multiple types of jails offers great flexibility and application separation to the administrator. For example, one could create a separate plugin jail for each FreeNAS® plugin, a separate port jail for each application that is not available as a FreeNAS® plugin, and a separate standard jail for each installed network server. Alternately, one has the ability to create one jail and to mix and match how the software is installed into that jail.
The rest of this section describes the following: