Re: [lxc-users] Questions on how to "lxd init" again, reinstall, upgrade and downgrade

2017-03-15 Thread Simos Xenitellis
On Tue, Mar 14, 2017 at 2:11 AM, Simos Xenitellis wrote: > Hi All, > > I am writing a post on LXD and > 1. how to run "lxd init" again (keeping the ZFS allocated space) > 2. how to run "lxd init" again (clearing up the ZFS allocated space, > allocate fresh space) > 3.

[lxc-users] lxc-attach vs python3 attach_wait

2017-03-15 Thread Alexander Dreweke
Hi I'm trying to script the creation on various LXC containers. Therefor I would like to execute a script that finalizes the container. But the script fails when it tries to interact with systemd, the error message reads "Failed to connect to bus: No such file or directory" A minimal

Re: [lxc-users] cloud-init network config error

2017-03-15 Thread Sergiusz Pawlowicz
On Tue, Mar 14, 2017 at 8:49 PM, wrote: > #cloud-config.yml > network: > version: 1 > config: > - type: physical > name: eth0 > subnets: > - type: static > ipv4: true > address: 10.10.10.20 > netmask:

Re: [lxc-users] is there a lxc-attach -v switch equivalent in lxc python bindings ?

2017-03-15 Thread Benoit Barthelet
apologies, this was well described here : https://lists.linuxcontainers.org/pipermail/lxc-devel/2013-August/004898.html On Wed, Mar 15, 2017 at 9:15 AM, Benoit Barthelet < benoit.barthe...@gmail.com> wrote: > it seems like there's a built-in kwarg, extra_env_vars, that does the -v > switch job

Re: [lxc-users] is there a lxc-attach -v switch equivalent in lxc python bindings ?

2017-03-15 Thread Benoit Barthelet
it seems like there's a built-in kwarg, extra_env_vars, that does the -v switch job of lxc-attach in fact, I wrapped it in a function here but it could be written without : def run_command(container, command, env={}): env['LANG'] = "C.UTF-8" env['TERM'] = "xterm" return