Net containers config and usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

  I'm new to linux containers and am interested in the network containers
support, but am having some troubles getting it working & could use some help.

  I saw that the code released to 2.6.26 was incompatible with sysfs, but
that 2.6.29 should have support for both.  

  So, I built:
    linux-2.6.29-rc1
    iproute2.2.6.25 plus the patch for containers support
    lxc-0.5.2

  I can now run lxc-unshare -n /bin/tcsh
  And, as expected, that process only sees loopback.

  But I'm having trouble assigning an interface over to that container.

  I tried doing:
     # echo <pid> > /sys/class/net/eth4/new_ns_pid

  But there are no entries in sysfs called new_ns_pid.

  I also tried doing ip link set eth4 newns <pid>
  but I get a netlink error:
    RTNETLINK answers: Invalid argument 


Any tips on what I might be doing wrong, or how to get this working?  Since
I can do the lxc-unshare, it seems like I'm part way there, but can't move
network devices between namespaces.

Thanks,
Chris
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux