[Lxc-users] Redirect localhost requests to a Linux container

2013-07-31 Thread Robin Monjo
Hello, I'm struggling with port forwarding for requests coming from localhost. I run some linux container on my ubuntu host. Each one of them are running a webapp. To be able to access these webapps, I use iptables to forward port: sudo iptables -t nat -A PREROUTING -p tcp --dport port -j DNAT

Re: [Lxc-users] Redirect localhost requests to a Linux container

2013-07-31 Thread Robin Monjo
Yes absolutely sure since I can access it from the outside On Jul 31, 2013, at 11:15 AM, Shibashish shi...@gmail.com wrote: Are you sure your service is listening on localhost:port ? I'd use netstat to verify that first. ShiB. while ( ! ( succeed = try() ) ); On Wed, Jul 31, 2013 at

Re: [Lxc-users] Redirect localhost requests to a Linux container

2013-07-31 Thread Shibashish
Thats what my query is... how do u make sure? Your service seems to be LISTENing on ethX, but not on localhost. You can access it from outside means it is listening on your ethX interface. e.g. my smtp is listening on localhost [root@myhost ~]# netstat -an | grep 127.0.0.1 tcp0 0

Re: [Lxc-users] Redirect localhost requests to a Linux container

2013-07-31 Thread Robin Monjo
Ok, within the container it's listening on all interfaces (including lo) : tcp0 0 0.0.0.0:31000.0.0.0:* LISTEN So within the container I can curl 127.0.0.1:port However the host is not listening but that seems normal to me. The goal is to redirect packet

Re: [Lxc-users] Issues in using lxc in Fedora 14

2013-07-31 Thread Ajith Adapa
Hi, Thanks everyone for the time to reply back. My only reason for using FEDORA14 is I am really uncomfortable with systemd which got added into FEDORA15 and above. I initially started up with FEDORA17 and ended up with issues in systemd which needed some manual changes to make it work on

[Lxc-users] LXC Debian Wheezy Template

2013-07-31 Thread Danijel Vargek, Continum
Hi everybody, is there a way to use Debian-Wheezy containers in a clean, working way on lxc? My current setup involves a Debian-Wheezy Host with several Wheezy containers. As stated on the Debian wiki (wiki.debian.org/LXC), the original template ships with several problems (mainly missing ttys

Re: [Lxc-users] [Spam-Wahrscheinlichkeit=95]Re: Issues in using lxc in Fedora 14

2013-07-31 Thread Guido Jäkel
On 2013-07-31 12:15, Ajith Adapa wrote: Hi, Thanks everyone for the time to reply back. My only reason for using FEDORA14 is I am really uncomfortable with systemd which got added into FEDORA15 and above. I initially started up with FEDORA17 and ended up with issues in systemd which

[Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
hi All, I've seen a couple of times in the past like this: # lxc-ls --fancy --stopped --fancy-format name,state NAME STATE finance STOPPED hammer STOPPED ijc-cipool STOPPED jay STOPPED marvin4jsci STOPPED marvinci STOPPED svntest

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Jay Taylor
Out of curiosity, did you see it in the past before you you updated from the PPA today? On Wed, Jul 31, 2013 at 4:16 AM, Tamas Papp tom...@martos.bme.hu wrote: hi All, I've seen a couple of times in the past like this: # lxc-ls --fancy --stopped --fancy-format name,state NAME

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
On 07/31/2013 07:37 PM, Jay Taylor wrote: Out of curiosity, did you see it in the past before you you updated from the PPA today? No, I didn't. tamas -- Get your SQL database under version control now! Version

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread zoolook
On Wed, Jul 31, 2013 at 3:47 PM, Tamas Papp tom...@martos.bme.hu wrote: On 07/31/2013 07:37 PM, Jay Taylor wrote: Out of curiosity, did you see it in the past before you you updated from the PPA today? No, I didn't. I did but a simple reboot fixed it.

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
On 07/31/2013 09:44 PM, zoolook wrote: On Wed, Jul 31, 2013 at 3:47 PM, Tamas Papp tom...@martos.bme.hu wrote: On 07/31/2013 07:37 PM, Jay Taylor wrote: Out of curiosity, did you see it in the past before you you updated from the PPA today? No, I didn't. I did but a simple reboot fixed it.

[Lxc-users] Setting up server in lxc container for dummies

2013-07-31 Thread Dan Kegel
Hi, I've been happily using ubuntu's stock lxc (originally in 12.04, now in 13.04), and finally have an occasion to run a server inside a container. I'd like it to be visible from the outside. There are plenty of web pages about this, but they seem to assume that you've created the lxc config

Re: [Lxc-users] Setting up server in lxc container for dummies

2013-07-31 Thread Kevin LaTona
Hi Dan, I've just started working with LXC so this how I am doing it and maybe some one else can fill in any areas I've left out. If you are going to have a local LAN and outside WAN connection than you will need two ethernet cards ( 1 for each network ) Unless you already have a router

Re: [Lxc-users] Setting up server in lxc container for dummies

2013-07-31 Thread Kevin LaTona
On Jul 31, 2013, at 8:24 PM, Dan Kegel d...@kegel.com wrote: There are plenty of web pages about this, but they seem to assume that you've created the lxc config file by hand. I have never done that; I just use whatever lxc-create creates. I should also add that much of lxc files are