Re: [lxc-users] sub-domains for different lxc bridge networks

2016-11-11 Thread Veselin Sinanov
This sound interesting, I can try it.

 

What actually I am trying to achieve, is to be able to create many 
sub-networks, each one of them contains many LXC containers. The containers 
within given sub-network will communicate only in that network, and each 
sub-network will need to have access point (an one single container) accessible 
from outside (now it is not restricted only to HTTP, but all possible protocols 
and ports).

 

What I am trying to achieve is some sort cloud infrastructure in my home. Maybe 
I need to check the Open Stack … may you advice.

 

Best

 

From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf 
Of Benoit GEORGELIN - Association Web4all
Sent: Friday, November 11, 2016 6:45 PM
To: lxc-users
Subject: Re: [lxc-users] sub-domains for different lxc bridge networks

 

Hello,

 

I have single static IP address from my ISP. I have registered DNS name 
(root-domain.com for example) mapped to that public IP. 

 

I have an router (Linksys E1700) and home network. 

 

I want to create specific sub-domain (sub1.root-domain.com – for example), 
register it on DNS provider, and point it to specific LXC container. 

And then I want to create second sub-domain (sub2.root-domain.com), register it 
on DNS provider, and mapped it to second LXC container.

 

Both containers are running inside host machine which is behind the router 
(Linksys E1700).

 

The router is accessible from public, because it got assigned public IP address 
from ISP, but how I should configure the rest of the LXC containers?

 

Please, advice.

 

-Veselin


___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

 

Hi , if your concern is only about HTTP(s) (and eventually some TCP) what you 
want to do is basically an infrastructure with 3 containers :

 

1- Reverse proxy HTTP like Haproxy)

2- Container for domain1

2- Container for domain2 

 

DNS for domain1 and domain2 goes to your public IP address 
HTTP(s) port goes to you Reverse Proxy Container (port forwarding) on your 
local network 

Rules match the domaine name on the reverse proxy to server the content on the 
right container 

 

LXC container should only be able to communicate with your local network 

___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] sub-domains for different lxc bridge networks

2016-11-11 Thread Benoit GEORGELIN - Association Web4all
> Hello,

> I have single static IP address from my ISP. I have registered DNS name
> (root-domain.com for example) mapped to that public IP.

> I have an router (Linksys E1700) and home network.

> I want to create specific sub-domain (sub1.root-domain.com – for example),
> register it on DNS provider, and point it to specific LXC container.

> And then I want to create second sub-domain (sub2.root-domain.com), register 
> it
> on DNS provider, and mapped it to second LXC container.

> Both containers are running inside host machine which is behind the router
> (Linksys E1700).

> The router is accessible from public, because it got assigned public IP 
> address
> from ISP, but how I should configure the rest of the LXC containers?

> Please, advice.

> -Veselin

> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
Hi , if your concern is only about HTTP(s) (and eventually some TCP) what you 
want to do is basically an infrastructure with 3 containers : 

1- Reverse proxy HTTP like Haproxy) 
2- Container for domain1 
2- Container for domain2 

DNS for domain1 and domain2 goes to your public IP address 
HTTP(s) port goes to you Reverse Proxy Container (port forwarding) on your 
local network 
Rules match the domaine name on the reverse proxy to server the content on the 
right container 

LXC container should only be able to communicate with your local network 
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] sub-domains for different lxc bridge networks

2016-11-11 Thread Veselin Sinanov
Hello,

 

I have single static IP address from my ISP. I have registered DNS name
(root-domain.com for example) mapped to that public IP. 

 

I have an router (Linksys E1700) and home network. 

 

I want to create specific sub-domain (sub1.root-domain.com - for example),
register it on DNS provider, and point it to specific LXC container. 

And then I want to create second sub-domain (sub2.root-domain.com), register
it on DNS provider, and mapped it to second LXC container.

 

Both containers are running inside host machine which is behind the router
(Linksys E1700).

 

The router is accessible from public, because it got assigned public IP
address from ISP, but how I should configure the rest of the LXC containers?

 

Please, advice.

 

-Veselin

___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] Strange apt update issue

2016-11-11 Thread tilak . waelde
Hey,

I've run into a strange issue with lxd containers.

When executing 'apt update' on my containers from the "ubuntu" image repo I 
get:

0% [Connecting to 10.246.151.1 (10.246.151.1)] [Connecting to 10.246.151.1 
(10.246.151.1)]

When using containers from "images" everything works fine, however.

Has anyone seen this before? I'm not sure where apt is getting this IP adress 
from. LXD is currently using 10.157.108.0/24 on my machine.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] Strange apt update issue

2016-11-11 Thread Tilak Waelde
Hey,

I've run into a strange issue with lxd containers.

When executing 'apt update' on my containers from the "ubuntu" image repo I 
get:

0% [Connecting to 10.246.151.1 (10.246.151.1)] [Connecting to 10.246.151.1 
(10.246.151.1)]

When using containers from "images" everything works fine, however.

Has anyone seen this before? I'm not sure where apt is getting this IP adress 
from. LXD is currently using 10.157.108.0/24 on my machine.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?

2016-11-11 Thread Ingo Baab

Boy, - grab a coffee :) and google while your servers are working..
here was a similar question.. 
https://lists.linuxcontainers.org/pipermail/lxc-users/2016-January/010899.html

-Ingo


Am 10.11.2016 um 22:46 schrieb Andriy Tovstik:

Yep!
nice idea, boys! moreover i can use -r switch with jq. But 
unfortunately your solution can't execute tasks in parallel ;)


чт, 10 нояб. 2016 г. в 19:33, Ingo Baab >:

Andriy, (meanwhile) you can help yourself with (doing that
sequentially)..

for container in `lxc list mysql-rep --format=json | jq .[].name |
tr -d '"'`; do lxc exec $container -- apt update; done

-Ingo


Am 10.11.2016 um 15:36 schrieb Andriy Tovstik:

Thanks, Stéphane, i'm very inattentive... Now it looks better.
Additional output format seems to be more comfortable than
additional tools. But it insignificantly.

And what do you think about the second question about ability to
run commands on multiplie containers simultaneously using regexps
as container name ? Is this feature looks useful?


чт, 10 нояб. 2016 г. в 15:25, Stéphane Graber
>:

stgraber@castiana:~$ lxc list --format=json | jq .[].name
"android"
"lxd"
"snapcraft"
"test"
"ubuntu-core"
"ubuntu-zesty"
"xen"
"yak"

On Thu, Nov 10, 2016 at 12:31:01PM +, Andriy Tovstik wrote:
> Hi, Janjaap Bos!
>
> I tried jq. But as i have already wrote, some useful fileds
like container
> name are missing in json output...
>
> чт, 10 нояб. 2016 г. в 14:27, Janjaap Bos
>:
>
> > You can pipe the json through jq.
> >
> > See: https://stedolan.github.io/jq/tutorial
> >
> >
> > 2016-11-10 11:17 GMT+01:00 Andriy Tovstik
>:
> >
> > Hi all!
> >
> > During LXD learning i encountered with lack of some features.
> >
> > The first one is "raw" output format of lxc list.
Currently lxc list
> > supports two formats: table and json. Unfortunately both
formats are
> > unusable for scripting.
> > It is very difficult to pass to script output likes:
> > # lxc list --format table -c n
> > ++
> > |NAME|
> > ++
> > | mysql-rep1 |
> > ++
> > | mysql-rep2 |
> > ++
> > | mysql-rep3 |
> > ++
> >
> > When i try to use json format i see that useful fields
like container name
> > are missing in output. May be it will be useful to
implement feature like:
> >
> > # lxc list --format raw -c n --no-header
> > mysql-rep1
> > mysql-rep2
> > mysql-rep3
> >
> > The second feature looks useful is ability run commands
on multiplie
> > containers simultaneously. For example:
> >
> > # lxc exec web-node* -- apt update
> >
> > What do you think about it?
> > --
> > WBR, Andriy Tovstik
> >
> > ___
> > lxc-users mailing list
> > lxc-users@lists.linuxcontainers.org

> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >
> >
> > ___
> > lxc-users mailing list
> > lxc-users@lists.linuxcontainers.org

> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> --
> WBR, Andriy Tovstik

> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org

> http://lists.linuxcontainers.org/listinfo/lxc-users


--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org

http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
WBR, Andriy Tovstik



___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org

http://lists.linuxcontainers.org/listinfo/lxc-users


___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org