Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread Sergiusz Pawlowicz
When you decided to make your worktable better organised and safer, you should realise it requires more work to maintain it as well. Learn and deploy some automation tools, for example I'm very happy with ansible, to be precise: Debops package of ansible playbooks: https://debops.org/ cheers, Serg

Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread Serge E. Hallyn
Personally I run each service/application in a separate container, in a separate uid range, in a full distrubution (various Ubuntu flavors). All automatically updated, as otherwise I'd certainly get in trouble. With iptables routing incoming ports. So sounds like you're doing basically the same

Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread Simos Xenitellis
On Thu, Mar 30, 2017 at 11:20 PM, John Lewis wrote: > It is traditional LXC because LXD wasn't out when I set it up > originally. I won't build the packages for LXD if I am not even using > it properly. > > I direct incoming connections using iptables with both the the host and > the virtual rout

Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread Scott Lopez
Is it functioning for you? Yes? Then it isn't wrong. In *nix there are a dozen ways to skin a cat, and that's before you start scripting in your language of choice. Is it the most efficient use? Maybe not. Running a single application in a LXC container? Maybe you'd be better off with Docker or Rk

Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread John Lewis
It is traditional LXC because LXD wasn't out when I set it up originally. I won't build the packages for LXD if I am not even using it properly. I direct incoming connections using iptables with both the the host and the virtual router. I am extremely confident about moving my installation. I wi

Re: [lxc-users] Am I misusing LXCs?

2017-03-30 Thread Simos Xenitellis
On Thu, Mar 30, 2017 at 8:53 PM, John Lewis wrote: > I build an LXC network on my VPS to separate all of my personal service > from each other how similar they are to each other while not having to > buy more VPS that I don't utilize intensely. Both my containers and my > host are running Debian 8

[lxc-users] Am I misusing LXCs?

2017-03-30 Thread John Lewis
I build an LXC network on my VPS to separate all of my personal service from each other how similar they are to each other while not having to buy more VPS that I don't utilize intensely. Both my containers and my host are running Debian 8. I made a container for Email communications (Email and PB

Re: [lxc-users] nfs server in [unprivileged] container?

2017-03-30 Thread Marat Khalili
> To clarify, in your setup, is the container using zfs? are you creating a > dataset for /nfs and exporting that to the container? In my setup it is a btrfs subvolume that's bind-mounted to nfs container and then shared via nfs. It contains users' home directories so the load is not particular

[lxc-users] Making sure that you can actually "dig mycontainer.lxd" from the server, etc.

2017-03-30 Thread Simos Xenitellis
Hi All, I just figured out that it is possible, and available by default, to use the domain names of the LXD containers FROM the server. It has been quite confusing, and could not get it working, so I am documenting this here. Let's get a list of the containers and try to access by DNS the hostna

Re: [lxc-users] Image "ubuntu:x" not found (no 16.04 images on "ubuntu:")

2017-03-30 Thread Simos Xenitellis
First of all, now it's working as Stéphane wrote earlier. On Thu, Mar 30, 2017 at 4:55 PM, Sergiusz Pawlowicz wrote: > On Thu, Mar 30, 2017 at 5:34 PM, Simos Xenitellis > wrote: >> Hi All, >> >> I just tried "lxc image list ubuntu:" and I do not see any 16.04 images. >> (i.e. lxc launch ubuntu:x

Re: [lxc-users] nfs server in [unprivileged] container?

2017-03-30 Thread Spike
thanks to both of you for chiming in. Maybe gluster got better, by my past experiences with it weren't particularly good so I'm inclined to stay away from it until at least I can find some solid demonstration of it working on ubuntu. @Marat, re kernel code, yes, that was my conclusion also per thr

Re: [lxc-users] Image "ubuntu:x" not found (no 16.04 images on "ubuntu:")

2017-03-30 Thread Stéphane Graber
On Thu, Mar 30, 2017 at 08:55:23PM +0700, Sergiusz Pawlowicz wrote: > On Thu, Mar 30, 2017 at 5:34 PM, Simos Xenitellis > wrote: > > Hi All, > > > > I just tried "lxc image list ubuntu:" and I do not see any 16.04 images. > > (i.e. lxc launch ubuntu:x mycontainer fails). > > > > I attach the out

Re: [lxc-users] subuids and subgid range with multiple LXC containers

2017-03-30 Thread Joshua Schaeffer
On Tue, Mar 28, 2017 at 7:07 PM, Serge E. Hallyn wrote: > One thing I've always thought would be useful, but not had the time to > pursue, woudl be to have a concept of 'clients' or somesuch, where each > client can get one or more unique ranges. They can then use those > ranges however they wan

Re: [lxc-users] Image "ubuntu:x" not found (no 16.04 images on "ubuntu:")

2017-03-30 Thread Sergiusz Pawlowicz
On Thu, Mar 30, 2017 at 5:34 PM, Simos Xenitellis wrote: > Hi All, > > I just tried "lxc image list ubuntu:" and I do not see any 16.04 images. > (i.e. lxc launch ubuntu:x mycontainer fails). > > I attach the output of "lxc image list ubuntu:". > > I suppose it is a temporary issue, just logging

Re: [lxc-users] user 'ubuntu' does not exist within LXD container

2017-03-30 Thread Simos Xenitellis
On Thu, Mar 23, 2017 at 3:39 PM, Francesco Longo wrote: > Thanks for your reply. It seems that if I put a sleep after container > creation _sometimes_ it works. Probably, I have to play with the delay. > > Is there a correct way to do that? I mean, is there a way to execute a set > of commands ins

[lxc-users] Image "ubuntu:x" not found (no 16.04 images on "ubuntu:")

2017-03-30 Thread Simos Xenitellis
Hi All, I just tried "lxc image list ubuntu:" and I do not see any 16.04 images. (i.e. lxc launch ubuntu:x mycontainer fails). I attach the output of "lxc image list ubuntu:". I suppose it is a temporary issue, just logging it here. Simos image-list-no-x.txt.gz Description: GNU Zip compress

Re: [lxc-users] nfs server in [unprivileged] container?

2017-03-30 Thread Fajar A. Nugraha
On Thu, Mar 30, 2017 at 2:19 PM, Marat Khalili wrote: > https://launchpad.net/~gluster/+archive/ubuntu/nfs-ganesha > > > Disclamer: I haven't tested it. > > Yes, I found it too, but its production readiness is unclear to me. > Redhat

Re: [lxc-users] nfs server in [unprivileged] container?

2017-03-30 Thread Marat Khalili
https://launchpad.net/~gluster/+archive/ubuntu/nfs-ganesha Disclamer: I haven't tested it. Yes, I found it too, but its production readiness is unclear to me. Also, it is not present in stock Ubuntu repositories. Would be glad to h