[Lxc-users] fedora template

Serge E. Hallyn serge.hallyn at ubuntu.com
Wed Mar 30 15:32:36 UTC 2011


Quoting Justin Cormack (justin at specialbusservice.com):
> 
> > > How do I make sure my container does have a private network namespace?
> > > Network namespaces are enabled on my system, but I cant find the
> > > documentation anywhere about how to turn this on when I create a
> > > container (only the clone flags documentation...)
> > > 
> > > Sorry to be dumb about this....
> > 
> > Not dumb, I'm not sure either - I suspect you just have to define a
> > lxc.network.type in your config file.  Can you send us the config
> > file for the container that didn't work?
> > 
> > -serge
> 
> This one didnt work...
> 
> lxc.utsname = vm1
> lxc.tty = 4
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = virbr0
> lxc.network.hwaddr = 08:00:27:83:C4:82
> lxc.network.ipv4 = 192.168.122.2
> lxc.network.name = eth0
> lxc.mount = /usr/lib/lxc/vm1/fstab
> lxc.rootfs = /usr/lib/lxc/vm1/rootfs

Odd.  Did you start this as root?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110330/dfc46375/attachment.pgp>


More information about the lxc-users mailing list