Ci-dessous, les différences entre deux révisions de la page.
Both sides previous revision Révision précédente | Dernière révision Both sides next revision | ||
si:lxc [2018/12/25 22:26] heraclide |
si:lxc [2018/12/25 22:27] heraclide |
||
---|---|---|---|
Ligne 15: | Ligne 15: | ||
lxc.start.auto = 1 | lxc.start.auto = 1 | ||
</code> | </code> | ||
- | - Pour se faciliter la vie, on va rendre le rootfs accessible depuis le host | + | - Pour se faciliter la vie, on va rendre le rootfs accessible depuis le host<code> |
- | <code> | + | |
echo "/dev/trollX-vg/lxc_NOM /var/lib/lxc/NOM/rootfs ext3 defaults 0 2" >> /etc/fstab | echo "/dev/trollX-vg/lxc_NOM /var/lib/lxc/NOM/rootfs ext3 defaults 0 2" >> /etc/fstab | ||
mount /var/lib/lxc/NOM/rootfs | mount /var/lib/lxc/NOM/rootfs | ||
- | </code> | + | </code> |
- Pour supprimer un container, ca devrait etre un truc genre<code> | - Pour supprimer un container, ca devrait etre un truc genre<code> | ||
sudo lxc-destroy -n NOM -B lvm --vgname=troll3-vg --lvname=lxc_NOM | sudo lxc-destroy -n NOM -B lvm --vgname=troll3-vg --lvname=lxc_NOM | ||
</code> | </code> |