Re: [lxc-users] LXD move container to another pool ?

2018-08-10 Thread Mark Constable
On 10/08/18 17:20, Pierre Couderc wrote: Note that lxc1 and lxd from snap uses different directories than lxd from package. Sorry for the noise : I use lxd (from sources on debian), and I had not seen that /var/lib/lxc exits but is empty... FWIW /var/lib/lxc != /var/lib/lxd __

Re: [lxc-users] LXD 3.0 macvlan networking

2018-05-05 Thread Mark Constable
On 5/6/18 4:04 AM, Michel Jansens wrote: how come I can ping the container from my host when I just set up that container using macvlan? Well, on my system with latest install of Ubuntu 18.04 and LXD 3.0, the host can’t reach a container in macvlan setup. the container can’t connect to the ho

Re: [lxc-users] LXD 3.0 macvlan networking

2018-05-05 Thread Mark Constable
On 5/5/18 5:43 PM, Janjaap Bos wrote: To be able to ping a container macvlan interface, you need to have a macvlan interface configured on the host. Thank you for the host macvlan snippet but I CAN actually ping the container from the host (but not the host from inside the container) and that w

[lxc-users] LXD 3.0 macvlan networking

2018-05-04 Thread Mark Constable
Has something changed re networking with LXD 3.0 such that when using a macvlan that the host CAN ping a container? According to what I previously understood, and supported by this comment.. https://github.com/lxc/lxd/issues/3871#issuecomment-333124249 and the main reason I hadn't bothered even

Re: [lxc-users] bionic image not getting IPv4 address

2018-05-02 Thread Mark Constable
On 5/3/18 4:09 PM, Kees Bos wrote: > On Thu, 2018-05-03 at 12:58 +0900, Tomasz Chmielewski wrote: >> Reproducing is easy: >> >> # lxc launch images:ubuntu/bionic/amd64 bionic-broken-dhcp >> >> Then wait a few secs until it starts - "lxc list" will show it has >> IPv6 address (if your bridge was

Re: [lxc-users] bionic image not getting IPv4 address

2018-05-02 Thread Mark Constable
On 5/3/18 12:42 PM, Tomasz Chmielewski wrote: > > Today or yesterday, bionic image launched in LXD is not getting an IPv4 > > address. It is getting an IPv6 address. If you do a "lxc profile show default" you will probably find it doesn't have an IPv4 network attached by default. I haven't yet fo

[lxc-users] [Solved] Re: How to get rid of pesky extra dhcp IP

2018-04-21 Thread Mark Constable
On 22/4/18 3:21 am, David Favor wrote: > Removing Netplan will work temporarily, until all the old networking > plumbing is completely removed. Better to start moving to Netplan > now, before some future update removes old processing of your > /etc/network/interfaces files + all your networking sim

[lxc-users] LXC containers networking

2018-04-05 Thread Mark Constable
On 06/04/18 03:33, Bhangui, Avadhut Upendra wrote: > I have a requirement that the solution running inside the container > should be able to communicate to services in public cloud and also > with some services on the host machine. > > 1. How do I setup the networking of this container? 2. When

[lxc-users] Can't setgid in container

2018-02-27 Thread Mark Constable
LXD 2.21 with *buntu a 1 month old bionic host and new containers. When installing something like postfix I am getting this error, which obviously cripples postfix... postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue postfix/postfix-script: war

Re: [lxc-users] LXD module for Cockpit?

2017-06-14 Thread Mark Constable
On 15/06/17 12:56, Stéphane Graber wrote: https://lists.linuxcontainers.org/pipermail/lxc-users/2015-November/010516.html Anyone aware of any new Cockpit module development for LXD? But we do have a good friend, Martin Pitt, who's working on the Cockpit team and who's pretty familiar with LXD.

[lxc-users] LXD module for Cockpit?

2017-06-14 Thread Mark Constable
I asked this question ~18 months ago... https://lists.linuxcontainers.org/pipermail/lxc-users/2015-November/010516.html Anyone aware of any new Cockpit module development for LXD? As I noted before, any Canonical OpenStack based service is way too heavy for what I want. Cockpit itself has matur

Re: [lxc-users] Need help with static IP address -- Simplest use case.

2017-06-09 Thread Mark Constable
On 10/06/17 12:03, Michael Johnson wrote: Hi Mark. Thanks for responding. I've done exactly what you suggest, and here is the result from within the container: ip -4 route show default via 192.168.0.1 dev eth0 metric 12 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.36 [...]

Re: [lxc-users] Need help with static IP address -- Simplest use case.

2017-06-09 Thread Mark Constable
On 10/06/17 11:40, Michael Johnson wrote: I'm able to configure a bridge on the host, and the host uses the bridge just fine. How do I get the container to use the bridge? The container seems to ignore all interfaces not created by 'lxc network create'. I'm guessing because iptables gets populate

Re: [lxc-users] Forwarding DNS requests to the host /etc/hosts file

2017-05-31 Thread Mark Constable
On 01/06/17 02:34, Adil Baig wrote: lxc config device add mycontainer etchosts disk path=/etc/hosts source=/etc/hosts 1. Is very cool! I tried it and it works. Yes, a good hint to know about, thanks simplyadilb. I am more interested in 2. as it seems more future proof when we move away from

Re: [lxc-users] would there be value in starting an LXD community online collection of how-to related information

2017-05-29 Thread Mark Constable
On 30/05/17 10:17, Luis Michael Ibarra wrote: For now we have discussions, Core dev blogs, github *md files, lxd wiki, etc. Shouldn't be useful to have an official documentation channel? I lean towards an independent option so along those lines this is one possibly crazy suggestion, FWIW... - s

Re: [lxc-users] Args for lxd init via script

2017-05-26 Thread Mark Constable
Just to complete this thread and kind of mark it [SOLVED] I got back to getting this script(s) to 99% work after losing my entire primary BTRFS drive because some typo set my boot partition to "zfs_volume" (yikes!) https://raw.githubusercontent.com/netserva/sh/master/bin/setup-lxd I know to the

Re: [lxc-users] Mounting a swap file inside a container

2017-05-25 Thread Mark Constable
On 25/05/17 23:19, Serge E. Hallyn wrote: Is it possible to mount a swap file inside a zfs loop based container? Think you'd still need something like https://lists.linuxfoundation.org/pipermail/containers/2008-April/010954.html to make that feasible. Thanks for the link Serge. Very interes

[lxc-users] Mounting a swap file inside a container

2017-05-25 Thread Mark Constable
Is it possible to mount a swap file inside a zfs loop based container? If so, how would I first disable the host swap inside a container? I tried this... lxc profile set medium limits.memory.swap false which gets me this profile... ~ lxc profile show medium config: limits.cpu: "2" limits.

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/22/17 12:28 PM, Fajar A. Nugraha wrote: Yes but I also want the current disk usage to be available inside the container so that, for instance, df returns realistic results. Have you tried lxd with zfs? Yes, zfs (pool per container) is what I am currently using here... https://raw.github

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/21/17 11:16 PM, gunnar.wagner wrote: just for my understanding ... you want to monitor disk usage on the LXD host, right? Yes but I also want the current disk usage to be available inside the container so that, for instance, df returns realistic results. Using a zfs pool per container wor

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/21/17 4:02 PM, Jeff Kowalczyk wrote: My question, is it reasonable to provide a separate profile and zfs pool per container and is there a better or more efficient way to get the same end result? Will disk limits work for you? https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/

Re: [lxc-users] Args for lxd init via script

2017-05-20 Thread Mark Constable
On 5/19/17 5:06 PM, Fajar A. Nugraha wrote: I'm trying to automate a simple setup of LXD via a bash script and I'm not sure of the best way to provide some preset arguments to "lxd init", if at all possible. Specifically... Did you try "lxd --help"? Sigh, not for the last year or two, thanks

[lxc-users] Args for lxd init via script

2017-05-18 Thread Mark Constable
I'm trying to automate a simple setup of LXD via a bash script and I'm not sure of the best way to provide some preset arguments to "lxd init", if at all possible. Specifically... Name of the storage backend to use (dir or zfs): zfs Create a new ZFS pool (yes/no)? yes Name of the new ZFS pool: lx

[lxc-users] Add default route to LXD 2.8 bridge

2017-02-06 Thread Mark Constable
I'd like to have LXD manage a host network aware bridge and it almost works except for needing two extra manual "brctl addif" and "ip route add default via" steps. Would some variation of this... lxc network set lxdbr0 ipv4.routes (set default gw) possibly work for a default route? Alternativel

[lxc-users] Increase lxd-loop size

2017-01-15 Thread Mark Constable
Ubuntu zesty btrfs host, xenial zfs containers. How do I increase the size of the default lxd-loop pool above 10Gb? lxd-loop/containers/devzfs 2.3G 1.8G 477M 80% /var/lib/lxd/containers/dev.zfs lxd-loop/containers/docker zfs 7.4G 7.0G 477M 94% /var/lib/lxd/containers/docker.zfs I've tried

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread Mark Constable
On 19/10/16 07:10, David Favor wrote: > I'd prefer the "tweak each container config" approach. > Be great if someone could provide a URL for an example. Very hard to impossible to find examples of using lxc config to set the IP of each container and I'm still not sure it's even possible. Can anyo

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread Mark Constable
On 19/10/16 05:02, David Favor wrote: > Looking for best way to change 10.87.167.115 to 144.217.33.224 > (static/public IP). Prefer doing this in a way where communication > between host/container + container/container works without adding > iptables rules, which become complex to manage with many

Re: [lxc-users] inventory / dashboard tool to manage LXD containers' lifecycle

2016-09-05 Thread Mark Constable
On 05/09/16 19:38, Nicola Volpini wrote: > As per subject: is there any existing project able to manage the > lifecycle of LXD containers via some form of frontend/webgui? > [...] > Anyone out there who managed to integrate these tools and LXD? I > would be cool to do for LXD what has been done f

[lxc-users] btrfs and lxc init

2016-07-08 Thread Mark Constable
The only 2 options for lxc init are dir and zfs. Why no btrfs option? Or, if I chose either one will the snapshot and send/receive advantages of btrfs still be taken advantage of? If so, which one should I chose? ___ lxc-users mailing list lxc-users@lis

Re: [lxc-users] Container scaling - LXD 2.0

2016-05-08 Thread Mark Constable
On 09/05/16 10:18, Ronald Kelley wrote: I am trying to get some data points on how many containers we can run on a single host if all the containers run the same applications (eg: Wordpress w/nginx, php-fpm, mysql). We have a number of LXD 2.0 servers running on Ubuntu 16.04 - each server has 5G

Re: [lxc-users] Wildcard in lxd commands?

2016-03-19 Thread Mark Constable
On 17/03/16 23:01, Janne Savikko wrote: You can not use filters to list running or stopped containers. Lxc start or stop do not support filters, only container name (or names). You though can always pipe commands if you want to stop dozens of containers whose names begin with "web" (note! lxc lis

Re: [lxc-users] [Solved]RE: Networking LXD containers

2016-03-14 Thread Mark Constable
On 15/03/16 13:03, efersept wrote: Thank you Fajar, I have tried putting entries in /etc/network/interfaces on an Ubuntu host but they are completely ignored. Well that is not completely true, static IPs can be set for eth0 but bridge entries and wlan0 entries are ignored The only success I have

[lxc-users] Mapping dotless LXD hostnames to FQDN

2016-03-12 Thread Mark Constable
For a while there I was completely flummoxed trying to come up with an ultra simple way to deal with dotless LXD hostnames without requiring an otherwise useless out of band host-to-fqdn mapping system. This strategy works for me and might be useful for someone else. It does rely on DNS or /etc/ho

Re: [lxc-users] Clean output for lxc list

2016-03-10 Thread Mark Constable
On 10/03/16 18:54, Stéphane Graber wrote: We've had a few folks ask for a --format option of some sort which would allow them to get the info in csv, tabular or json/yaml format. One simple approach could be that if one used the default lxc list with anything other than -c (or --columns) then t

[lxc-users] Clean output for lxc list

2016-03-09 Thread Mark Constable
I'm not sure if this is already possible but a suggestion for lxc list would be to provide a "clean" output option without ascii borders. Using mysql as an example it would be neat if something like this was possible... [[ $(lxc list $HOST -BN -cs) = RUNNING ]] && echo yay || echo nay ~ mysql -e

Re: [lxc-users] Docs for all unpriv container limits?

2016-03-08 Thread Mark Constable
On 09/03/16 17:01, Stéphane Graber wrote: Where do I find the kernel boot parameters to enable memory and swap limits? swapaccount=1 https://www.kernel.org/doc/Documentation/kernel-parameters.txt Thanks yet again. Now I have something to google for would you mind confirming this one is or is

[lxc-users] Can't start unpriv container (large log dump)

2016-03-08 Thread Mark Constable
I've done this 100s of times before but for some reason I'm getting an error trying to start an unpriv container. Any clues? Xenial LXD 2.0.0~rc2-0ubuntu2 w/ btrfs ~ lxc image copy upstream:/ubuntu/xenial/amd64 local: --alias=xenial Image copied successfully! ~ lxc image list ++

Re: [lxc-users] Docs for all unpriv container limits?

2016-03-08 Thread Mark Constable
On 09/03/16 16:14, Stéphane Graber wrote: Where do I find the documentation for all possible memory/swap/whatever limits that can be applied to LXD 2.0.0~rc2-0ubuntu2 unpriv containers? And boot parameters etc. https://github.com/lxc/lxd/blob/master/specs/configuration.md Thanks. Where do I

[lxc-users] Docs for all unpriv container limits?

2016-03-08 Thread Mark Constable
Where do I find the documentation for all possible memory/swap/whatever limits that can be applied to LXD 2.0.0~rc2-0ubuntu2 unpriv containers? And boot parameters etc. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcon

Re: [lxc-users] lxc / lxd I'm lost somewhere

2016-03-01 Thread Mark Constable
On 02/03/16 04:55, Serge Hallyn wrote: For instance I have my local laptop and a (very) remote server. Thanks for this example usage. I can 'lxc launch xenial h:x1; lxc file push my.tar.gz h:x1/; lxc shell h:x1' and the fact that x1 is running on 'h' on a different continent really doesn't ma

Re: [lxc-users] lxc / lxd I'm lost somewhere

2016-03-01 Thread Mark Constable
On 02/03/16 01:34, Benoit GEORGELIN - Association Web4all wrote: User A will have his own space for containers User B will have his own space for containers They should do "lxc-ls -f" or "lxc list" and see only their own containers Maybe this is not a typical use case ? I think the best way

Re: [lxc-users] setcap capabilities

2016-02-28 Thread Mark Constable
FWIW another package that requires setcap. This is the first one I've seen that falls back to setuid OOTB. Setting up mtr-tiny (0.86-1) ... Failed to set capabilities on file `/usr/bin/mtr' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a

Re: [lxc-users] setcap does not work in unprivileged container

2016-02-25 Thread Mark Constable
On 26/02/16 05:56, Serge Hallyn wrote: Hopefully in the next month or two I'll get time to get that working in the kernel. Which means a few more months before it'd be really available. Can we expect it to be backported to Xenial? No, but the HWE and such kernels will have it. They are just

Re: [lxc-users] setcap does not work in unprivileged container

2016-02-25 Thread Mark Constable
On 25/02/16 20:16, Tamas Papp wrote: # /sbin/setcap 'cap_net_bind_service=+ep' /usr/bin/nodejs Failed to set capabilities on file `/usr/bin/nodejs' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file Can we somehow

[lxc-users] /sbin/init failure

2016-02-24 Thread Mark Constable
Using latest freshly reinstalled xenial host and containers with 2.0.0~beta4-0ubuntu4 which got the packages installed after removing everything and starting again but I've had this problem for a couple of weeks now... ~ lxc image list ++--++--

Re: [lxc-users] setcap capabilities

2016-02-18 Thread Mark Constable
On 19/02/16 12:21, Serge Hallyn wrote: Unpacking systemd (229-1ubuntu2) over (228-5ubuntu3) ... dpkg: error processing archive /var/cache/apt/archives/systemd_229-1ubuntu2_amd64.deb (--unpack): unable to make backup link of './bin/systemctl' before installing new version: Operation not permit

Re: [lxc-users] setcap capabilities

2016-02-18 Thread Mark Constable
On 19/02/16 11:39, Serge Hallyn wrote: echo 0 > /proc/sys/fs/protected_hardlinks Thanks for the response Serge but this "problem" all but makes unpriv containers (xenial at least) unusable. Todays example... Unpacking systemd (229-1ubuntu2) over (228-5ubuntu3) ... dpkg: error processing archiv

Re: [lxc-users] setcap capabilities

2016-02-18 Thread Mark Constable
On 19/02/16 02:32, Serge Hallyn wrote: but inside a container I get... ~ /sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy Failed to set capabilities on file `/usr/bin/caddy' (Invalid argument) If not in a user namespace, ... well it works for me, but you may have to edit the files under /u

Re: [lxc-users] setcap capabilities

2016-02-18 Thread Mark Constable
On 19/02/16 02:32, Serge Hallyn wrote: # for containers to allow suid exec echo 0 > /proc/sys/fs/protected_hardlinks on the host but that is going to be awkward for folks who do not happen to know this "trick" meaning generally trying to install the courier-mta package on unpriv containers is go

Re: [lxc-users] setcap capabilities

2016-02-13 Thread Mark Constable
On 14/02/16 03:20, Serge Hallyn wrote: but inside a container I get... ~ /sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy Failed to set capabilities on file `/usr/bin/caddy' (Invalid argument) If not in a user namespace, ... well it works for me, but you may have to edit the files under /u

[lxc-users] setcap capabilities

2016-02-13 Thread Mark Constable
Outside a container on the host I can... ~ /sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy ~ getcap /usr/bin/caddy /usr/bin/caddy = cap_net_bind_service+ep but inside a container I get... ~ /sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy Failed to set capabilities on file `/usr/bin/ca

Re: [lxc-users] make a nginx webserver in a lxc container available to the local wireless lan

2015-12-09 Thread Mark Constable
On 09/12/15 21:41, Eldon Kuzhyelil wrote: auto lo iface lo inet loopback You may be missing... auto eth0 iface eth0 inet manual auto br0 iface br0 inet static [...] ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linux

Re: [lxc-users] make a nginx webserver in a lxc container available to the local wireless lan

2015-12-08 Thread Mark Constable
On 08/12/15 18:07, Eldon Kuzhyelil wrote: Okay i am now doing doing it with ethernet. So basically i am trying to setup a webserver in my lxc container and my system is connected to router via ethernet cable.I want the web page to be visible from my another system connected to this LAN. What i

Re: [lxc-users] make a nginx webserver in a lxc container available to the local wireless lan

2015-12-07 Thread Mark Constable
On 07/12/15 15:41, Eldon Kuzhyelil wrote: Mr.Tamas if u have any documents for the options you have mentioned please provide them as i am new to this domain. If you are testing LXD on a laptop then keep in mind you can't use bridging via WIFI so if you can use an ethernet cable from your main

Re: [lxc-users] re Cockpit-like frontend for LXD?

2015-11-21 Thread Mark Constable
On 21/11/15 23:22, brian mullan wrote: I've not seen any project announce such a tool yet. Me either so thanks for your comments and links. I'm hoping a properly enabled LXD OpenStack would let me use OpenStack "services" to deploy, orchestrate, monitor and manage and LXD containers/server c

[lxc-users] Cockpit-like frontend for LXD?

2015-11-21 Thread Mark Constable
Is anyone aware of any kind of systemd-smart/websocket based web frontend for the lxd daemon similar in scope to http://cockpit-project.org/ ? ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-us

Re: [lxc-users] Ubuntu container IP address

2015-11-19 Thread Mark Constable
On 20/11/15 09:53, Robert Koretsky wrote: And what generally is the tone of communication on this user mailing list? Helpful and friendly, or contentious and unfriendly? A few replies were posted to your other thread, including some boilerplate configs from me and some pertinent links and sugg

Re: [lxc-users] lxcbr0?

2015-11-18 Thread Mark Constable
On 18/11/15 08:22, Robert Koretsky wrote: I have successfully installed and created/started LXC containers on Ubuntu 15.10, but cannot get them to be visible on my home network. I do an ifconfig on both the host and in a container, and see the IPv4 address of lxcbr0 as 10.0.3.1, but after rea

Re: [lxc-users] Dotted container names now invalid?

2015-10-07 Thread Mark Constable
On 07/10/15 18:53, Stéphane Graber wrote: Is there any chance this restriction could be loosened slightly to include a dot char to re-enable a FQDN for container names? Not all operating systems we may run on at some point support dots in their hostnames, so allowing this would make things inco

Re: [lxc-users] Dotted container names now invalid?

2015-10-06 Thread Mark Constable
On 06/10/15 20:48, Stéphane Graber wrote: Why are dotted domain-like container names now invalid? As the container name is set as the container hostname and may be included in DNS records through the use of DHCP, we needed it to comply to both hostname and DNS records specifications. Right, s

[lxc-users] Dotted container names now invalid?

2015-10-05 Thread Mark Constable
lxc v0.19 on Ubuntu 15.10 host. ~ lxc launch wily abc Creating abc done. Starting abc done. ~ lxc launch wily abc.lxc Creating abc.lxc error: Invalid container name The 2nd one above used to work. Why are dotted domain-like container names now invalid? _

Re: [lxc-users] Configuring LXC containers to use a host bridge under CentOS 7

2015-08-29 Thread Mark Constable
On 29/08/15 23:54, Peter Steele wrote: For example, I see references to the file /etc/network/interfaces. Is this an LXC thing or is this a standard file in Ubuntu networking? It's a standard pre-systemd debian/ubuntu network config file. Mark Constable asked a related question ste

[lxc-users] Configuring LXC containers to use a host bridge under Ubuntu Wily

2015-08-29 Thread Mark Constable
So not to hijack Peter Steeles CentOS thread I'd like to ask a similar question about the best way to tweak either the LXC network settings or /etc/network/interfaces to provide the missing pieces for non-NAT bridging. I modify lxc-net to bring up a bridge using my "native" internal LAN network

Re: [lxc-users] lxd 0.16 lxcbr0 not starting

2015-08-23 Thread Mark Constable
On 24/08/15 08:19, Stéphane Graber wrote: I'm not aware of any change there. Can you manually run: sudo lxd --group lxd --debug Thanks for looking into this and apologies to everyone else for a large dump. Just 2 containers, this is the above startup then a "lxc list" then a "lxc start g

Re: [lxc-users] lxd 0.16 lxcbr0 not starting

2015-08-22 Thread Mark Constable
To continue from the previous post, I just noticed this... Aug 23 16:50:04 mbox audit[2550]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/" pid=2550 comm="systemd" flags="ro, nosuid, nodev, noexec, remount, stric

[lxc-users] lxd 0.16 lxcbr0 not starting

2015-08-22 Thread Mark Constable
I just did an update on a 15.10 host and a new version of lxd and lxd-client showed up but on reboot my lxcbr0 bridge does not get created, as it had been up till now. The only journald error I can see is... Aug 23 15:39:29 mbox lxd[2980]: error: cannot listen on https socket: listen tcp 192.168

Re: [lxc-users] lxd error saving config file for the container failed

2015-08-16 Thread Mark Constable
On Sunday, August 16, 2015 08:50:54 PM Mark Constable wrote: > Just updated kubuntu 15.10 and rebooted and now getting this error... > error saving config file for the container failed I just did an strace lxc start goldcoast.org and it seems to be getting stuck using the API so I susp

[lxc-users] lxd error saving config file for the container failed

2015-08-16 Thread Mark Constable
Just updated kubuntu 15.10 and rebooted and now getting this error... ~ lxc start goldcoast.org --debug DBUG[08-16|20:46:19] fingering the daemon DBUG[08-16|20:46:19] raw response: {"type":"sync","status":"Success","status_code":200,"metadata":{"api_compat":1,"auth":"trusted","config":{"core.htt

Re: [lxc-users] [SOLVED] lxd not providing port 8443

2015-08-12 Thread Mark Constable
> And indeed it does so "lxd config set core.https_address 192.168.0.2" got > me a port :8443 on my local host as soon as I hit enter, as advertised. However after a reboot I got an error about no port for the config option and lxd refused to start which made it awkward to update the config option

[lxc-users] [SOLVED] lxd not providing port 8443

2015-08-12 Thread Mark Constable
On Tuesday, August 11, 2015 10:25:47 PM Kevin LaTona wrote: > > However, neither my local or remote test machines have anything running on > > port 8443. Is there some "trick" to start lxd plus access via port 8443? Yes, there is :-) > There was an issue like this back around 0.8 but it was fixed

[lxc-users] lxd not providing port 8443

2015-08-11 Thread Mark Constable
I have 2 *buntu 15.10 hosts and my local one has a few trusty, utopic and wily containers. I've just updated a local LAN remote NAS to wily (so both ends run the same version of lxd/lxc) and want to test copying and migration. However, neither my local or remote test machines have anything running

Re: [lxc-users] Correct way to rsync /var/lib/lxd

2015-08-08 Thread Mark Constable
On Sat, 8 Aug 2015 06:32:26 PM Serge Hallyn wrote: > > I'm just trying to do a simple rsync backup of /var/lib/lxd/ to a local NAS > > Not valid - is that because the NAS only supports a single uid, i.e. it's vfat > or somesuch? Or does it support a smaller range? No it's a ubuntu 15.04 server b

[lxc-users] Correct way to rsync /var/lib/lxd

2015-08-08 Thread Mark Constable
I'm just trying to do a simple rsync backup of /var/lib/lxd/ to a local NAS and get these errors as root on the host. I understand the issue of subgids and subuids not being valid on the target machine (the below errors are coming from the destination) outside the normal range of uid/gids but I'

[lxc-users] LXD on Archlinux?

2015-07-26 Thread Mark Constable
I would like to know if anyone is aware of any work to get LXD up and running on Archlinux? If not, any thoughts as to whether it would be feasible? I know their stock kernel package does not support user namespaces so it would involve a custom kernel.

Re: [lxc-users] LXD container how to start network?

2015-07-23 Thread Mark Constable
On Thursday, July 23, 2015 02:51:56 PM Fajar A. Nugraha wrote: > > That's a bizarre workaround. It looks like the best "workaround" for > > now is to stick to utopic containers and try again in another month. > > I believe I've said this before, but you'd better not use utopic as it's > EOLed toda

Re: [lxc-users] LXD container how to start network?

2015-07-22 Thread Mark Constable
On Thursday, July 23, 2015 01:32:33 PM Fajar A. Nugraha wrote: > > How do you folks get a working network with current wily containers? > > IIRC networking on unprivileged systemd container was broken due to > some changes in systemd. This is true even on current release (vivid). Yep, something f

Re: [lxc-users] LXD container how to start network?

2015-07-22 Thread Mark Constable
On Thursday, July 23, 2015 08:55:21 AM Andrey Repin wrote: > > *buntu wily host and unprivileged lxd containers. This used to work but > > as you can see I seem to need dbus... on a headless server! > > Yes, you need dbus. It is a generic communication service, has nothing to > do with not being a

[lxc-users] LXD container how to start network?

2015-07-22 Thread Mark Constable
*buntu wily host and unprivileged lxd containers. This used to work but as you can see I seem to need dbus... on a headless server! lxc exec w1 -- bash -c 'systemctl restart networking.service' Failed to get D-Bus connection: No such file or directory Using a wily image from today, how do I start

Re: [lxc-users] How to increase space of existing container

2015-07-21 Thread Mark Constable
On Monday, July 20, 2015 08:44:12 AM Mahesh Pujari wrote: > I had created a container with default settings and now it fails to start > due to space issues, how can I increase space of a container which has > exhausted its space. Most likely you have to deal with this on a lower filesystem or hard

Re: [lxc-users] multiple containers on the same vlan

2015-06-15 Thread Mark Constable
On Mon, 15 Jun 2015 10:33:14 AM Genco Yilmaz wrote: > > Is there any way to link multiple containers without using softbridge > > +veth pair by using network.type vlan? or what is the best practice > > in this type of topology? If you just want to expose containers to the hosts private or public n

[lxc-users] LXD v0.11 and vivid containers

2015-06-09 Thread Mark Constable
I was excited to see 0.11 arrive on a wily host and thought it might solve a few of the issues with systemd-journal not starting up and therefor neither the network but it doesn't seem so. In fact after a launch of todays vivid image, which starts, there is no IP (as before) and I can't exec bash i

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

2015-06-05 Thread Mark Constable
On Fri, 5 Jun 2015 05:05:21 PM Serge Hallyn wrote: > > > > Does this mean that btrfs is considered a second class option > > > > > > It is, for a few reasons. > > > > Sorry to persist with this but would you mind elaborating briefly on > > some of those reasons or point me to further discussion p

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

2015-06-05 Thread Mark Constable
On Fri, 5 Jun 2015 03:54:06 PM Serge Hallyn wrote: > > Does this mean that btrfs is considered a second class option > > with the primary focus and most of your future lxd backing > > store effort being put into LVM? > > It is, for a few reasons. Sorry to persist with this but would you mind elab

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

2015-06-05 Thread Mark Constable
On Fri, 5 Jun 2015 07:58:02 AM Tycho Andersen wrote: > LVM support is Coming Soon, and making it fast and stable > will likely be a primary focus. On Fri, 5 Jun 2015 01:57:34 PM Serge Hallyn wrote: > What will become the recommended backing store is actualy > not yet implemented, but will be soon

[lxc-users] lxc snapshot

2015-06-04 Thread Mark Constable
Is there a tutorial or blog post about using lxc snapshot anywhere? ~ lxc version 0.10 ~ lxc list ++-+---+--+---+---+ |NAME| STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS | ++-+---+--+

[lxc-users] LXD logo usage rights

2015-06-04 Thread Mark Constable
What is the status of redistribution rights for the LXD logo? I want to start a series of blog posts about my experiences with LXD so the current logo would be nice to re-use but I don't want Canonical lawyers, or anyone, to come after me with nasty takedown notices. __

Re: [lxc-users] LXC multi distribution installer & boot2lxc VM based on Alpine Linux

2015-06-03 Thread Mark Constable
On Thu, 4 Jun 2015 01:33:03 AM Tobby Banerjee wrote: > https://www.flockport.com/start What's with this login first crap? https://www.flockport.com/download/flockport-install.tar.xz I don't appreciate being spammed on a public mailing list like this no matter how good you think your intentions a

Re: [lxc-users] LXC shell argument -- what, what and how

2015-05-22 Thread Mark Constable
On Fri, 22 May 2015 08:06:13 PM Kevin LaTona wrote: > Can any one clue me in on what the -- is used for in the > lxc exec call? It's a shell thing. Anything before the -- is passed directly to the calling program and anything after the -- is ignored but generally available to any program launched

Re: [lxc-users] LXD can ping from container out, but not in from outside network

2015-05-16 Thread Mark Constable
On Sat, 16 May 2015 08:03:26 PM Kevin LaTona wrote: > With a LXD based LXC container what iptables magic does one need to > be able to access these 10.0.3.x containers from outside that local > network? > > So far I got it so I log into a 10.0.3.x based container and ping the > outside world. The

Re: [lxc-users] LXD assigning static IP's at start tp containers

2015-05-16 Thread Mark Constable
On Sat, 16 May 2015 09:56:04 AM Kevin LaTona wrote: > I was thinking that by just updating the /etc/default/lxc-net config file > from the 10.x.x.x to a 192.168.x.x that was going to do it for me. Try this, first make sure ifupdown and NetworkManager are not interfering... mv /etc/network/interfa

[lxc-users] [FWIW] Autostart lxc (lxd) containers

2015-05-16 Thread Mark Constable
This info was hard (for me) to come by so maybe it will help someone else just starting out with lxc (lxd) containers. I'm using wily on a laptop host with btrfs. Condensed shell history as non-root user... lxc remote add upstream images.linuxcontainers.org lxc image list upstream: lxc image copy

Re: [lxc-users] LXD assigning static IP's at start tp containers

2015-05-16 Thread Mark Constable
On Fri, 15 May 2015 10:54:08 PM Kevin LaTona wrote: > I was reading about ways in legacy LXC of being able to have the DHCP server > assign static IP's to containers at startup based upon container name. > If one is using Ubuntu 15.04, systemd and LXD is that still possible? Hey Kevin, I just set

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

2015-05-10 Thread Mark Constable
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 autostart them, the ifupdown networking system does

Re: [lxc-users] lxc.aa_allow_incomplete in vivid containers

2015-05-08 Thread Mark Constable
On Fri, 8 May 2015 02:12:44 PM Fajar A. Nugraha wrote: > You should've said so earlier :) Doh, apologies and many thanks for your help with my confusion. I had installed that 4.1.0-999 kernel before the 3.19.0-16 kernel became available and completely forgot about it! > If that version still have

Re: [lxc-users] lxc.aa_allow_incomplete in vivid containers

2015-05-07 Thread Mark Constable
On Fri, 8 May 2015 01:37:31 PM Fajar A. Nugraha wrote: > Looks OK. This is vivid host, right? Yes. Although I just realized I updated the kernel because I could not boot onto my btrfs partition after a kernel upgrade about a week ago. ~ lxc-checkconfig Kernel configuration not found at /proc/conf

Re: [lxc-users] lxc.aa_allow_incomplete in vivid containers

2015-05-07 Thread Mark Constable
On Fri, 8 May 2015 12:49:37 PM Fajar A. Nugraha wrote: > > I thought I'd try going back to normal privileged containers which > > will at least (or did pre-systemd) autostart. > > Unprivileged (i.e. container root uid is non 0) can also autostart if > it is owned by root (i.e. located on /var/lib/

[lxc-users] lxc.aa_allow_incomplete in vivid containers

2015-05-07 Thread Mark Constable
I thought I'd try going back to normal privileged containers which will at least (or did pre-systemd) autostart. The only change from defaults is my own br0 to put the containers on my local network... ~ grep br0 /etc/lxc/* /etc/lxc/default.conf:lxc.network.link = br0 And on 15.04 I've done a sim

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Mark Constable
On 29/04/15 17:17, Fırat KÜÇÜK wrote: lxc.cgroup.memory.limit_in_bytes = 2048M but my container free -h output shows 32GB Is there anything that i missed? For me on ubuntu I had to add this to my default grub line and reboot... ~ grep cgroup /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet

Re: [lxc-users] Btrfs gquota and container disk usage limits

2015-04-04 Thread Mark Constable
On 05/04/15 02:22, david.an...@bli.uzh.ch wrote: I see that nobody replied to your question. Have you made any progress in the meantime? Not really. I've actually dropped back to using pre-systemd trusty in privileged containers until ubuntu 15.04 is released hoping that might provide better su

Re: [lxc-users] color in console not working in unprivileged containers

2015-03-21 Thread Mark Constable
On 22/03/15 02:12, Michael H. Warfield wrote: Append "linux" to the end of those lines in each file so it reads like this (for tty1.conf) exec /sbin/getty -8 38400 tty1 linux Wonderful thorough explanation, thanks Mike. FWIW it's also possible to do something like this too (not documented in

  1   2   >