Re: [lxc-devel] did the new kernel 2.6.36 support a full sysfs namespace for tun/tap device?

2010-12-09 Thread
Thank you!
I've found the kernel 2.6.35.9 has the sysfs tagging feature which supports
to open a tap/tun devices directly in the VM.


2010/12/7 Daniel Lezcano daniel.lezc...@free.fr

 On 12/07/2010 11:10 AM, 贺鹏 wrote:

 Hi, all:
did the new kernel 2.6.36 support a full sysfs namespace for
 tun/tap
 device?



 I am not sure, but yes it should. sysfs per namespace is in place since
 2.6.35 AFAIR.




-- 
hepeng
ICT
--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


[lxc-devel] macvlan configuration

2010-12-09 Thread
Hi all:
   I use macvlan as the network configuration for my LXC VMs.

   Here is my configuration for LXC VMs:

   lxc.network.type = macvlan
   lxc.network.macvlan.mode = vepa
   lxc.network.flags = up
   lxc.network.link = tap0

   and I config 4 virtual eth in this VMs, each has the tap0 as its
network link.

   I use a tap device as the link for the macvlan, and I run a process
to read and write this tap device.
   when I write a ARP quest to the tap device, the macvlan didn't
broadcast the packet to  the network interface in the VM.

   I put some debug code in the macvlan.c and runs this test. and I find
the skb did not even enter the macvlan_handle_frame function.

   Could someone tell me is there any thing wrong in my config?

   thx~~



-- 

hepeng
ICT
--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


Re: [lxc-devel] macvlan configuration

2010-12-09 Thread
The problem is the tun/tap device need to use the write/read functions to
send pkt into the netstack
but I use the send/recv.

problem solved.

2010/12/9 贺鹏 xnhp0...@gmail.com


 Hi all:
I use macvlan as the network configuration for my LXC VMs.

Here is my configuration for LXC VMs:

lxc.network.type = macvlan
lxc.network.macvlan.mode = vepa
lxc.network.flags = up
lxc.network.link = tap0

and I config 4 virtual eth in this VMs, each has the tap0 as its
 network link.

I use a tap device as the link for the macvlan, and I run a process
 to read and write this tap device.
when I write a ARP quest to the tap device, the macvlan didn't
 broadcast the packet to  the network interface in the VM.

I put some debug code in the macvlan.c and runs this test. and I
 find the skb did not even enter the macvlan_handle_frame function.

Could someone tell me is there any thing wrong in my config?

thx~~



 --

 hepeng
 ICT




-- 
hepeng
ICT
--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


[lxc-devel] did the new kernel 2.6.36 support a full sysfs namespace for tun/tap device?

2010-12-07 Thread
Hi, all:
   did the new kernel 2.6.36 support a full sysfs namespace for tun/tap
device?

-- 
hepeng
ICT
--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


[lxc-devel] LXC migration

2010-12-02 Thread
Hi all,

Is there a way to live migration a LXC container to another physic machine?

thanks.

-- 
hepeng
ICT
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel