Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Invalid arguments for command /usr/bin/lxc-create #430

Closed
hackel opened this issue Dec 16, 2016 · 4 comments
Closed

Invalid arguments for command /usr/bin/lxc-create #430

hackel opened this issue Dec 16, 2016 · 4 comments
Labels

Comments

@hackel
Copy link

hackel commented Dec 16, 2016

Just playing with this for the first time. It appears the lxc-wrapper script is failing when calling lxc-create. I've included the debug output.
DEBUG subprocess: stderr: Invalid arguments for command /usr/bin/lxc-create, provided args: ["-B", "best", "--template", "/home/hackel/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/scripts/lxc-template", "--name", "lxc-test_default_1481915208483_8705", "--", "--tarball", "/home/hackel/.vagrant.d/boxes/fgrehm-VAGRANTSLASH-precise64-lxc/1.2.0/lxc/rootfs.tar.gz", "--config", "/home/hackel/.vagrant.d/boxes/fgrehm-VAGRANTSLASH-precise64-lxc/1.2.0/lxc/lxc-config"]

I tried this using the default configuration in an auto-generated Vagrantfile. I tried both the fgrehm/precise64-lxc and developerinlondon/ubuntu_lxc_xenial_x64 boxes, but I don't think that's the issue here.

Ubuntu 16.10
lxd: 2.6.2-0ubuntu3ubuntu16.10.1ppa1
lxc1: 2.0.6-0ubuntu4ubuntu16.10.1ppa1
vagrant: 1.8.5+dfsg-2

vagrant-debug-log.txt

@brejoc
Copy link

brejoc commented Mar 10, 2017

With version 2 this command is no longer existing. A lot of things have changed and e.g. lxc launch ubuntu:14.04 my-ubuntu can instead be used to launch a container. Also LXD now has a REST-API which might be a better fit: https://linuxcontainers.org/lxd/rest-api/

There is even a Ruby-Client: http://jeffshantz.github.io/hyperkit/

@iamjvn
Copy link

iamjvn commented Apr 13, 2017

I may have encountered a similar issue. The following worked for me, but it's unclear why:

$ vagrant plugin list
$ vagrant plugin uninstall vagrant-lxc
$ sudo mv /usr/local/bin/vagrant-lxc-wrapper /tmp
$ vagrant plugin install vagrant-lxc
$ export VAGRANT_LOG=debug
$ vagrant up <your node name>

@aidalgol
Copy link

I get almost the exact same error on Debian jessie (stable), which ships lxc 1.0.6, which still has the command lxc-create.

System info:
Debian 8.7
lxc 1:1.0.6-6+deb8u5
vagrant 1.6.5+dfsg1-2

vagrant-debug-log.txt

@fgrehm fgrehm added the ignored label Nov 17, 2022
@fgrehm
Copy link
Owner

fgrehm commented Nov 17, 2022

Hey, sorry for the silence here but this project is looking for maintainers 😅

As per #499, I've added the ignored label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue 👋

@fgrehm fgrehm closed this as completed Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants