[lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread bryn1u85 .
Hey everyone, I've been trying to configure Ubuntu LXC with 2 ip failover from OVH but i failed :( I've been reading many howto's and still nothing. I have found on this list same cool tutorial which has written by Olivier. There is a link: https://lists.linuxcontainers.org/pipermail/lxc-users/201

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
On 08/13/2014 09:47 AM, bryn1u85 . wrote: Hey everyone, I've been trying to configure Ubuntu LXC with 2 ip failover from OVH but i failed :( I've been reading many howto's and still nothing. I have found on this list same cool tutorial which has written by Olivier. There is a link: https://l

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread bryn1u85 .
Hey, what do u mean standard configuration ? 2014-08-13 9:58 GMT+02:00 Tamas Papp : > > On 08/13/2014 09:47 AM, bryn1u85 . wrote: > > Hey everyone, > > I've been trying to configure Ubuntu LXC with 2 ip failover from OVH but > i failed :( > I've been reading many howto's and still nothing. I h

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
On 08/13/2014 10:28 AM, bryn1u85 . wrote: Hey, what do u mean standard configuration ? man interfaces t ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread bryn1u85 .
Hey, I made some changes: root@ns321124:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto br0 iface

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
Try traceroute, show route command output and things like that. BTW you setup looks the same as before. tamas On 08/13/2014 12:32 PM, bryn1u85 . wrote: Hey, I made some changes: root@ns321124:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread bryn1u85 .
>From LXC nothing: root@Oksymoron:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface ^C >From Host: root@ns321124:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface default

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
Then make the changes, what I wrote and it will work. tamas On 08/13/2014 12:48 PM, bryn1u85 . wrote: From LXC nothing: root@Oksymoron:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C From Host: root@ns321124:~# route Kernel IP

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread bryn1u85 .
Im very very gratefully for your help and your dedicated time to me but i don;t understand what you mean exaclly. I tried everything from scratch. Did again from link as i sent, did from tutorials on the internet, did from forums. People have the sam problem as i have and can't find solutions. I've

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
Resending.. On 08/13/2014 02:27 PM, Tamas Papp wrote: host machine: auto br0 iface br0 inet static bridge_ports eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 address 94.23.237.216 netmask 255.255.255.0 network 94.23.237.0 broad

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Fajar A. Nugraha
On Wed, Aug 13, 2014 at 7:34 PM, Tamas Papp wrote: > Resending.. > > > On 08/13/2014 02:27 PM, Tamas Papp wrote: > > host machine: > > auto br0 > iface br0 inet static > bridge_ports eth0 > bridge_stp off > bridge_maxwait 0 > bridge_fd 0 > address 94.23.237.

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread m.byryn1u
W dniu 2014-08-13 16:57, Fajar A. Nugraha pisze: On Wed, Aug 13, 2014 at 7:34 PM, Tamas Papp wrote: Resending.. On 08/13/2014 02:27 PM, Tamas Papp wrote: host machine: auto br0 iface br0 inet static bridge_ports eth0 bridge_stp off bridge_maxwait 0 bridg

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Fajar A. Nugraha
On Wed, Aug 13, 2014 at 10:08 PM, m.byryn1u wrote: > > W dniu 2014-08-13 16:57, Fajar A. Nugraha pisze: > >> On Wed, Aug 13, 2014 at 7:34 PM, Tamas Papp wrote: >>> >>> Resending.. >>> >>> >>> On 08/13/2014 02:27 PM, Tamas Papp wrote: >>> >>> host machine: >>> >>> auto br0 >>> iface br0 inet stati

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread m.byryn1u
W dniu 2014-08-13 17:24, Fajar A. Nugraha pisze: On Wed, Aug 13, 2014 at 10:08 PM, m.byryn1u wrote: W dniu 2014-08-13 16:57, Fajar A. Nugraha pisze: On Wed, Aug 13, 2014 at 7:34 PM, Tamas Papp wrote: Resending.. On 08/13/2014 02:27 PM, Tamas Papp wrote: host machine: auto br0 iface br0

[lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
Hi, We are trying to have a VM and a container ping each other via a private bridge (not going through host) via macvlan interface. A bridge, lxcbr1 is already created and contains a link from VM, and we want to add container to it as well. To do that, on adding the foll. config to a container,

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Serge Hallyn
You can't do macvlan on a bridge. It has to be done on an real physical nic. Quoting Anjali Kulkarni (anj...@juniper.net): > > Hi, > > We are trying to have a VM and a container ping each other via a private > bridge (not going through host) via macvlan interface. A bridge, lxcbr1 is > already

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Tamas Papp
On 08/13/2014 04:57 PM, Fajar A. Nugraha wrote: 94.23.237.254 is not part of 91.121.239.0/24. I missed that, thanks. tamas ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Fajar A. Nugraha
On Wed, Aug 13, 2014 at 10:55 PM, m.byryn1u wrote: > 94.23.237.254 is not part of 91.121.239.0/24. > > @Bryn, how is the ROUTER (i.e. 94.23.237.254) setup? Is it configured > to route the additional IP (91.121.239.228) thru host's IP > (94.23.237.216), the way some dedicated server provider does (

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
Thanks - is there any way to do a private bridge between a VM and a container, so that they can communicate? What's the use case of using macvlan on a real nic? Anjali On 8/13/14 9:35 AM, "Serge Hallyn" wrote: >You can't do macvlan on a bridge. It has to be done on an real >physical nic. > >Qu

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread CDR
Do a real bridge on the host and use it on both the VM and the container. I do it all the time. On Wed, Aug 13, 2014 at 1:25 PM, Anjali Kulkarni wrote: > Thanks - is there any way to do a private bridge between a VM and a > container, so that they can communicate? What's the use case of using > m

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
Yes, but does this not go through the host? That is, the host's eth0(management) has to be in this bridge? I want to be able to create multiple such bridges, so I cannot add the eth0 of host to every such bridge.. This works already, I want a "private" bridge between VM and container, which does no

[lxc-users] Networking: virtual interface name

2014-08-13 Thread Garrett Gauthier
To keep accounting for network traffic for each container, I need to know the virtual interface name. The problem is that each time my container starts I get a new interface created on the host, something like vethCSR894, it is never the same. I have tried by using lxc.network.veth.pair b

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Michael H. Warfield
On Wed, 2014-08-13 at 17:39 +, Anjali Kulkarni wrote: > Yes, but does this not go through the host? That is, the host's > eth0(management) has to be in this bridge? No it does not. If you're using a NATed bridge, the hosts eth0 is NOT part of the bridge. > I want to be able to create > multi

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Serge Hallyn
Depends on what your VM looks like. You could simply create a private bridge br1, create a tap device, bridge it to br1, pass that tap device to kvm, then tell lxc to stick a veth endpoing onto br1. Use case of macvlan is to get faster networking. Quoting Anjali Kulkarni (anj...@juniper.net): >

Re: [lxc-users] Networking: virtual interface name

2014-08-13 Thread Tamas Papp
On 08/13/2014 07:31 PM, Garrett Gauthier wrote: To keep accounting for network traffic for each container, I need to know the virtual interface name. The problem is that each time my container starts I get a new interface created on the host, something like vethCSR894, it is never the same.

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread m.byryn1u
W dniu 2014-08-13 18:43, Fajar A. Nugraha pisze: On Wed, Aug 13, 2014 at 10:55 PM, m.byryn1u wrote: 94.23.237.254 is not part of 91.121.239.0/24. @Bryn, how is the ROUTER (i.e. 94.23.237.254) setup? Is it configured to route the additional IP (91.121.239.228) thru host's IP (94.23.237.216), t

Re: [lxc-users] Networking in Ubuntu with 2 ip failover in LXC

2014-08-13 Thread Fajar A. Nugraha
On Thu, Aug 14, 2014 at 3:52 AM, m.byryn1u wrote: > > I created first lxc by lxc-create -t ubuntu -n Oksymoron and works fine. > And now i want to add additional ip which i bought - 91.121.239.228 > > I tried fast add alias /sbin/ifconfig eth0:X IP.FAIL.OVER netmask > 255.255.255.255 broadcast IP

[lxc-users] How to bring up a container from rootfs tarball

2014-08-13 Thread Nobin Mathew
Hi All, Can you shed some info(or links) on bringing up a container, where I want to use some root filesystem,(which is basically tarball i.e. tar.gz). I don't want to use the apt/rpms. -- -Thanks Nobin ___ lxc-users mailing list lxc-users@lists.li

Re: [lxc-users] How to bring up a container from rootfs tarball

2014-08-13 Thread Fajar A. Nugraha
On Thu, Aug 14, 2014 at 12:13 PM, Nobin Mathew wrote: > Hi All, > > Can you shed some info(or links) on bringing up a container, where I want to > use some root filesystem,(which is basically tarball i.e. tar.gz). > > I don't want to use the apt/rpms. Have you looked at the download template? lx