Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find create container script #423

Closed
BitsofSpace opened this issue Sep 4, 2018 · 6 comments
Closed

Can't find create container script #423

BitsofSpace opened this issue Sep 4, 2018 · 6 comments
Assignees

Comments

@BitsofSpace
Copy link

I'm following the lxc documentation but when trying to run the create container script, it says it doesn't exist. I can't find this file.

I appreciate help with this.

Thanks in advance.

@danypr92
Copy link
Member

danypr92 commented Sep 6, 2018

Hi!
I'm sorry, but that documentation is obsolete, we need to update it.

Now we are using this devenv tool. This tool is basically the old script but we can use it in all own projects.

You only need clone the devenv repo and make it.
All this info are in the devenv repository.

Thank you for showing us this documentation problem. 😉

@danypr92
Copy link
Member

danypr92 commented Sep 6, 2018

I update the lxc documentation.

@sauloperez @enricostano @BitsofSpace Is clear now or you think that needs more information?

@BitsofSpace
Copy link
Author

@danypr92
Gracias por la actualización. Al correr 'sudo devenv' en el directorio de 'time-provisioning' me sale:

~/.bin/timeoverflow-provisioning$ sudo devenv
Creating config file: /tmp/ubuntu.timeoverflow.conf

  • CONFIGURATION:
    • Name: timeoverflow
    • Distribution: ubuntu
    • Release: xenial
    • LXC Configuration: /tmp/ubuntu.timeoverflow.conf
    • Host: local.timeoverflow.org
    • Project Name: timeoverflow
    • Project Directory: /home/grieta/.bin/timeoverflow
    • Will mount on: /var/www/timeoverflow
    • User: timeoverflow
    • Group: timeoverflow

Creating container timeoverflow
**lxc-create: confile.c: parse_line: 2008 unknown key lxc.net.0.type
lxc-create: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.net.0.type = veth

lxc-create: confile.c: parse_line: 2008 unknown key lxc.net.0.type
lxc-create: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.net.0.type = veth

lxc-create: tools/lxc_create.c: main: 318 Error creating container timeoverflow**

@danypr92
Copy link
Member

danypr92 commented Sep 26, 2018

@BitsofSpace si nos puedes copiar el resultado de:
cat /tmp/ubuntu.timeoverflow.conf
nos ayudaría mucho para saber como resolver tu problema.

También si puedes indicar que versión de LXC estas utilizando:
lxc-create --version

En la versión 2.1 de LXC se cambió la configuración referente al network de lxc.network.type a lxc.net.[i].type. Al parecer el error es con la key lxc.net.0.type, por lo que si tienes una versión de LXC anterior a la 2.1.0 puede que este sea el fallo.

https://linuxcontainers.org/lxc/news/#network-configuration

Gracias!

@BitsofSpace
Copy link
Author

BitsofSpace commented Sep 27, 2018

@danypr92
la versión de lxc que tengo es '2.0.7' y lo que escupe el cat de ese archivo es:
# Network lxc.net.0.type = veth lxc.net.0.flags = up lxc.net.0.link = lxcbr0

# Volumes lxc.mount.entry = /home/grieta/.bin/timeoverflow /var/lib/lxc/timeoverflow/rootfs//var/www/timeoverflow none bind,create=dir 0.0

@danypr92
Copy link
Member

danypr92 commented Oct 2, 2018

@BitsofSpace disculpa por tardar en contestar.
Parece que tendrás que actualizar la versión de lxc que tienes instalada, pues como comento en el anterior comentario:

En la versión 2.1 de LXC se cambió la configuración referente al network de lxc.network.type a lxc.net.[i].type. Al parecer el error es con la key lxc.net.0.type, por lo que si tienes una versión de LXC anterior a la 2.1.0 puede que este sea el fallo.
linuxcontainers.org/lxc/news/#network-configuration

Un saludo!

@danypr92 danypr92 self-assigned this Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants