LXC Configuration

How to preserve settings

Folder /fortipoc

When you trigger a backup of a LXC device, FortiPoC is archiving folder /fortipoc. The resulting tgz file is then part of the Device Definition associated to that device. So each time you launch the PoC, the tgz file is extracted for this device.

/fortipoc folder doesn’t exist by default. You have to create it: mkdir /fortipoc

File /fortipoc/postinst

Once folder /fortipoc is extracted, FortiPoC executes commands from file /fortipoc/postinst if present.

This file doesn’t exist by default. You have to create it yourself. It is NOT REQUIRED to set the EXECUTE BIT.

It’s a good way to install additional packages.

APT Proxy/Cache

Warning

This feature is broken, do not use.

To reduce the size of the fpoc file, FortiPoC now provides an APT proxy/cache. LXC devices are now automatically configured to use this proxy/cache.

When you run an apt-update or apt-get command, results from the Debian repository, or any configured repository is cached by FortiPoC. It allows you to run many time your PoC but only download Debian packages from internet once.

Furthermore FortiPoC tracks, for a running PoC, the list of files retrieved by APT, allowing it to store in an iso export only the Debian packages effectively used by your PoC.

To purge the cache see execute purge apt.