Ok, you were right. And your suggested command works as intended. the role of the --config wan't clear so there may be a documentation issue here. As it is about the config file for the lxc-create and not the config file for the container.
btw, /etc as default for container rootfs doesn't seem a logical choice for me. /opt or /var seem to be more logical choice as default. It might even be better if the default container location is expicitly spelled out in default.conf. On the website i saw lxfs & lxd are they coming to gentoo too? Also i hope the openrc scripting will be carried on for a while as i don't intend to use systemd until it PROVES itself to be mature. Until now i have seem too many mishaps.. (VM's that could be setup from an iso image but would not boot and hang some where before the root filesystem is mounted with a black screen, or they end up in the initramfs system and there is nothing logged, and no tooling available to actually find out what happens (rather didn't happen, like pivoting to the actual rootfs). kind regards, Nico On Thursday 19 February 2015 08:22:44 you wrote: > I think what you want is : lxc-create -t gentoo -n test2 -P /rawstore > > -P option is meant to replace default location of container storage : > /var/lib/lxc or etc/lxc in gentoo's main ebuild. it doesn't contain > container name > rootfs and config are calculated with this value and you don't have to > specify them. > > when you put -P /rawstore/test2, this mean that container will be in > "/rawstore/test2/test2". template will create config in > /rawstore/test2/test2/config but, you specified /rawstore/test2/config > > I think error message should have been "file not found". > Perhaps there is some correction to be done in template ou code... > > btw, I provide ebuilds with corrected (/var/lib/lxc) default container store > on github : https://github.com/gza/gentoo-lxc-overlay > > regards, > > Guillaume ZITTA > > Le 18/02/2015 23:45, [email protected] a écrit : > > On Wednesday 18 February 2015 23:28:58 you wrote: > >> I can't reproduce that, can you post the complete "lxc-create" command > >> line > >> ? > >> > > lxc-create -t gentoo -n test2 -P /rawstore/test2 > > --dir=/rawstore/test2/rootfs> > > --config /rawstore/test2/config _______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
