[lxc-users] Is it possible nested LXC-libvirt containers?
Daniel P. Berrange
berrange at redhat.com
Wed Apr 30 13:06:34 UTC 2014
On Wed, Apr 30, 2014 at 09:01:56AM -0400, CDR wrote:
> I need to provide NAT networking to my LXC containers, much like using
> virbr0 from libvirt, except that nesting a libvirt-lxc container does
> not work. So if I nest a pure LXC container, which is supported, how
> would you create a bridge that would nat-forward the packets to the
> network?
> I am sure it is possible, but it escapes me.
Well you could replicate what libvirt does with virbr0 - which is basically
just create a bare bridge device and setup iptables rules for forwarding
and masquerading. Or you could just tell lxc tools to connect the container
to the virbr0 device that libvirt already provided.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the lxc-users
mailing list