Re: [lxc-users] library start() API from process name having spaces

2018-07-05 Thread Tycho Andersen
On Thu, Jul 05, 2018 at 03:42:55PM +0200, Christian Brauner wrote: > On Wed, Jul 04, 2018 at 03:23:19PM -0400, Chaetoo3 wrote: > > Hi! > > > > I try to use the liblxc start() API from my process and it worked, but > > I notice it would not set the process name for the container process > > as it w

Re: [lxc-users] How to apply commands in howtos - macvlan and disk passthrough

2016-12-20 Thread Tycho Andersen
Hi John, On Tue, Dec 20, 2016 at 10:39:07PM +0100, john.gub...@web.de wrote: >Hello, > >I have a directory on my host system and want to create several containers >with the same users inside. I would like to pass the directory through to >each container and allow the users to

Re: [lxc-users] do_dump: 866 dump failed with 1

2016-09-08 Thread Tycho Andersen
On Wed, Aug 17, 2016 at 05:09:34PM -0400, Connor Zanin wrote: > Hi all, > > Environment: > ubuntu server 16.04 > kernel 4.4 > both lxc and criu packages downloaded from ubuntu repos > > I am trying to checkpoint a privileged container. After many hours of > banging my head against the internet, I

Re: [lxc-users] lxd in Debian

2016-08-23 Thread Tycho Andersen
On Tue, Aug 23, 2016 at 08:40:33PM +, P. Lowe wrote: > For socket activation of the LXD daemon or socket activation of a container? For socket activation of the LXD daemon, https://github.com/lxc/lxd/blob/master/lxd/daemon.go#L866 Tycho > -P. Lowe > > Quoting Tycho Andersen :

Re: [lxc-users] lxd in Debian

2016-08-23 Thread Tycho Andersen
On Tue, Aug 23, 2016 at 04:56:43PM +, P. Lowe wrote: > > Why on earth does lxd depend on "golang-github-coreos-go-systemd-dev"? > > I'm also wondering, why should lxd even depend on systemd? LXD has the capability to be socket activated, this library implements a go API for handling the case

Re: [lxc-users] Unable to delete lxc container

2016-08-16 Thread Tycho Andersen
On Tue, Aug 16, 2016 at 07:05:44AM +0800, conandor wrote: > I try to delete a container "$ lxc delete test” but it return "errors: No > known data errors”. Any idea what I missing here? I’m on Ubuntu 14.04 server. Can you copy and paste the exact error message? What is the output of `lxc info`?

Re: [lxc-users] lxc stateful snapshot fails with "Pre dump script failed with 32512"

2016-08-04 Thread Tycho Andersen
Hi Alex, On Wed, Aug 03, 2016 at 05:44:56PM -0400, Alex Kedrowitsch wrote: > Hi All, > > I'm new to the Linux container scene and am having issues with making > stateful container snapshots. My ultimate goal is to get "lxc move" to > work, but that fails with the same error as when I try "lxc sna

Re: [lxc-users] undefined symbol: current_config on custom-compiled lxc2

2016-08-01 Thread Tycho Andersen
On Mon, Jul 18, 2016 at 04:17:48PM +0300, Nikolay Borisov wrote: > Hello List, > > > So I tried compiling boh lxc 2.0 from github as well as the 2.0.3 stable > package from the web page. Everything went fine: > > > Environment: > - compiler: gcc > - distribution: c

Re: [lxc-users] LXD lxc start

2016-08-01 Thread Tycho Andersen
On Sat, Jul 30, 2016 at 05:12:46PM +0200, Goran Brkuljan wrote: > Hi, > > I am suddenly missing lxdbr0, and I am getting errror while starting lxc > container. What's the output of `journalctl -u lxd-bridge`? Tycho > lxc start app01 > error: Error calling 'lxd forkstart app01 /var/lib/lxd/conta

Re: [lxc-users] how to determine if in LXD

2016-08-01 Thread Tycho Andersen
On Mon, Aug 01, 2016 at 04:01:00PM +0200, tapczan wrote: > Hello > > There is an easy way to determine if I'm in LXC, content of file > /proc/self/cgroup shows path with /lxc, eg: > > 2:cpu:/lxc/host > > However in LXD this rule is no longer valid: > > 2:cpu:/ > > It looks like real host from

Re: [lxc-users] What is the state of the art for migrating unprivilegied containers ?

2016-07-19 Thread Tycho Andersen
On Mon, Jun 27, 2016 at 09:24:40AM +0200, Pierre Couderc wrote: > I understand that live migration is not stable. > I have seen a note to migrate from one user to another user inside a host : > http://unix.stackexchange.com/questions/156477/migrate-an-unprivileged-lxc-container-between-users > But

Re: [lxc-users] [lxd] autofs

2016-07-04 Thread Tycho Andersen
service and my > > container, but that did not changed anything. > > > > In fact, I am not able to mount any nfs shared: > > > > > > mount -t nfs nas-0-2:/export/bio /tmp/bio > > mount.nfs: access denied by server while mounting nas-0-2:/export/b

Re: [lxc-users] [lxd] autofs

2016-07-01 Thread Tycho Andersen
On Fri, Jul 01, 2016 at 04:15:57PM +0200, Rémy Dernat wrote: > Hi, > > I tried to install basically autofs in the container and mount directories > with automount, but as a newbie, everything failed ;) > > automount -f --debug > automount: test mount forbidden or incorrect kernel protocol version

Re: [lxc-users] Live migration mkdtemp failure

2016-06-23 Thread Tycho Andersen
t; -1 > (14.500840) Error (cr-dump.c:1600): Dumping FAILED. > root@olympia:~# > > Regards, > > Jake > > > On Wed, Jun 22, 2016 at 8:04 AM, Tycho Andersen < > tycho.ander...@canonical.com> wrote: > > > On Tue, Jun 21, 2016 at 09:27:21AM -0700, jjs - m

Re: [lxc-users] Live migration mkdtemp failure

2016-06-22 Thread Tycho Andersen
t; reliably) > > Jake > > > > > On Tue, Jun 21, 2016 at 4:19 AM, McDonagh, Ed > wrote: > > > > > > > > On Tue, Mar 29, 2016 at 09:30:19AM -0700, jjs - mainphrame wrote: > > > > On Tue, Mar 29, 2016 at 7:18 AM, Tycho Andersen <

Re: [lxc-users] About checkpoint and restore

2016-06-15 Thread Tycho Andersen
On Wed, Jun 15, 2016 at 09:39:58AM -0400, Xinyang Ge wrote: > On Tue, Jun 14, 2016 at 11:05 PM, Fajar A. Nugraha wrote: > > > If you're okay with "the containers contain identical software, and > > fine with it being in just-booted state", then you might need to look > > at "lxc copy" (which can

Re: [lxc-users] About checkpoint and restore

2016-06-14 Thread Tycho Andersen
On Tue, Jun 14, 2016 at 06:32:13PM -0400, Xinyang Ge wrote: > Dear LXC users, > > I am new to the linux container technology. I am writing to ask if > LXC supports checkpointing a whole container and restore it later or > even on different machines? Yes, it does either via lxc-checkpoint or `lxc

Re: [lxc-users] lxc move fails

2016-06-01 Thread Tycho Andersen
On Wed, Jun 01, 2016 at 02:13:55PM -0700, jjs - mainphrame wrote: > I've been hoping for a return of live migration functionality as well. > I tried after today's lxc upgrades, but no joy: > > root@olympia:~# lxc move kangal lxd1: > error: Error transferring container data: checkpoint failed: > (0

Re: [lxc-users] lxc move fails

2016-06-01 Thread Tycho Andersen
On Thu, Jun 02, 2016 at 12:12:04AM +0900, Tomasz Chmielewski wrote: > On 2016-06-01 23:24, Stéphane Graber wrote: > > >>Expected? > > > >I don't believe I've seen that one before. Maybe Tycho has. > > > >Live migration is considered an experimental feature of LXD right now, > >mostly because CRIU

Re: [lxc-users] New live migration issues

2016-05-16 Thread Tycho Andersen
On Mon, May 16, 2016 at 08:52:34AM +, Jamie Brown wrote: > Hello again, > > I’m now running LXD 2.0.0 on Ubuntu 16.04 LTS after having some amount of > success with a previous BETA on 14.04. > > However, after a fresh install, the first attempt at a live migration has > failed; > > lxc lau

Re: [lxc-users] lxc progress and a few questions

2016-04-25 Thread Tycho Andersen
ope to look at it this week; I've been quite busy with other issues here for release. I'm not aware of anything you can do right now other than switching to ZFS (which is really worth doing, ZFS is sweet). Tycho > Regards, > > Jake > > On Mon, Apr 11, 2016 at 8:25 AM, Tych

Re: [lxc-users] lxc progress and a few questions

2016-04-11 Thread Tycho Andersen
their own network settings work (aside from migration) but > >>> none of the CTs which depend on dhcp are getting IPs. BTW I'm using a > >>> bridge connected to my local network and dhcp, not the default lxc > >>> dhcp server. I see the packets

Re: [lxc-users] LXD 2 rc5: Cannot download images

2016-04-04 Thread Tycho Andersen
On Fri, Mar 25, 2016 at 02:16:21PM +, Genevski, Pavel wrote: > Hi, > > Using rc5 I am finding it impossible to launch any images (I am behind a > proxy). It used to work fine in v0.8. > > root@XXX:~# lxc image list images: > error: Get https://images.linuxcontainers.org:8443/1.0/images?recur

Re: [lxc-users] NFS share mount inside container not working

2016-03-30 Thread Tycho Andersen
On Wed, Mar 30, 2016 at 06:24:36PM +0530, Mahesh Patade wrote: > Hi, > > I am trying to mount nfs share inside container but getting below error. > > $ mount 172.29.141.131:/video-process /srv/ > *mount.nfs: Operation not permitted* The default apparmor profile prohibits lots of kinds of mounts.

Re: [lxc-users] lxc progress and a few questions

2016-03-30 Thread Tycho Andersen
On Tue, Mar 29, 2016 at 11:17:26PM -0700, jjs - mainphrame wrote: > Well, I've found some interesting things here today. I created a couple of > privileged xenial containers, and sure enough, I was able to live migrate > them back and forth between the 2 lxd hosts. > > So far, so good. > > Then I

Re: [lxc-users] lxc progress and a few questions

2016-03-29 Thread Tycho Andersen
On Tue, Mar 29, 2016 at 09:30:19AM -0700, jjs - mainphrame wrote: > On Tue, Mar 29, 2016 at 7:18 AM, Tycho Andersen < > tycho.ander...@canonical.com> wrote: > > > On Mon, Mar 28, 2016 at 08:47:24PM -0700, jjs - mainphrame wrote: > > > I've looked at ct migration

Re: [lxc-users] lxc progress and a few questions

2016-03-29 Thread Tycho Andersen
separate > /var partition on btrfs. As a result, "criu check" would die instantly with > a segmentation error. After putting /var back on / (ext4) criu check > produces the message "Looks good." Hmm. Can you get the backtrace? Tycho > Jake > > >

Re: [lxc-users] Error getting images behind a proxy

2016-03-28 Thread Tycho Andersen
On Mon, Mar 28, 2016 at 06:09:29AM +, Lago Gonzalez, Diego wrote: > > Same error setting https_proxy as well as http_proxy. > > user@box ~ $ sudo -E lxc launch images:centos/6/amd64 my-centos > Creating my-centos > error: Get https://images.linuxcontainers.org/1.0/images/centos/6/amd64: > re

Re: [lxc-users] lxc progress and a few questions

2016-03-28 Thread Tycho Andersen
On Sun, Mar 27, 2016 at 09:22:44PM -0700, jjs - mainphrame wrote: > You've had some success with live migrations? At any rate, I'm upgrading my > ubuntu 15.10 test box to 16.04 so that I'll have 2 of them. I'll give it a > whirl. Yes, there are still various unsupported kernel features, but it sho

Re: [lxc-users] lxc-checkpoint failed when restore unprivileged containers

2016-03-23 Thread Tycho Andersen
On Wed, Mar 23, 2016 at 05:15:54PM +0800, Ocean Chen wrote: > When restore an unprivilleged container from checkpoint, it failed with error > "Error (image.c:318): Unable to open netns-9.img: Permission denied". You need to uidshift the images themselves into the root uid of the container so it c

Re: [lxc-users] LXD Newb questions

2016-03-19 Thread Tycho Andersen
On Wed, Mar 16, 2016 at 02:06:17AM +, Will Dennis wrote: > > root@xenial-02:~# lxc list all > +---+--+-+---+--++---+ > | HOST| NAME | STATE | IPV4| IPV6 |TYPE| > SNAPSHOTS | > +---+---

Re: [lxc-users] LXD_LVM_LVSIZE envvar usage

2016-03-15 Thread Tycho Andersen
/sbin:/sbin:/bin > > So the envvar seems correctly set for the process. > > Also the syntax "1GiB" should be ok, considering the test scripts from > GH Sounds like it might be time to file a bug then. Can you file it with steps to reproduce? Thanks! Tycho >

Re: [lxc-users] LXD Newb questions

2016-03-15 Thread Tycho Andersen
On Tue, Mar 15, 2016 at 04:19:57PM +, Will Dennis wrote: > (Pointers to existing documentation that I haven’t found yet gratefully > appreciated ;) > > A few questions from one new to LXD (and pretty new to LXC in general…) > > 1) We[1] have an existing implementation of LXC hosts (lxc 1.0.x

Re: [lxc-users] LXD_LVM_LVSIZE envvar usage

2016-03-14 Thread Tycho Andersen
e it should be applied on every `lvcreate`. You might check: strings /proc/`pidof lxd`/environ to make sure it actually got set, though. Tycho > On Mon, Mar 14, 2016 at 4:51 PM, Tycho Andersen < > tycho.ander...@canonical.com> wrote: > > > On Mon, Mar 14, 2016 at 03:14

Re: [lxc-users] LXD_LVM_LVSIZE envvar usage

2016-03-14 Thread Tycho Andersen
On Mon, Mar 14, 2016 at 03:14:31PM +0100, Fabrizio Furnari wrote: > Hi all, > I've just seen that in the latest RC developers added the possibility to > specify the LV size when creating new containers. > I've updated to 2.0.0~rc3-0ubuntu1~ubuntu14.04.1~ppa1 on my Ubuntu box but > when I try for ex

Re: [lxc-users] DRI in LXD

2016-03-01 Thread Tycho Andersen
On Tue, Mar 01, 2016 at 08:58:16AM -0500, Pete Osborne wrote: > Hi, > > I've been using LXD for a few months now and really like how it's shaping > up. I would like to know if it's possible to run opengl applications within > an LXD container sharing the hosts' X server? The primary function is to

Re: [lxc-users] LXD Live Migration: error - must have criu 1.9 or greater

2016-02-16 Thread Tycho Andersen
On Sat, Feb 13, 2016 at 10:14:25AM +0100, Thomas Lamprecht wrote: > Hi, > > On 11.02.2016 19:33, John Dupont wrote: > > Hello, > > > > I am trying to live migrate a container, following the steps described > > at: https://insights.ubuntu.com/2015/05/06/live-migration-in-lxd/ > > > > However, whe

Re: [lxc-users] LXD default NS mappings

2016-01-28 Thread Tycho Andersen
On Wed, Jan 27, 2016 at 05:09:52PM +0100, david.an...@bli.uzh.ch wrote: > Hi > > I have noticed that LXD uses some UIDs/GIDs by default I haven't set up and > which aren't represented in /etc/sub[ug]id files. > Interestingly, they are different from instance to instance: one one root is > mapped

Re: [lxc-users] "lxc file push" corrupts files

2016-01-27 Thread Tycho Andersen
On Wed, Jan 27, 2016 at 04:42:21PM +0900, Tomasz Chmielewski wrote: > In some cases, "lxc file push" corrupts files. > > To reproduce: > > - file must exist in the container > - existing file in the container must be bigger than the file being pushed Thanks for the report, I believe this was fix

Re: [lxc-users] compile lxd

2016-01-12 Thread Tycho Andersen
On Tue, Jan 12, 2016 at 01:25:27PM +, mattias jonsson wrote: > How to do it? > There is no configure It's a go program, so there is no autoconf. See the readme: https://github.com/lxc/lxd#building-from-source > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linux

Re: [lxc-users] lxc snapshot ... --stateful - "read-only file system"

2016-01-09 Thread Tycho Andersen
On Sat, Jan 09, 2016 at 06:58:16PM +0900, Tomasz Chmielewski wrote: > I'm trying to do a stateful snapshot - unfortunately, it fails: > > # lxc snapshot odoo08 "test" --stateful > error: mkdir /var/lib/lxd/snapshots/odoo08/test/state: read-only file system Looks like https://github.com/lxc/lxd/i

Re: [lxc-users] Help, containers gone after upgrade to 0.24

2015-12-17 Thread Tycho Andersen
On Thu, Dec 17, 2015 at 09:00:08AM +, Jamie Brown wrote: > OK – so I’ve now discovered the database file is simply sqlite – that’s a > bonus. > > Running SELECT * FROM containers shows the obvious problem that the > “architecture” column for the older containers is set to 0, whereas the ones

Re: [lxc-users] Migrating LXD VMs/containers between nodes

2015-11-27 Thread Tycho Andersen
On Thu, Nov 26, 2015 at 09:50:59AM -0200, Dilvan Moreira wrote: > On Wed, Nov 25, 2015 at 3:50 PM, Serge Hallyn > > The biggest complication I see is that when you ask lxd to move a > > container, > > lxd will want to migrate the rootfs. I'm waiting for clarification from > > Tycho on whether lxd

Re: [lxc-users] LXD Live Migration

2015-11-23 Thread Tycho Andersen
Hi Jamie, On Thu, Nov 05, 2015 at 11:39:43AM +, Jamie Brown wrote: > Hello again, > > Oddly, I've now re-installed the old server and configured it identically to > before (except now using RAID) and tried migrating a container back and I am > getting a different failure; > > # lxc move ho

Re: [lxc-users] LinkedIn article about LXD

2015-11-11 Thread Tycho Andersen
On Wed, Nov 11, 2015 at 09:33:30AM +, Jamie Brown wrote: > Hi, > > I wanted to share an article I posted to LinkedIn this morning about LXD. > > Being for LinkedIn, I kept it fairly abstract. It is targeted towards > planting a seed for decision makers, rather than an in-depth technical rev

Re: [lxc-users] Ownership changes after container move

2015-11-10 Thread Tycho Andersen
Hi Jamie, On Tue, Nov 10, 2015 at 09:10:22AM +, Jamie Brown wrote: > Hi, > > I’ve discovered that some file ownership changes have occurred after moving > stopped containers between hosts. > > Prior to the move there were various user directories (e.g. “/home/jamie”) > with ownership set t

Re: [lxc-users] 1.1.5 setproctitle bug

2015-11-09 Thread Tycho Andersen
Hello Boštjan, On Mon, Nov 09, 2015 at 06:47:42PM +0100, Boštjan Škufca @ Teon.si wrote: > Containers start, but this is what I am getting: > lxc-start: utils.c: setproctitle: 1461 Invalid argument - setting cmdline > failed > > Kernel 4.2.5, on Slackware 14.1, no cgmanager or lxcfs. Is there any

Re: [lxc-users] LXD Live Migration

2015-11-09 Thread Tycho Andersen
On Mon, Nov 09, 2015 at 11:57:53AM -0500, Saint Michael wrote: > I meant LXD, not LXC. I do use LXC in production. LXD will be ready for production in 16.04, the next LTS of Ubuntu. For live migration, we'll have support for it in 16.04 including migrating all the security primitives of container

Re: [lxc-users] LXD Live Migration

2015-11-09 Thread Tycho Andersen
gt; The container that caused the criu error was an exception to this. By criu error, you mean the ghost file size error? Tycho > Many thanks, > > Jamie > > From: lxc-users on behalf of > Tycho Andersen > Sent: 09 November 2015 16:00

Re: [lxc-users] LXD Live Migration

2015-11-09 Thread Tycho Andersen
On Mon, Nov 09, 2015 at 10:37:42AM -0500, Saint Michael wrote: > I must assume that LXC is not ready for production yet. Am I wrong? Yes, LXC has been used in production by many large organizations for many years. Tycho ___ lxc-users mailing list lxc-us

Re: [lxc-users] LXD Live Migration

2015-11-09 Thread Tycho Andersen
ps to > >replicate the successful move. I’ve never succeeded in migrating the same > >container back from host1 to host2 without stopping it. This is what is > >concerning me the most, I would expect either permanent failure or permanent > >success. I keep gaining fa

Re: [lxc-users] LXD Live Migration

2015-11-05 Thread Tycho Andersen
; >Should this package not be included as a dependency for LXD, or at least > >provide a meaningful warning if the package isn’t available? It seems odd to > >advertise out-the-box live migration in LXD, but then have to install > >another package to provide it. > > >

Re: [lxc-users] LXD Live Migration

2015-11-05 Thread Tycho Andersen
> > > > On 04/11/2015, 16:47, "lxc-users on behalf of Tycho Andersen" > tycho.ander...@canonical.com> wrote: > > >On Wed, Nov 04, 2015 at 01:48:44PM +, Jamie Brown wrote: > >> Greetings all. > >> > >> I’ve been using LXD in a

Re: [lxc-users] LXD Live Migration

2015-11-04 Thread Tycho Andersen
On Wed, Nov 04, 2015 at 01:48:44PM +, Jamie Brown wrote: > Greetings all. > > I’ve been using LXD in a development environment for a few weeks and so far > very impressed, > I can see a really bright future for this technology! > > However, today I thought I’d try out the live migration, ba

Re: [lxc-users] Help with lxc-checkpoint and SECCOMP_MODE_FILTER

2015-10-28 Thread Tycho Andersen
Hi Marcelo, On Mon, Oct 26, 2015 at 06:34:38PM -0200, Gter Marcelo wrote: > Hi, > > i am running testing with new version the LXC 1.1.4 in enviroment ubuntu > 15.10 . > > But i received some errors when i try to use lxc-checkpoint. > > I ran the command : > lxc-checkpoint -v -D /tmp -n test-con

Re: [lxc-users] Something changed between 1.1.2 and 1.1.4 for unprivileged containers?

2015-10-15 Thread Tycho Andersen
Hi Dirk, On Thu, Oct 15, 2015 at 09:22:25PM +0200, Dirk Geschke wrote: > Hi all, > > I have unprivileged containers running with lxc-1.1.2. They are > started by a normal, non-root user and it works. But today I > tried to start them with lxc-1.1.4 and it fails: > >WARN: could not reopen t

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-09-04 Thread Tycho Andersen
Hi Dietmar, On Tue, Aug 11, 2015 at 09:04:46AM +0200, Dietmar Maurer wrote: > I no get another error: > > (00.000399) Error (proc_parse.c:826): SECCOMP_MODE_FILTER not currently > supported > (00.000401) Error (proc_parse.c:839): Error parsing proc status file > > So I have to set: > > lxc.secc

Re: [lxc-users] LXD

2015-08-31 Thread Tycho Andersen
On Mon, Aug 31, 2015 at 11:02:21AM -0500, Luis M. Ibarra wrote: > Have you checked juju? I don't think there's a driver for LXD only LXC but > they have plans to add it. Yep, I've done the initial implementation here, https://github.com/juju/juju/pull/2913 > It's web based, but it can scale up.

Re: [lxc-users] Question about "lxc-wait"

2015-08-31 Thread Tycho Andersen
On Mon, Aug 31, 2015 at 02:57:15PM +0100, Thouraya TH wrote: > Hello all :) > > Here is my script: i try to do the dumping process in parallel with its > running > > #!/bin/bash > if [ $# -ne 1 ] > then > echo "USE: ./Dumping.sh worker-name" > else > > lxc-start -n $1 *& my_pid=$!* > sleep 10

Re: [lxc-users] error Error calling 'lxd forkstart

2015-08-21 Thread Tycho Andersen
On Fri, Aug 21, 2015 at 10:49:50AM -0300, marcelo fortino wrote: > Hi Tycho, > so 'sudo service start cgmanager' its gives me: > start: unrecognized service Whoops, sorry, that's `sudo service cgmanager start`, I always get the arguments in the wrong order. > Looking at google with this new info

Re: [lxc-users] lxc-users Digest, Vol 88, Issue 4

2015-08-20 Thread Tycho Andersen
lxc_confile - > confile.c:config_idmap:1433 - read uid map: type u nsid 0 hostid > 10 range 65536 > lxc 1440091054.353 INFO lxc_confile - > confile.c:config_idmap:1433 - read uid map: type g nsid 0 hostid > 10 range 65536 > lxc 14

Re: [lxc-users] error Error calling 'lxd forkstart documentation /var/lib/lxd/containers

2015-08-18 Thread Tycho Andersen
Hi Marcelo, On Tue, Aug 18, 2015 at 03:30:04PM -0300, marcelo fortino wrote: > This morning I did an apt-get update and lxd packages were upgraded. > since then I can't start any of the container, I had this error: > > Error calling 'lxd forkstart documentation /var/lib/lxd/containers. > > The l

Re: [lxc-users] Mount directory with space in the path

2015-08-18 Thread Tycho Andersen
On Tue, Aug 18, 2015 at 02:18:05PM +0200, Valerio Mariani wrote: > Dear Andrey, > >thanks for your answer. So, I did this (psana is the software I am > working on): > > lxc config device add centos6-amd64-psana opt-working disk > source="/data/Data/Psana Tests/" path=/opt/working > > Then if

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-13 Thread Tycho Andersen
Hi Dietmar, On Thu, Aug 13, 2015 at 07:40:27AM +0200, Dietmar Maurer wrote: > > > Just found this info: > > > http://permalink.gmane.org/gmane.linux.kernel/1930352 > > > > > > "Now when mounting /sys/kernel/debug, tracefs is automatically mounted > > > in /sys/kernel/debug/tracing" > > > > > >

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
On Wed, Aug 12, 2015 at 07:42:10PM +0200, Dietmar Maurer wrote: > > On Wed, Aug 12, 2015 at 06:41:55PM +0200, Dietmar Maurer wrote: > > > > ..and it's not bind mounted from the host, which is why it's not being > > > > autodetected as a bind mount. When I start both trusty and wily > > > > containe

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
On Wed, Aug 12, 2015 at 11:06:02AM -0600, Tycho Andersen wrote: > On Wed, Aug 12, 2015 at 06:41:55PM +0200, Dietmar Maurer wrote: > > > ..and it's not bind mounted from the host, which is why it's not being > > > autodetected as a bind mount. When I start both tru

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
On Wed, Aug 12, 2015 at 06:41:55PM +0200, Dietmar Maurer wrote: > > ..and it's not bind mounted from the host, which is why it's not being > > autodetected as a bind mount. When I start both trusty and wily > > containers I don't see anything mounting tracefs, do you know what is > > mounting it? >

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
Hi Dietmar, On Wed, Aug 12, 2015 at 05:27:03PM +0200, Dietmar Maurer wrote: > Here is the requested info: > > # cat /proc/22373/mountinfo > ... > 130 225 0:9 / /sys/kernel/debug/tracing rw,relatime - tracefs tracefs rw Looks like the container has tracefs, which CRIU doesn't understand natively,

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
On Wed, Aug 12, 2015 at 08:54:22AM -0600, Tycho Andersen wrote: > Not quite, can you show /proc//mountinfo? I think > this should be autodetected by criu the same way the other mounts are, > but apparently it is not. Seeing the host's /proc/self/mountinfo would be useful too,

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-12 Thread Tycho Andersen
Hi Dietmar, On Wed, Aug 12, 2015 at 08:22:14AM +0200, Dietmar Maurer wrote: > > > What container images from https://images.linuxcontainers.org/ are > > > known to work with CRIU? > > > > I've tested with all the Ubuntu releases (not including wily, which > > isn't tagged yet), but not anything

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-11 Thread Tycho Andersen
On Tue, Aug 11, 2015 at 05:30:12PM +0200, Dietmar Maurer wrote: > > > This is a simple centos7 container - nothing running (onyl systemd). > > > Any idea whats wrong? > > > > Not sure, this is likely something that systemd is doing to confuse > > CRIU. The CRIU list may have a better idea, I've no

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-11 Thread Tycho Andersen
On Tue, Aug 11, 2015 at 09:04:46AM +0200, Dietmar Maurer wrote: > I no get another error: > > (00.000399) Error (proc_parse.c:826): SECCOMP_MODE_FILTER not currently > supported > (00.000401) Error (proc_parse.c:839): Error parsing proc status file > > So I have to set: > > lxc.seccomp = Yep, I

Re: [lxc-users] CRIU with lxc.network.type empty fails

2015-08-10 Thread Tycho Andersen
Hi Dietmar, On Sun, Aug 09, 2015 at 12:35:03PM +0200, Dietmar Maurer wrote: > Hi all, > > I am testing criu with latest lxc/criu code from git, and the > ubuntu 4.1 kernel. I use the following lxc config: > > # cat /var/lib/lxc/500/config > lxc.arch = amd64 > lxc.include = /usr/share/lxc/config/

Re: [lxc-users] lxc move - "error: checkpoint failed"

2015-08-07 Thread Tycho Andersen
On Fri, Aug 07, 2015 at 07:13:29AM +0900, Tomasz Chmielewski wrote: > On 2015-08-06 22:16, Tycho Andersen wrote: > > >The problem here is that CRIU can't support everything that LXD does > >just yet, so you have to set up some container specific configuration. > >I

Re: [lxc-users] lxc move - "error: checkpoint failed"

2015-08-06 Thread Tycho Andersen
Hi Tomasz, On Wed, Aug 05, 2015 at 06:46:02PM +0900, Tomasz Chmielewski wrote: > Trying to move a running container between hosts, unfortunately, it fails: > > # lxc move dp02:nominatim dp03:nominatim > error: checkpoint failed > > Both hosts are running Ubuntu 14.04, package versions are: > >

Re: [lxc-users] LXC image

2015-08-05 Thread Tycho Andersen
ack them, thanks: https://github.com/lxc/lxd/issues/975 https://github.com/lxc/lxd/issues/976 A workaround would be to export the image, delete it from the image store, and import it again via the CLI with --public. Hopefully the above two should be quick fixes for us, though. Thanks, Tycho >

Re: [lxc-users] Problem Launching new containers

2015-08-05 Thread Tycho Andersen
#x27;s failing this. Unfortunately it's not very easy to get errors out of this part of the code, so an strace might be our best bet. The most obvious thing that could cause problems is the perms issue, but looking through the code there may be a few others. Thanks, Tycho > Matty >

Re: [lxc-users] Problem Launching new containers

2015-08-05 Thread Tycho Andersen
Hi Matthew, On Wed, Aug 05, 2015 at 11:40:12AM +0100, Matthew Williams wrote: > Hey Folks, > > I just installed lxd using the instructions here: > https://linuxcontainers.org/lxd/getting-started-cli/ > > But I can't launch new containers. I get the following: > > http://paste.ubuntu.com/1200603

Re: [lxc-users] LXC image

2015-08-05 Thread Tycho Andersen
Hi Jordan, On Wed, Aug 05, 2015 at 01:52:55PM +0200, Jordan GRONDIN wrote: > Hi everyone, > > I want LXD image server in my network like this: > http://images.linuxcontainers.org/ > > How to proceed? I should install LXD or there just needs to apache2? All LXD servers function as image serv

Re: [lxc-users] LXD + OS X

2015-07-30 Thread Tycho Andersen
On Thu, Jul 30, 2015 at 03:27:44PM -0700, Kevin LaTona wrote: > Thanks Bill, that got me closer but it still is not working. > > > When I do a make I get back > > > lxd kevin$ make > go get -v -d ./... > go install -v ./... > github.com/lxc/lxd/lxd/migration > # github.com/lxc/lxd/lxd/migration

Re: [lxc-users] tap interface in unprivileged container?

2015-07-21 Thread Tycho Andersen
On Tue, Jul 21, 2015 at 09:43:44PM +0200, Dirk Geschke wrote: > Hi LXC-Users, > > > is there an easy way to create/move a tap interface to an unprivileged > > container? > > I think, I found a solution: > ># ip tuntap add mode tap tap0 ># ip link set tap0 netns 16077 > > This creates a

Re: [lxc-users] LXD REST API file upload error

2015-07-15 Thread Tycho Andersen
On Wed, Jul 15, 2015 at 08:53:32AM -0600, Tycho Andersen wrote: > On Wed, Jul 15, 2015 at 05:36:27PM +0300, Jony Opipo wrote: > > Hi > > > > I am trying to upload file to container using REST API and I get the > > following error: > > > > curl -s -k -X

Re: [lxc-users] LXD REST API file upload error

2015-07-15 Thread Tycho Andersen
On Wed, Jul 15, 2015 at 05:36:27PM +0300, Jony Opipo wrote: > Hi > > I am trying to upload file to container using REST API and I get the > following error: > > curl -s -k -X POST -d "@test" --cert client.crt --key client.key > https://192.168.10.155:8443/1.0/containers/test/files?path=/tmp/test

Re: [lxc-users] Moving/copying containers to a different machine with LXC

2015-07-14 Thread Tycho Andersen
On Thu, Jul 09, 2015 at 01:24:50PM +0200, Valerio Mariani wrote: > Dear All, > >please forgive me if my question is too basic, but I am relatively > new to the world of lxc containers. > > With LXD/LXC I downloaded a centos6 amd64 image on my laptop, I made a > container out of it, installing

Re: [lxc-users] Find out if one is inside a container

2015-07-14 Thread Tycho Andersen
On Mon, Jul 13, 2015 at 10:53:10AM +0200, Christoph Mathys wrote: > Is there an unhacky way of knowing if a script runs inside a > container? In my case, a sysV initscript that tries to load some > kernel modules needs to know if it runs inside the container, because > it must not load the modules

Re: [lxc-users] lxc-checkpoint of a cloned container

2015-06-16 Thread Tycho Andersen
On Sat, Jun 13, 2015 at 02:12:49PM +0100, Thouraya TH wrote: > Hi all, > > Please, i'd like to have an idea about the difference between > > - lxc-checkpoint container > > AND > > - lxc-checkpoint clone-of-container There should be no difference here. > ? > > lxc-checkpoint of a clo

Re: [lxc-users] lxc copy error: websocket: bad handshake

2015-06-15 Thread Tycho Andersen
On Mon, Jun 15, 2015 at 04:18:36PM -0400, Wajih Ahmed wrote: > $ lxc copy lxd:rp server1:rp > error: websocket: bad handshake > > Both sides are version 0.11. > > How can i further troubleshoot? Debug logs for both would be a start, although I'm not entirely sure they'll help in this case. Are t

Re: [lxc-users] fetching application update out of container's space

2015-06-10 Thread Tycho Andersen
On Thu, Jun 11, 2015 at 12:07:21AM +0200, Genco Yilmaz wrote: > On Wed, Jun 10, 2015 at 11:06 PM, Tycho Andersen < > tycho.ander...@canonical.com> wrote: > > > On Wed, Jun 10, 2015 at 09:22:10PM +0200, Genco Yilmaz wrote: > > > Hi, > > >I have been play

Re: [lxc-users] fetching application update out of container's space

2015-06-10 Thread Tycho Andersen
On Wed, Jun 10, 2015 at 09:22:10PM +0200, Genco Yilmaz wrote: > Hi, >I have been playing with containers for a few days only and deployed > several to test some networking features. I have searched on the net to get > an answer but couldn't find any post/page yet. Issue is that I set up a > sma

Re: [lxc-users] DHCP Status on Linux Containers Images

2015-06-08 Thread Tycho Andersen
On Mon, Jun 08, 2015 at 10:19:38AM -0600, Neil Jubinville wrote: > Hi All, so I discovered LXD yesterday, I am very happy I did. I love what > I see so far. > > I am testing it on a DellR420 , 192 GB ram and 32 cores. ( looking > forward to an LVM backing store) > > I am still new to containe

Re: [lxc-users] how to get veth interface(s) id in LXD?

2015-06-05 Thread Tycho Andersen
Hi Jonathan, On Fri, Jun 05, 2015 at 11:23:05AM -0400, Gregoire, Jonathan (520851) wrote: > Hi, > > Does anybody knows how to get the veth interface(s) linked to an LXD > container. I'm able to get it in LXC but not in LXD. It turns out this isn't possible right now. However, it seems like a re

Re: [lxc-users] lxd: "-B backingstore" equivalent?

2015-06-05 Thread Tycho Andersen
On Sat, Jun 06, 2015 at 12:32:07AM +0900, Tomasz Chmielewski wrote: > On 2015-06-06 00:19, Tycho Andersen wrote: > > >># ls -l /var/lib/lxd > >>lrwxrwxrwx 1 root root 8 Jun 5 10:15 /var/lib/lxd -> /srv/lxd > > > >Ah, my best guess is that lxd doesn

Re: [lxc-users] lxd: "-B backingstore" equivalent?

2015-06-05 Thread Tycho Andersen
On Sat, Jun 06, 2015 at 12:11:27AM +0900, Tomasz Chmielewski wrote: > On 2015-06-06 00:00, Tycho Andersen wrote: > > >>As I've checked, this is not the case (the container is created in a > >>directory, not in btrfs subvolume; lxc-create -B btrfs creates it in a &

Re: [lxc-users] lxd: "-B backingstore" equivalent?

2015-06-05 Thread Tycho Andersen
On Fri, Jun 05, 2015 at 11:36:37PM +0900, Tomasz Chmielewski wrote: > On 2015-06-05 22:58, Tycho Andersen wrote: > >Hi Tomasz, > > > >On Fri, Jun 05, 2015 at 07:22:25PM +0900, Tomasz Chmielewski wrote: > >>Is there a "-B btrfs" equivalent in lxd? > >

Re: [lxc-users] lxd: "-B backingstore" equivalent?

2015-06-05 Thread Tycho Andersen
Hi Tomasz, On Fri, Jun 05, 2015 at 07:22:25PM +0900, Tomasz Chmielewski wrote: > Is there a "-B btrfs" equivalent in lxd? Yes, if you mount /var/lib/lxd as a btrfs subvolume, it should Just Work. > For example, with lxc, I would use: > > # lxc-create --template download --name test-container -B

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-27 Thread Tycho Andersen
On Wed, May 27, 2015 at 06:37:02PM +0100, Giles Thomas wrote: > On 27/05/15 18:33, Tycho Andersen wrote: > >On Wed, May 27, 2015 at 06:26:56PM +0100, Giles Thomas wrote: > >> lxc 1432747128.877 ERRORlxc_criu - criu.c:criu_ok:333 - > >>couldn't fin

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-27 Thread Tycho Andersen
On Wed, May 27, 2015 at 06:26:56PM +0100, Giles Thomas wrote: > Hi Tycho, > > Sorry again for the slow turnaround! > > On 15/05/15 18:59, Tycho Andersen wrote: > >I suspect it still can't find criu and it just isn't finding the binary. > >Can you symlink it

Re: [lxc-users] What is the best way to report bug issues with LXD rest server?

2015-05-27 Thread Tycho Andersen
On Tue, May 26, 2015 at 10:12:37PM -0700, Kevin LaTona wrote: > > On May 26, 2015, at 4:37 PM, Tycho Andersen > wrote: > > > I just wrote http://tycho.ws/blog/2015/05/lxd-python.html which works > > fine for me on Ubuntu. > > In Tycho's blog post he was c

Re: [lxc-users] What is the best way to report bug issues with LXD rest server?

2015-05-26 Thread Tycho Andersen
On Tue, May 26, 2015 at 06:37:59PM -0700, Kevin LaTona wrote: > > On May 26, 2015, at 4:37 PM, Tycho Andersen > wrote: > > > Hi Kevin, > > > > On Mon, May 25, 2015 at 07:38:12PM -0700, Kevin LaTona wrote: > >> > >> On May 25, 2015, at 12:16 P

Re: [lxc-users] What is the best way to report bug issues with LXD rest server?

2015-05-26 Thread Tycho Andersen
Hi Kevin, On Mon, May 25, 2015 at 07:38:12PM -0700, Kevin LaTona wrote: > > On May 25, 2015, at 12:16 PM, Kevin LaTona wrote: > > > The simplest way I found so far to connect from a Mac running 10.8.5 to the > > LDX 0.9 rest server is using a Python Subprocess call via SSH into the host > > m

  1   2   >