ArchBSD can be installed in a jail on a host FreeBSD very easily because very close. Indeed, where Debian GNU/kFreeBSD is a Debian using a FreeBSD kernel, ArchBSD can be summed up in the following equation: ArchBSD = FreeBSD + pacman. On ArchBSD there a rc.conf (with the daemon_enable = “YES”) and operation requires no Linux compatibility layer.
Creation of the jail
Unfortunately ArchBSD does not image all ready that would suffice to decompress. He’ll use pacman and tweak a bit to make it work.
# pkg install pacman
Then create a file /etc/Pacman.conf (in the current directory) with the following content:
SigLevel = Never
Server = ftp://ftp.archbsd.net/core/os/x86_64
Note: x86_64 is replaced by i686 if your system is 32-bit.
Create the directory of the jail as well as two directories necessary to pacman:
Proceed with the installation:
Pacman – Sy base.
Configuration of the jail
Edit your /etc/jail.conf to add your archbsd jail. Example:
# DEFAULT PARAMETERS
exec.start = “/ bin/sh/etc/rc”;
exec.stop = “/ bin/sh /etc/rc.shutdown”;
path = “/ usr/jails/$name”;
host.hostname = “$name”;
# INDIVIDUAL JAIL PARAMETERS
ip4.addr @description re0|192.168.0.13.
Then start the jail:
# service jail start
Enter the ArchBSD jail:
# jexec archbsd bash
Firstly, we have a concern with pacman. Indeed architecture detection does not work well (FreeBSD uses amd64 for 64 bit systems, while the deposits of ArchBSD x86_64), therefore the force. Edit the file /etc/pacman.conf and change as following:
Architecture = x86_64
Note: Of course if you are on of 32 bits, it is i686 that should be seized.
Then you need to initiate the pacman keyring with the following commands:
# pacman-key – init
# pacman – key – populate archbsd
And now ArchBSD is ready!