[lxc-users] setting up lxd with ansible (unattended - no lxd init)

2017-03-14 Thread Spike
Hi, I'm trying to set up a host to run containers and not sure how to go about achieving the equivalent of lxd init from ansible/in an unattended fashion. I can create the bridge before hand, no prob, and I have zfs with a tank0/lxd dataset ready for it, which I can set up with lxc storage

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Caleb Everett
In order to be able to set permissions with setfacl, I need to issue the following command: zfs set acltype=posixacl On Tue, Mar 14, 2017 at 12:20 PM, Caleb Everett wrote: > That did the trick - thank you > > On Tue, Mar 14, 2017 at 11:56 AM, Benoit GEORGELIN -

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Caleb Everett
That did the trick - thank you On Tue, Mar 14, 2017 at 11:56 AM, Benoit GEORGELIN - Association Web4all < benoit.george...@web4all.fr> wrote: > It looks ok. > You should try to stop the container, umount , mount and check the > directory. > I have no ideas if that does not work . > > > > here is

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Benoit GEORGELIN - Association Web4all
It looks ok. You should try to stop the container, umount , mount and check the directory. I have no ideas if that does not work . > here is the output from: zfs get mountpoint top/lxd/containers/ > NAME PROPERTY VALUE SOURCE > top/lxd/containers/ mountpoint >

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Caleb Everett
here is the output from: zfs get mountpoint top/lxd/containers/ NAMEPROPERTYVALUE SOURCE top/lxd/containers/ mountpoint /var/lib/lxd/storage-pools/default/containers/ local and from: zfs get mounted top/lxd/containers/ NAME

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Benoit GEORGELIN - Association Web4all
- Mail original - > De: "Caleb Everett" > À: "lxc-users" > Envoyé: Mardi 14 Mars 2017 14:17:52 > Objet: Re: [lxc-users] Trouble locating rootfs > Thank you - I had done that and it was showing a mount point of: >

Re: [lxc-users] Trouble locating rootfs

2017-03-14 Thread Caleb Everett
Thank you - I had done that and it was showing a mount point of: /var/lib/lxd/storage-pools/default/containers/ but there doesn't appear to be anything there. On Tue, Mar 14, 2017 at 9:51 AM, Benoit GEORGELIN - Association Web4all < benoit.george...@web4all.fr> wrote: > - Mail original

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

2017-03-14 Thread Benoit Barthelet
thanks, that is exactly what I wanted ! On Tue, Mar 14, 2017 at 1:37 PM, Stéphane Graber wrote: > On Tue, Mar 14, 2017 at 11:22:26AM +0100, Benoit Barthelet wrote: > > ultimately I'd like to do this in python: > > > > lxc-attach --clear-env -n lxcws -v TERM=xterm > > > > So

[lxc-users] Trouble locating rootfs

2017-03-14 Thread Caleb Everett
I'm trying to set acl permissions on some files in the root file system from the host, but can't seem to find the root file systems for the containers. I'm using zfs for storage. Both /var/lib/lxd/containers/ and /var/lib/lxd/storage-pools/default/containers/ are empty. Does anyone have any

[lxc-users] cloud-init network config error

2017-03-14 Thread Claude . Durocher
I'm trying to use cloud-init to control network configuration of a Lxd container. Here's the config I use: #cloud-config.yml network: version: 1 config: - type: physical name: eth0 subnets: - type: static ipv4: true address: 10.10.10.20

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

2017-03-14 Thread Stéphane Graber
On Tue, Mar 14, 2017 at 11:22:26AM +0100, Benoit Barthelet wrote: > ultimately I'd like to do this in python: > > lxc-attach --clear-env -n lxcws -v TERM=xterm > > So far I managed to clear the env variables doing the following, but I > didn't find a way to pass the TERM env variable. > >

[lxc-users] policy for contributing patches?

2017-03-14 Thread Harald Dunkel
Hi folks, about 4 weeks ago I had sent a (simple) patch to a bug in config/init/common/lxc-containers.in to the lxc-devel mailing list. Problem: There was no response at all :-(. Pretty disappointing. This was not my first patch. In the past I found both lists lxc-users and lxc-devel quite

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

2017-03-14 Thread Benoit Barthelet
ultimately I'd like to do this in python: lxc-attach --clear-env -n lxcws -v TERM=xterm So far I managed to clear the env variables doing the following, but I didn't find a way to pass the TERM env variable. container.attach_wait(lxc.attach_run_command, ["apt-get",