Re: [lxc-users] monitoring containers using lxc-info (without being root)

2015-05-11 Thread Harald Dunkel
On 05/11/15 20:35, Stéphane Graber wrote: > > lxc-info -c doesn't read the container configuration, instead it > connects to the container's command socket and asks the container what's > the running configuration. > > That means that you need to run lxc-info as the same user which started > the

Re: [lxc-users] LXD vivid container images and systemd?

2015-05-11 Thread Serge Hallyn
Quoting Mark Constable (ma...@renta.net): > I seem to be reasonably comfortable with old school lxc (not the LXD lxc) > root containers with scripts to automatically set them up with nginx etc > but trying to do the same thing with LXD lxc is proving to be trickier. > Aside from not being able to a

Re: [lxc-users] How to run scripts when container is destroyed?

2015-05-11 Thread Serge Hallyn
Quoting �� (sungbae@samsung.com): > Hi, > > > > I��m making a template script for container. > > I want to install some packages when container is created and uninstall the > packages when container is destroyed. > > > > The former can be resolved simply by insert package command i

[lxc-users] How to run scripts when container is destroyed?

2015-05-11 Thread 유성배
Hi, I’m making a template script for container. I want to install some packages when container is created and uninstall the packages when container is destroyed. The former can be resolved simply by insert package command into template. How to resolve the latter? Is there no way to insert

Re: [lxc-users] problems or only warning (!?) with lxc-clone

2015-05-11 Thread Serge Hallyn
Quoting Yonsy Solis (yonsy@gmail.com): > > > On Fri, May 8, 2015 at 10:52 AM, Yonsy Solis > wrote: > > > > > >On Fri, May 8, 2015 at 10:32 AM, Serge Hallyn > > wrote: > > > >>what does 'ls -l /usr/bin/newuidmap /usr/bin/newgidmap' show? > > > >mode :: ~ » ls -l /usr/bin/newuidmap /usr/bin/ne

Re: [lxc-users] Ubuntu 8.04 in LXC on Ubuntu 14.04

2015-05-11 Thread Serge Hallyn
Quoting Miroslav Lednicky (miroslav.ledni...@fnusa.cz): > Hello, > > I have very old application for Ubuntu 8.04. > > I try it run in LXC with Ubuntu 8.04. But Ubuntu 8.04 don't run > on 14.04 in container. > > I have this error on the console: > > init: string.c:143: Assertion failed in nih_st

Re: [lxc-users] Do you have LXD working with Ubuntu 15.04 server?

2015-05-11 Thread Serge Hallyn
Quoting Kevin LaTona (li...@studiosola.com): > > What is unclear to me is when LXD is installed on a new server. > > Does it create the necessary upstart script to run on the next boot? > > Or does LXD need to be ( or prefered to be ) manually run after a server > boot? It's supposed to be,

Re: [lxc-users] Debian stable not present in the image list of lxc-template-download

2015-05-11 Thread Jean-François Gigand
Yes! Same here. Thanks for the answer. Indeed, dist-upgrading a Debian container from wheezy to jessie has always broken the container, using LXC 1.0.7. Glad to know it is possible after I upgrade my Ubuntu host from trusty to utopic or vivid where LXC 1.1 is available. (I mainly use Ubuntu rath

Re: [lxc-users] tmux in attached containers?

2015-05-11 Thread Casey Marshall
On Mon, 11 May 2015 20:19:14 + flor...@peterschmitt.fr wrote: > 11 mai 2015 20:40 "Casey Marshall" a écrit: > > Hi, > > How can I get tmux working in an attached LXC container? > > > > I've tried using tmux in the shell with "lxc-attach", as well as with "lxc > > exec ... /bin/bash" with >

Re: [lxc-users] tmux in attached containers?

2015-05-11 Thread S . Çağlar Onur
On Mon, May 11, 2015 at 4:19 PM, wrote: > 11 mai 2015 20:40 "Casey Marshall" a écrit: >> Hi, >> How can I get tmux working in an attached LXC container? >> >> I've tried using tmux in the shell with "lxc-attach", as well as with "lxc >> exec ... /bin/bash" with >> the LXD client. It just exits

Re: [lxc-users] tmux in attached containers?

2015-05-11 Thread florent
11 mai 2015 20:40 "Casey Marshall" a écrit: > Hi, > How can I get tmux working in an attached LXC container? > > I've tried using tmux in the shell with "lxc-attach", as well as with "lxc > exec ... /bin/bash" with > the LXD client. It just exits rc=1. > > I could install openssh-server inside

Re: [lxc-users] tmux in attached containers?

2015-05-11 Thread florent
11 mai 2015 20:40 "Casey Marshall" a écrit: > Hi, > How can I get tmux working in an attached LXC container? > > I've tried using tmux in the shell with "lxc-attach", as well as with "lxc > exec ... /bin/bash" with > the LXD client. It just exits rc=1. > > I could install openssh-server inside

[lxc-users] tmux in attached containers?

2015-05-11 Thread Casey Marshall
Hi, How can I get tmux working in an attached LXC container? I've tried using tmux in the shell with "lxc-attach", as well as with "lxc exec ... /bin/bash" with the LXD client. It just exits rc=1. I could install openssh-server inside the container, import my keys, etc. but that seems like unne

Re: [lxc-users] monitoring containers using lxc-info (without being root)

2015-05-11 Thread Stéphane Graber
On Mon, May 11, 2015 at 08:11:16PM +0200, Harald Dunkel wrote: > H folks, > > I would like to monitor my containers using lxc-info (lxc 1.1.2) > run by an unprivileged user. Problem: > > % lxc-info -P /var/lib/lxc -n sample -c lxc.start.auto > Insufficent privileges to control sample > % ls -al /

Re: [lxc-users] monitoring containers using lxc-info (without being root)

2015-05-11 Thread Yonsy Solis
On Mon, May 11, 2015 at 1:11 PM, Harald Dunkel wrote: H folks, I would like to monitor my containers using lxc-info (lxc 1.1.2) run by an unprivileged user. Problem: % lxc-info -P /var/lib/lxc -n sample -c lxc.start.auto Insufficent privileges to control sample % ls -al /var/lib/lxc/sample

[lxc-users] monitoring containers using lxc-info (without being root)

2015-05-11 Thread Harald Dunkel
H folks, I would like to monitor my containers using lxc-info (lxc 1.1.2) run by an unprivileged user. Problem: % lxc-info -P /var/lib/lxc -n sample -c lxc.start.auto Insufficent privileges to control sample % ls -al /var/lib/lxc/sample total 16 drwxr-xr-x 3 root root 4096 May 11 19:40 . drwxr-

Re: [lxc-users] Determining the best way for Juju to interact with lxd

2015-05-11 Thread Tycho Andersen
On Mon, May 11, 2015 at 01:24:57PM +1200, Tim Penhey wrote: > It is definitely an option. I was wanting to ask if it was the best > option. It seems that the lxc CLI tool already wraps the REST api with > a Go client. I was thinking Juju could use that rather than the raw > REST. I don't see why