lxc setup - acieroid/newsome GitHub Wiki

Détails d'un setup de lxc sous archlinux

Installations

yaourt -S lxc arch-install-scripts

Bridge

cp /etc/netctl/examples/bridge /etc/netctl/bridge changes:

BindsToInterfaces=()
IP=static
Address=192.168.100.1/24
FwdDelay=0

iptables -t nat -A POSTROUTING -o -j MASQUERADE sysctl net.ipv4.ip_forward=1

/etc/lxc/default.conf:

lxc.network.ipv4 = 192.168.100.2/24

Create container

lxc-create -n foo -t archlinux

Start and connect to container

sudo lxc-start -n foo

username: root (no password)

Network

todo.