Table des matières

Déployer un container LXC sous CentOS 6

Installation des dépendances

yum install bridge-utils lxc lxc-templates debootstrap

Créer un bridge

Pour que les containers aient un accès réseau, il faudra en général créer un bridge sur l'hôte. Cette partie peut varier selon votre configuration.

Activer cgconfig

/etc/init.d/cgconfig start
chkconfig cgconfig on

Créer un invité

lxc-create -t debian -n www -- -r wheezy

Configurer le container pour un démarrage automatique

lxc-autostart -n www
chkconfig lxc on