Thank you for the reply. I may be not clear in the original question.

For example, in KVM, the system setup a virtual network device pair in
host, and added on end to bridge. So when an program is using the other
end, its communication will be bridged to actual hardware. And KVM exposes
a virtual network device to the guest and links it to "the other end". And
in guest, it is just a normal network device.

But in LXC, first of all, it does not vitualize hardware. The guest is just
a child process of LXC. Then, how does it make the guest using "the other
end"? The guest is just using general socket APIs.


On Tue, Nov 12, 2013 at 3:24 AM, Tony Su <ton...@su-networking.com> wrote:

>  In general,
> I've found that LXC networking is no different than any other type of
> virtualizaion.
> In fact,
> If you implement libvirt, the virtual networking objects (ie br,
> virbr, etc) once created can be utilized by any/all virtual networking
> technologies.
>
> So, for example I also have KVM installed on my machine and Guests
> using either KVM or LXC can use the same define Linux Bridge Devices.
> And, I've read that the same should be possible with Virtual Box and
> likely VMware.
>
> Generally speaking, it's preferable to bind Guest (Container)
> networking to a Linux Bridge Device instead of directly to hardware.
> Benefits are supposed to be superior ability to manage your virtual
> networking with options like assigned network names, their own ip
> address ranges, default gateway, NAT and maybe more
>
> Tony
>
> On Sun, Nov 3, 2013 at 6:19 PM, Magicloud Magiclouds
> <magicloud.magiclo...@gmail.com> wrote:
> > Thank you. Exactly what I want.
> >
> >
> > On Sun, Nov 3, 2013 at 12:03 AM, Marc Aymerich <glicer...@gmail.com>
> wrote:
> >>
> >>
> >>
> >>
> >> On Wed, Oct 30, 2013 at 4:51 AM, Magicloud Magiclouds
> >> <magicloud.magiclo...@gmail.com> wrote:
> >>>
> >>> Hi,
> >>>   I am curious how network is virtualized in container kind of
> >>> virtualization. But searching through google, I did not see a relavent
> >>> document.
> >>
> >>
> >>
> >> I believe you have to search by "network namespace"
> >> --
> >> Marc
> >
> >
> >
> >
> > --
> > 竹密岂妨流水过
> > 山高哪阻野云飞
> >
> > And for G+, please use magiclouds#gmail.com.
> >
> >
> ------------------------------------------------------------------------------
> > Android is increasing in popularity, but the open development platform
> that
> > developers love is also attractive to malware creators. Download this
> white
> > paper to learn more about secure code signing practices that can help
> keep
> > Android apps secure.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Lxc-users mailing list
> > Lxc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/lxc-users
> >
>



-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to