[lxc-users] distrobuilder build-lxc, then how to start the container?

Christian Brauner christian.brauner at getenv.org
Fri Apr 6 09:07:16 UTC 2018


On Sat, Mar 31, 2018 at 02:50:00PM +0300, Mihamina RAKOTOMANDIMBY wrote:
> Hello,
> 
> Running LXC 3 on Archlinux, after having buit for LXC with "distrobuild
> build-lxc [...]": what is the next step to register the new container and
> start it?

So that's simply (this assumes LXC 3.0):

lxc-create <container-name> -t local -- --metadata meta.tar.xz --fstree rootfs.tar.xz

> Then how to setup its networking in order to attach it to a bridge? (I've
> previouly set up a bridge)

lxc.net.0.type  = veth
lxc.net.0.flags = up
lxc.net.0.link  = <bridge-name>
lxc.net.0.name  = eth0

Christian


More information about the lxc-users mailing list