fgrehm / vagrant-lxc

LXC provider for Vagrant
MIT License
1.21k stars 181 forks source link

Previously working vagrant-lxc stopped working #378

Closed destfinal closed 1 year ago

destfinal commented 9 years ago

Hi,

I am left with no clue why my vagrant lxc stopped working all of a sudden. My set up is as follows:

OS: Fedora21 (with kernel 4.0.4-202.fc21.x86_64 and latest updates)

Following are lxc related packages:

Following are ruby related packages:

Following are the installed vagrant plugins:

Following is list of gems installed:

I had some machines created using the vagrant-lxc before. I was trying to provision my vms using ansible before having blocked with this issue.

On a fine day when trying to vagrant up a new machine I was given the 'lxc' package not found error. With the help of some of the discussions in this forum, I created a symlink /opt/vagrant/embedded/bin/ruby pointing to /usr/bin/ruby (as the vagrant-lxc-wrapper shebang was looking in this location). Now when up'ing my containers, the following error occurs:

There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-ls"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.

Running:

sudo /usr/local/bin/vagrant-lxc-wrapper lxc-ls 

returns the following error:

Invalid arguments for command /bin/lxc-ls, provided args: []

However running

sudo /usr/local/bin/vagrant-lxc-wrapper /usr/bin/lxc-ls

returns the list of the containers.

Can somebody help me find what happened all of a sudden? I can start working around the issues one by one which does not seem to be very efficient, if the issue is already known and there is a quick fix.

Please let me know if you need more information in this regard.

Thanks

PS: Though I am reasonably familiar with bash and programming, I am not a ruby person.

destfinal commented 9 years ago

Missed a bit. Vagran version is vagrant-1.7.2-6.fc21.1.noarch.

Thanks

destfinal commented 9 years ago

One more update (with some progress). I uninstalled and re-installed the vagrant-lxc; don't now what changed. Now the error is:

There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "rm", "/usr/share/lxc/templates/lxc-vagrant-tmp-vag-lxc_myserver_1435135359266_2786"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.

Obviously the rm command would not succeed as the file is not there as this is the first time I am trying to create the server.

Any thoughts?

Thanks

globin commented 9 years ago

You might want to follow the instructions in the error message and run vagrant with VAGRANT_LOG=DEBUG, e.g.

VAGRANT_LOG=DEBUG vagrant up --provider lxc
gregoryolsen commented 8 years ago

Hi,

I'm having a very similar, if not the same, problem where vagrant-lxc was working and now it's not.

Before when it worked (early May 2016), I was running "vagrant up" as root, and I was able to "vagrant ssh" in with no problem.

Yesterday I ran "vagrant up" from my user account (geek):

$ vagrant up --provider=lxc
The provider 'lxc' could not be found, but was requested to
back the machine 'deb7a'. Please use a provider that exists.

Obviously I needed to install vagrant-lxc from my user account:

$ vagrant plugin install vagrant-lxc
Installing the 'vagrant-lxc' plugin. This can take a few minutes...
Installed the plugin 'vagrant-lxc (1.2.1)'!

So far so good but the "vagrant up" fails:

$ vagrant up --provider=lxc
[sudo] password for geek: 
Bringing machine 'deb7a' up with 'lxc' provider...
==> deb7a: Checking if box 'fgrehm/wheezy64-lxc' is up to date...
==> deb7a: Setting up mount entries for shared folders...
    deb7a: /vagrant => /srv/vagrant/lxc/deb7a
    deb7a: /vagrant_home_root => /home/vagrant/root
==> deb7a: Starting container...
There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.

Running the failed command from terminal shows the error from vagrant-lxc-wrapper:

$ sudo /usr/local/bin/vagrant-lxc-wrapper cat /srv/lxc/deb7a/config
Invalid arguments for command /bin/cat, provided args: ["/srv/lxc/deb7a/config"]

UPDATE: That looks like the same problem as #344.

I tried generating the vagrant-lxc sudoers file like so:

$ sudo vagrant lxc sudoers

That made no difference.

I also tried generating the vagrant-lxc sudoers file without sudo:

$ vagrant lxc sudoers

That didn't work either.

Not having success I went back to try "vagrant up" from the root account, and now it too fails with the same error:

# vagrant up
Bringing machine 'deb7a' up with 'lxc' provider...
==> deb7a: Checking if box 'fgrehm/wheezy64-lxc' is up to date...
==> deb7a: Setting up mount entries for shared folders...
    deb7a: /vagrant => /srv/vagrant/lxc/deb7a
    deb7a: /vagrant_home_root => /home/vagrant/root
==> deb7a: Starting container...
There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.

At some point I uninstalled and reinstalled vagrant-lxc from the root account. I'd like to say I attempted "vagrant up" from root before the reinstall but I can't swear to it.

One thing certain is a newer vagrant-lxc is now installed.

I tried to solve on my own by reinstalling from my local git repo on branch v1.2.1 [aa5fb7a]. However I don't know Ruby (yet) and failed to get it to install vagrant-lxc from my local repo. If I knew how to do that, I could test from an earlier point in time and perhaps narrow down if the problem was introduced by a later commit, or if it's something in my environment.

Here it is with DEBUG turned on:

$ VAGRANT_LOG=DEBUG vagrant up
 INFO global: Vagrant version: 1.8.1
 INFO global: Ruby version: 2.2.3
 INFO global: RubyGems version: 2.4.5.1
 INFO global: VAGRANT_LOG="DEBUG"
 INFO global: VAGRANT_OLD_ENV_USER="geek"
 INFO global: VAGRANT_OLD_ENV_HISTIGNORE="&:[bf]g:x:exit"
 INFO global: VAGRANT_OLD_ENV_TERMINATOR_UUID="urn:uuid:9b7b2210-b326-4d1e-b31d-bb5d9bc7caf0"
 INFO global: VAGRANT_OLD_ENV_GDMSESSION="xfce"
 INFO global: VAGRANT_OLD_ENV_DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-Xt87dRf5nB,guid=7d1c1c06b093340576b7371757400e1d"
 INFO global: VAGRANT_OLD_ENV_INFOPATH="/usr/local/share/info:/usr/share/info/emacs-info:/usr/share/info"
 INFO global: VAGRANT_OLD_ENV_GLADE_PIXMAP_PATH=":"
 INFO global: VAGRANT_OLD_ENV_RBENV_SHELL="sh"
 INFO global: VAGRANT_OLD_ENV_XDG_MENU_PREFIX="xfce-"
 INFO global: VAGRANT_OLD_ENV_VAGRANT_LOG="DEBUG"
 INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant"
 INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
 INFO global: VAGRANT_OLD_ENV_HISTSIZE="60000"
 INFO global: VAGRANT_OLD_ENV_WINDOWPATH="7"
 INFO global: VAGRANT_OLD_ENV_XDG_RUNTIME_DIR="/run/user/1001"
 INFO global: VAGRANT_OLD_ENV_XAUTHORITY="/var/run/gdm3/auth-for-geek-g8NmFD/database"
 INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_ID="2"
 INFO global: VAGRANT_OLD_ENV_PAGER="less"
 INFO global: VAGRANT_OLD_ENV_HISTCONTROL="ignoreboth"
 INFO global: VAGRANT_OLD_ENV_LESSOPEN="|lesspipe %s"
 INFO global: VAGRANT_OLD_ENV_COLORTERM="gnome-terminal"
 INFO global: VAGRANT_OLD_ENV_GNOME_KEYRING_CONTROL="/run/user/1001/keyring-aE8tNe"
 INFO global: VAGRANT_OLD_ENV_GLADE_MODULE_PATH=":"
 INFO global: VAGRANT_OLD_ENV_SHLVL="2"
 INFO global: VAGRANT_OLD_ENV_DISPLAY=":0.0"
 INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color"
 INFO global: VAGRANT_OLD_ENV_GNOME_KEYRING_PID="12439"
 INFO global: VAGRANT_OLD_ENV_LOGNAME="geek"
 INFO global: VAGRANT_OLD_ENV_GPG_AGENT_INFO="/tmp/gpg-bfyMiW/S.gpg-agent:12655:1"
 INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/tmp/ssh-KfU63GmRj6zB/agent.12456"
 INFO global: VAGRANT_OLD_ENV_GLADE_CATALOG_PATH=":"
 INFO global: VAGRANT_INSTALLER_ENV="1"
 INFO global: VAGRANT_OLD_ENV_XDG_SEAT="seat0"
 INFO global: VAGRANT_OLD_ENV_WINDOWID="90177540"
 INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
 INFO global: VAGRANT_OLD_ENV_XDG_CONFIG_DIRS="::/etc/xdg"
 INFO global: VAGRANT_OLD_ENV_PATH="/home/geek/.rbenv/shims:/home/geek/bin:/opt/jee/glassfish4/glassfish/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/puppetlabs/bin:/home/geek/work/C/ost"
 INFO global: VAGRANT_OLD_ENV_HOME="/home/geek"
 INFO global: VAGRANT_OLD_ENV_XDG_DATA_DIRS="/usr/share/xfce4:/usr/share:/usr/local/share::/usr/share"
 INFO global: VAGRANT_OLD_ENV_JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true"
 INFO global: VAGRANT_OLD_ENV_USERNAME="geek"
 INFO global: VAGRANT_OLD_ENV__="/opt/vagrant/bin/vagrant"
 INFO global: VAGRANT_INSTALLER_VERSION="2"
 INFO global: VAGRANT_OLD_ENV_SESSION_MANAGER="local/proteus:@/tmp/.ICE-unix/12637,unix/proteus:/tmp/.ICE-unix/12637"
 INFO global: VAGRANT_OLD_ENV_UDEdir=""
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_COOKIE="3c57545fd9007fcac1f08fcd00001118-1463815705.67696-1657073312"
 INFO global: VAGRANT_OLD_ENV_CDPATH="/etc/:/var/:./:~/:../:../../:~/fav/"
 INFO global: VAGRANT_OLD_ENV_XDG_VTNR="7"
 INFO global: VAGRANT_OLD_ENV_PWD="/srv/vagrant/lxc/deb7a"
 INFO global: VAGRANT_OLD_ENV_JAVA_HOME="/opt/jdk/jdk1.8.0_74"
 INFO global: VAGRANT_OLD_ENV_ORBIT_SOCKETDIR="/tmp/orbit-geek"
 INFO global: VAGRANT_OLD_ENV_DESKTOP_SESSION="xfce"
 INFO global: VAGRANT_OLD_ENV_HISTFILESIZE="60000"
 INFO global: VAGRANT_OLD_ENV_SSH_AGENT_PID="12607"
 INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
 INFO global: Plugins:
 INFO global:   - bundler = 1.10.6
 INFO global:   - mime-types = 1.25.1
 INFO global:   - rest-client = 1.6.9
 INFO global:   - vagrant-lxc = 1.2.1
 INFO global:   - vagrant-share = 1.1.5
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/pushes/atlas/plugin.rb
 INFO manager: Registered plugin: atlas
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/pushes/noop/plugin.rb
 INFO manager: Registered plugin: noop
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/pushes/ftp/plugin.rb
 INFO manager: Registered plugin: ftp
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/pushes/heroku/plugin.rb
 INFO manager: Registered plugin: heroku
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/pushes/local-exec/plugin.rb
 INFO manager: Registered plugin: local-exec
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/suse/plugin.rb
 INFO manager: Registered plugin: SUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/darwin/plugin.rb
 INFO manager: Registered plugin: Mac OS X host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/hosts/null/plugin.rb
 INFO manager: Registered plugin: null host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/synced_folders/rsync/plugin.rb
 INFO manager: Registered plugin: RSync synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/docker/plugin.rb
 INFO manager: Registered plugin: docker
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/communicators/winrm/plugin.rb
 INFO manager: Registered plugin: winrm communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/smartos/plugin.rb
 INFO manager: Registered plugin: SmartOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/tinycore/plugin.rb
 INFO manager: Registered plugin: TinyCore Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/coreos/plugin.rb
 INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/esxi/plugin.rb
 INFO manager: Registered plugin: ESXi guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/photon/plugin.rb
 INFO manager: Registered plugin: VMware Photon guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/solaris11/plugin.rb
 INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/nixos/plugin.rb
 INFO manager: Registered plugin: NixOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/mint/plugin.rb
 INFO manager: Registered plugin: Mint guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/windows/plugin.rb
 INFO manager: Registered plugin: Windows guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/funtoo/plugin.rb
 INFO manager: Registered plugin: Funtoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/darwin/plugin.rb
 INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/atomic/plugin.rb
 INFO manager: Registered plugin: Atomic Host guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/guests/netbsd/plugin.rb
 INFO manager: Registered plugin: NetBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/docker/plugin.rb
 INFO manager: Registered plugin: docker-provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/hyperv/plugin.rb
 INFO manager: Registered plugin: Hyper-V provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/push/plugin.rb
 INFO manager: Registered plugin: push command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/list-commands/plugin.rb
 INFO manager: Registered plugin: list-commands command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/rdp/plugin.rb
 INFO manager: Registered plugin: rdp command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/snapshot/plugin.rb
 INFO manager: Registered plugin: snapshot command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/global-status/plugin.rb
 INFO manager: Registered plugin: global-status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/port/plugin.rb
 INFO manager: Registered plugin: port command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/login/plugin.rb
 INFO manager: Registered plugin: vagrant-login
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/provider/plugin.rb
 INFO manager: Registered plugin: provider command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/version/plugin.rb
 INFO manager: Registered plugin: version command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/powershell/plugin.rb
 INFO manager: Registered plugin: powershell command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/cap/plugin.rb
 INFO manager: Registered plugin: cap command
 INFO global: Loading plugins!
 INFO manager: Registered plugin: vagrant-share
 INFO manager: Registered plugin: vagrant-lxc
 INFO vagrant: `vagrant` invoked: ["up"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000002d19618>)
 INFO environment:   - cwd: /srv/vagrant/lxc/deb7a
 INFO environment: Home path: /home/geek/.vagrant.d
 INFO environment: Local data path: /srv/vagrant/lxc/deb7a/.vagrant
DEBUG environment: Creating: /srv/vagrant/lxc/deb7a/.vagrant
 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_plugins_loaded #<Vagrant::Action::Builder:0x00000002e58ee8>
 INFO environment: Running hook: environment_load
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_load #<Vagrant::Action::Builder:0x00000002d50a00>
 INFO cli: CLI: [] "up" []
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command []
DEBUG command: 'Up' each target VM...
 INFO loader: Set :root = ["#<Pathname:/srv/vagrant/lxc/deb7a/Vagrantfile>"]
DEBUG loader: Populating proc cache for #<Pathname:/srv/vagrant/lxc/deb7a/Vagrantfile>
DEBUG loader: Load procs for pathname: /srv/vagrant/lxc/deb7a/Vagrantfile
 INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO loader: Set "19517960_machine_deb7a" = ["[\"2\", #<Proc:0x00000002ef2318@/srv/vagrant/lxc/deb7a/Vagrantfile:21>]"]
DEBUG loader: Populating proc cache for ["2", #<Proc:0x00000002ef2318@/srv/vagrant/lxc/deb7a/Vagrantfile:21>]
 INFO loader: Loading configuration in order: [:home, :root, "19517960_machine_deb7a"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Loading from: 19517960_machine_deb7a (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO host: Autodetecting host type for [#<Vagrant::Environment: /srv/vagrant/lxc/deb7a>]
DEBUG host: Trying: slackware
DEBUG host: Trying: arch
DEBUG host: Trying: redhat
DEBUG host: Trying: freebsd
DEBUG host: Trying: gentoo
DEBUG host: Trying: suse
DEBUG host: Trying: darwin
DEBUG host: Trying: bsd
DEBUG host: Trying: linux
 INFO host: Detected: linux!
DEBUG host: Searching for cap: provider_install_lxc
DEBUG host: Checking in: linux
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: ["deb7a"]
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Finding machine that match name: deb7a
 INFO command: Active machine found with name deb7a. Using provider: lxc
 INFO environment: Getting machine: deb7a (lxc)
 INFO environment: Uncached load of machine.
 INFO loader: Set "19517960_machine_deb7a" = ["[\"2\", #<Proc:0x00000002ef2318@/srv/vagrant/lxc/deb7a/Vagrantfile:21>]"]
 INFO loader: Loading configuration in order: [:home, :root, "19517960_machine_deb7a"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Loading from: 19517960_machine_deb7a (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO box_collection: Box found: fgrehm/wheezy64-lxc (lxc)
 INFO environment: Running hook: authenticate_box_url
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: authenticate_box_url #<Vagrant::Action::Builder:0x00000002cf2950>
 INFO warden: Calling IN action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x0000000399b120>
DEBUG client: No authentication token in environment or /home/geek/.vagrant.d/data/vagrant_login_token
 INFO warden: Calling OUT action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x0000000399b120>
 INFO machine: Initializing machine: deb7a
 INFO machine:   - Provider: Vagrant::LXC::Provider
 INFO machine:   - Box: #<Vagrant::Box:0x00000003a1bf00>
 INFO machine:   - Data dir: /srv/vagrant/lxc/deb7a/.vagrant/machines/deb7a/lxc
DEBUG lxc: Found sudo wrapper : /usr/local/bin/vagrant-lxc-wrapper
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "which", "lxc-create"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
[sudo] password for geek: 
DEBUG subprocess: stdout: /usr/local/bin/lxc-create
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31989
DEBUG subprocess: Exit status: 0
DEBUG lxc: Instantiating the container for: "deb7a"
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-ls"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: bun2a
bun2b
deb7a
dev1a
dev1b
dev1beta
dev1c
devuan-final-test
devuan-jessie-box1
devuan-jessie-box2
devuan-jessie32-box3
test3-mk-devuan-vagrant-box
vg-devuan-jessie-box1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-info", "--name", "deb7a"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: Name:           deb7a
DEBUG subprocess: stdout: State:          STOPPED
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO interface: Machine: metadata ["provider", :lxc, {:target=>:deb7a}]
 INFO command: With machine: deb7a (#<Vagrant::LXC::Provider:0x00000003b44878 @logger=#<Log4r::Logger:0x00000003b44828 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @machine=#<Vagrant::Machine: deb7a (Vagrant::LXC::Provider)>, @shell=#<Vagrant::LXC::SudoWrapper:0x00000003b7d7e0 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper", @logger=#<Log4r::Logger:0x00000003b7d790 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @driver=#<Vagrant::LXC::Driver:0x00000003c11e18 @container_name="deb7a", @sudo_wrapper=#<Vagrant::LXC::SudoWrapper:0x00000003b7d7e0 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper", @logger=#<Log4r::Logger:0x00000003b7d790 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @cli=#<Vagrant::LXC::Driver::CLI:0x00000003c11df0 @sudo_wrapper=#<Vagrant::LXC::SudoWrapper:0x00000003b7d7e0 @wrapper_path="/usr/local/bin/vagrant-lxc-wrapper", @logger=#<Log4r::Logger:0x00000003b7d790 @fullname="vagrant::lxc::sudo_wrapper", @outputters=[], @additive=true, @name="sudo_wrapper", @path="vagrant::lxc", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>>, @name="deb7a", @logger=#<Log4r::Logger:0x00000003c11da0 @fullname="vagrant::provider::lxc::container::cli", @outputters=[], @additive=true, @name="cli", @path="vagrant::provider::lxc::container", @parent=#<Log4r::Logger:0x00000003b44828 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @level=1, @trace=false>>, @logger=#<Log4r::Logger:0x00000003c52238 @fullname="vagrant::provider::lxc::driver", @outputters=[], @additive=true, @name="driver", @path="vagrant::provider::lxc", @parent=#<Log4r::Logger:0x00000003b44828 @fullname="vagrant::provider::lxc", @outputters=[], @additive=true, @name="lxc", @path="vagrant::provider", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @level=1, @trace=false>, @customizations=[]>, @cap_logger=#<Log4r::Logger:0x00000003bbed80 @fullname="vagrant::capability_host::vagrant::lxc::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrant::lxc", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:lxc, #<#<Class:0x00000003bbf258>:0x00000003b7d0b0>]], @cap_args=[#<Vagrant::Machine: deb7a (Vagrant::LXC::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00000003bbf118 @items={:forwarded_ports=>#<Proc:0x00000002f933a8@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x00000002f93308@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x00000002d1df60@/opt/vagrant/embedded/gems/gems/vagrant-share-1.1.5/lib/vagrant-share.rb:39>, :snapshot_list=>#<Proc:0x00000002f93290@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/virtualbox/plugin.rb:42>}, @results_cache={}>, :docker=>#<Vagrant::Registry:0x00000003bbf078 @items={:public_address=>#<Proc:0x00000002f5d438@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/docker/plugin.rb:54>, :proxy_machine=>#<Proc:0x00000002f5d2f8@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/docker/plugin.rb:59>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x00000003bbefd8 @items={:public_address=>#<Proc:0x00000002d66d00@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/hyperv/plugin.rb:25>}, @results_cache={}>, :lxc=>#<Vagrant::Registry:0x00000003bbef10 @items={:public_address=>#<Proc:0x00000002d02d28@/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/plugin.rb:36>}, @results_cache={}>}>)
 INFO interface: info: Bringing machine 'deb7a' up with 'lxc' provider...
Bringing machine 'deb7a' up with 'lxc' provider...
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-info", "--name", "deb7a"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: Name:           deb7a
DEBUG subprocess: stdout: State:          STOPPED
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO batch_action: Enabling parallelization by default.
 INFO batch_action: Disabling parallelization because only executing one action
 INFO batch_action: Batch action will parallelize: false
 INFO batch_action: Starting action: #<Vagrant::Machine:0x00000003ac63b0> up {:destroy_on_error=>true, :install_provider=>true, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil}
 INFO machine: Calling action: up on provider LXC (deb7a)
DEBUG environment: Attempting to acquire process-lock: machine-action-3f35c3781e24d5329cdccfd2f2178d5f
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO environment: Acquired process lock: machine-action-3f35c3781e24d5329cdccfd2f2178d5f
 INFO interface: Machine: action ["up", "start", {:target=>:deb7a}]
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x00000003902d30>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x000000038d7658>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x000000038d7630>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x000000038309e8>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::IsState:0x00000003829940>
DEBUG is_state: Checking if machine state is 'not_created'
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-info", "--name", "deb7a"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: Name:           deb7a
DEBUG subprocess: stdout: State:          STOPPED
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG is_state: -- Machine state: stopped
 INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::IsState:0x00000003829940>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Warden:0x00000003762188>
 INFO warden: Calling IN action: #<Proc:0x00000003728b90@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Proc:0x000000037620c0@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x000000038d7590>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::BoxCheckOutdated:0x000000038d7568>
 INFO interface: output: Checking if box 'fgrehm/wheezy64-lxc' is up to date...
 INFO interface: output: ==> deb7a: Checking if box 'fgrehm/wheezy64-lxc' is up to date...
==> deb7a: Checking if box 'fgrehm/wheezy64-lxc' is up to date...
 INFO downloader: Downloader starting download: 
 INFO downloader:   -- Source: https://atlas.hashicorp.com/fgrehm/wheezy64-lxc
 INFO downloader:   -- Destination: /tmp/vagrant20160606-2472-rg2231
 INFO subprocess: Starting process: ["/opt/vagrant/embedded/bin/curl", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.8.1 (+https://www.vagrantup.com; ruby2.2.3)", "-H", "Accept: application/json", "--output", "/tmp/vagrant20160606-2472-rg2231", "https://atlas.hashicorp.com/fgrehm/wheezy64-lxc"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   119  100   119    0     0    123      0 --:--:-- --:--:-- --:--:--   683
100  1493  100  1493    0     0   1411      0  0:00:01  0:00:01 --:--:--  1411
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x0000000389b860>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x0000000368aaa8>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::IsState:0x00000003687510>
DEBUG is_state: Checking if machine state is 'running'
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-info", "--name", "deb7a"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: Name:           deb7a
DEBUG subprocess: stdout: State:          STOPPED
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG is_state: -- Machine state: stopped
 INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::IsState:0x00000003687510>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Warden:0x0000000261a268>
 INFO warden: Calling IN action: #<Proc:0x00000003c5f208@/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Provision:0x0000000261a088>
 INFO provision: Checking provisioner sentinel file...
 INFO provision: Sentinel found! Not provisioning.
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::EnvSet:0x00000002575e20>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::HandleForwardedPortCollisions:0x00000002575df8>
DEBUG environment: Attempting to acquire process-lock: fpcollision
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO environment: Acquired process lock: fpcollision
 INFO handle_port_collisions: Detecting any forwarded port collisions...
DEBUG handle_port_collisions: Extra in use: []
DEBUG handle_port_collisions: Remap: {}
DEBUG handle_port_collisions: Repair: true
 INFO environment: Released process lock: fpcollision
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::PrepareNFSValidIds:0x0000000243d940>
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-ls"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: bun2a
bun2b
deb7a
dev1a
dev1b
dev1beta
dev1c
devuan-final-test
devuan-jessie-box1
devuan-jessie-box2
devuan-jessie32-box3
test3-mk-devuan-vagrant-box
vg-devuan-jessie-box1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<VagrantPlugins::SyncedFolderNFS::ActionCleanup:0x00000001ebab58>
DEBUG host: Searching for cap: nfs_prune
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_prune in linux
 INFO nfs: NFS pruning. Valid IDs: ["bun2a", "bun2b", "deb7a", "dev1a", "dev1b", "dev1beta", "dev1c", "devuan-final-test", "devuan-jessie-box1", "devuan-jessie-box2", "devuan-jessie32-box3", "test3-mk-devuan-vagrant-box", "vg-devuan-jessie-box1"]
DEBUG host: Searching for cap: nfs_prune
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_prune in linux
 INFO host: Execute capability: nfs_prune [#<Vagrant::Environment: /srv/vagrant/lxc/deb7a>, #<Vagrant::UI::Prefixed:0x00000003b04e80 @logger=#<Log4r::Logger:0x00000003b04e30 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @prefix=:deb7a, @ui=#<Vagrant::UI::Colored:0x00000002d19320 @logger=#<Log4r::Logger:0x00000002d192d0 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<Log4r::Logger:0x00000002ecacc8 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000000021971a0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000002197038>, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000002ef9eb0 @depth=7>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000002ecabb0 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={:color=>:default}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @lock=#<Mutex:0x00000002f90590>>>, ["bun2a", "bun2b", "deb7a", "dev1a", "dev1b", "dev1beta", "dev1c", "devuan-final-test", "devuan-jessie-box1", "devuan-jessie-box2", "devuan-jessie32-box3", "test3-mk-devuan-vagrant-box", "vg-devuan-jessie-box1"]] (linux)
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolderCleanup:0x00000003a26b08>
 INFO synced_folder_cleanup: Invoking synced folder cleanup for: lxc
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolders:0x00000003b30a08>
 INFO synced_folders: SyncedFolders loading from cache: false
 INFO synced_folders: Synced Folder Implementation: lxc
 INFO synced_folders:   - /vagrant_home_root: /home/vagrant/root => /vagrant_home_root
 INFO synced_folders:   - /vagrant: . => /vagrant
 INFO synced_folders: Invoking synced folder prepare for: lxc
 INFO interface: output: Setting up mount entries for shared folders...
 INFO interface: output: ==> deb7a: Setting up mount entries for shared folders...
==> deb7a: Setting up mount entries for shared folders...
 INFO interface: detail: /vagrant => /srv/vagrant/lxc/deb7a
 INFO interface: detail:     deb7a: /vagrant => /srv/vagrant/lxc/deb7a
    deb7a: /vagrant => /srv/vagrant/lxc/deb7a
 INFO interface: detail: /vagrant_home_root => /home/vagrant/root
 INFO interface: detail:     deb7a: /vagrant_home_root => /home/vagrant/root
    deb7a: /vagrant_home_root => /home/vagrant/root
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::PrepareNFSSettings:0x00000003bfa718>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SetHostname:0x00000003c0f9d8>
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::WarnNetworks:0x00000003c0f9b0>
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::ForwardPorts:0x00000003c0f988>
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::PrivateNetworks:0x00000003b30a30>
 INFO warden: Calling IN action: #<Vagrant::LXC::Action::Boot:0x00000003b30990>
 INFO interface: info: Starting container...
 INFO interface: info: ==> deb7a: Starting container...
==> deb7a: Starting container...
 INFO driver: Starting container...
DEBUG driver: Prunning vagrant-lxc customizations
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "which", "lxc-version"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 1
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-create", "--version"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: 1.1.5
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-config", "lxc.lxcpath"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: /srv/lxc
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: Invalid arguments for command /bin/cat, provided args: ["/srv/lxc/deb7a/config"]
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 1
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::HandleForwardedPortCollisions:0x00000002575df8>
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x0000000389b860>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x000000038d7630>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-3f35c3781e24d5329cdccfd2f2178d5f
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x0000000371ab08>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::LXC::Errors::ExecuteError: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.>
ERROR vagrant: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
ERROR vagrant: /home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/sudo_wrapper.rb:51:in `block in execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/retryable.rb:17:in `retryable'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/sudo_wrapper.rb:41:in `execute'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/sudo_wrapper.rb:18:in `run'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/driver.rb:76:in `config_string'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/driver.rb:235:in `prune_customizations'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/driver.rb:106:in `start'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/boot.rb:33:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/private_networks.rb:10:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/forward_ports.rb:29:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/warn_networks.rb:14:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/set_hostname.rb:16:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/prepare_nfs_settings.rb:15:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/synced_folders.rb:87:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/synced_folders/nfs/action_cleanup.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/home/geek/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/action/prepare_nfs_valid_ids.rb:14:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:49:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/env_set.rb:19:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/provision.rb:80:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_check_outdated.rb:78:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:224:in `action_raw'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:199:in `block in action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:561:in `lock'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
 INFO interface: error: There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "cat", "/srv/lxc/deb7a/config"]

For more information on the failure, enable detailed logging by setting
the environment variable VAGRANT_LOG to DEBUG.
 INFO interface: Machine: error-exit ["Vagrant::LXC::Errors::ExecuteError", "There was an error executing [\"sudo\", \"/usr/local/bin/vagrant-lxc-wrapper\", \"cat\", \"/srv/lxc/deb7a/config\"]\n\nFor more information on the failure, enable detailed logging by setting\nthe environment variable VAGRANT_LOG to DEBUG."]

If somebody can show me how to install vagrant-lxc from my local git repo I'll be happy to do more testing.

ccope commented 8 years ago

Are you trying to run vagrant as root for a reason? If you are root you shouldn't need sudo. You also may not be able to sudo as root if sudo is misconfigured.

gregoryolsen commented 8 years ago

Hi ccope,

No special reason. I had just tested as root (no sudo) to avoid potential sudo problems.

Sudo setup looks OK for my user account geek:

# cat /etc/sudoers.d/vagrant-lxc
# Automatically created by vagrant-lxc
geek ALL=(root) NOPASSWD: /usr/local/bin/vagrant-lxc-wrapper

I found the problem!

It was related to having a different lxcpath in lxc.conf.

I've already made the code change which fixes in an appropriate manner.

Here's the diff:

$ git diff
diff --git i/templates/sudoers.rb.erb w/templates/sudoers.rb.erb
index cfcb68a..4d94bd7 100644
--- i/templates/sudoers.rb.erb
+++ w/templates/sudoers.rb.erb
@@ -78,7 +78,38 @@ class Whitelist
   end
 end

-base = "/var/lib/lxc"
+def get_lxc_conf_value(search_key, file_name = "/etc/lxc/lxc.conf")
+  found = "n"
+  found_value = ""
+  if File.file?(file_name) then
+    IO.foreach(file_name) do |line|
+      line.chomp!
+      key, equals, value, rest = line.split(nil, 4)
+      case key
+      when /^([#;]|$)/; # ignore line
+      when search_key; found = "y"
+      end
+      if found == "y" then
+        found_value = value
+        break
+      end
+    end
+  end
+  return found_value
+end
+
+##
+# Resolve lxcpath
+# - Check /etc/lxc/lxc.conf
+# - Check /usr/local/etc/lxc/lxc.conf
+base = get_lxc_conf_value "lxc.lxcpath"
+if base == "" then
+  base = get_lxc_conf_value "lxc.lxcpath", "/usr/local/etc/lxc/lxc.conf"
+  if base == "" then
+    base = "/var/lib/lxc"
+  end
+end
+base.chomp!("/")
 base_path = %r{\A#{base}/.*\z}

 ##

That works great.

It checks for lxc.lxcpath in both /etc/lxc/lxc.conf and /usr/local/etc/lxc/lxc.conf. Then if not found the default base = /var/lib/lxc.

If anyone spots something else, please let me know.

I'll push a proper commit in a feature branch, and create the pull request.

Thanks.

fgrehm commented 1 year ago

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

As per https://github.com/fgrehm/vagrant-lxc/issues/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 :wave: