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

Can't start machine on Ubuntu 13.04 #134

Closed
dduvnjak opened this issue Aug 26, 2013 · 8 comments
Closed

Can't start machine on Ubuntu 13.04 #134

dduvnjak opened this issue Aug 26, 2013 · 8 comments

Comments

@dduvnjak
Copy link

I tried to start the Raring base box (vagrant-lxc-raring64-2013-07-12), but with no success. In short, target state 'running' is never reached.

Here is the debug output:

VAGRANT_LOG=debug vagrant up --provider=lxc
 INFO global: Vagrant version: 1.2.7
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/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.2.7/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
 INFO vagrant: `vagrant` invoked: ["up", "--provider=lxc"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000000686398>)
 INFO environment:   - cwd: /home/dario/test
 INFO environment: Home path: /home/dario/.vagrant.d
 INFO environment: Local data path: /home/dario/test/.vagrant
DEBUG environment: Creating: /home/dario/test/.vagrant
DEBUG environment: Loading plugins from: /home/dario/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: vagrant-lxc
 INFO manager: Registered plugin: Linux Containers (LXC) provider
 INFO environment: Loading plugin from JSON: vagrant-vbox-snapshot
 INFO manager: Registered plugin: Vagrant VBox Snapshot
 INFO environment: Running hook: environment_load
 INFO environment: Initializing config...
 INFO loader: Set :default = "/opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb"
DEBUG loader: Populating proc cache for "/opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb"
DEBUG loader: Load procs for pathname: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb
 INFO loader: Set :root = #<Pathname:/home/dario/test/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/home/dario/test/Vagrantfile>
DEBUG loader: Load procs for pathname: /home/dario/test/Vagrantfile
 INFO loader: Loading configuration in order: [:default, :home, :root]
DEBUG loader: Loading from: default (evaluating)
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG hosts: Host path search classes: [VagrantPlugins::HostWindows::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostBSD::Host, VagrantPlugins::HostLinux::Host]
 INFO hosts: Host class: VagrantPlugins::HostLinux::Host
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000000676fb0>
 INFO cli: CLI: [] "up" ["--provider=lxc"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=lxc"]
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: []
DEBUG command:  -- options: {:provider=>"lxc"}
DEBUG command: Loading all machines...
 INFO command: Active machine found with name default. Using provider: lxc
 INFO environment: Getting machine: default (lxc)
 INFO environment: Uncached load of machine.
 INFO loader: Set :vm_default = []
 INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO box_collection: Searching for box: raring-lxc (lxc) in /home/dario/.vagrant.d/boxes/raring-lxc/lxc/metadata.json
 INFO box_collection: Box found: raring-lxc (lxc)
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: Vagrant::LXC::Provider
 INFO machine:   - Box: #<Vagrant::Box:0x00000000c80168>
 INFO machine:   - Data dir: /home/dario/test/.vagrant/machines/default/lxc
DEBUG lxc: Instantiating the container for: "test_default-1377504193"
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-ls"]
DEBUG subprocess: Selecting on IO
[sudo] password for dario: 
DEBUG subprocess: stdout: test_default-1377504193
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31994
DEBUG subprocess: Exit status: 0
 INFO command: With machine: default (LXC (test_default-1377504193))
 INFO interface: info: Bringing machine 'default' up with 'lxc' provider...
Bringing machine 'default' up with 'lxc' provider...
 INFO batch_action: Enabling parallelization by default.
 INFO batch_action: Disabling parallelization because provider doesn't support it: lxc
 INFO batch_action: Batch action will parallelize: false
 INFO batch_action: Starting action: #<Vagrant::Machine:0x000000011a3848> up {:parallel=>true, :provision_enabled=>true, :provision_types=>nil, :provider=>"lxc"}
 INFO machine: Calling action: up on provider LXC (test_default-1377504193)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000011b96e8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x0000000121e340>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x0000000121e2f0>
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000000e48068>
 INFO warden: Calling action: #<Vagrant::LXC::Action::Created:0x00000000b229b0>
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-info", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: state:   STOPPED
pid:        -1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO runner: Running action: #<Vagrant::Action::Warden:0x00000000eb1680>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x0000000121e278>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x0000000121e250>
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000000ef9868>
 INFO warden: Calling action: #<Vagrant::LXC::Action::IsRunning:0x00000000ef7748>
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-info", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: state:   STOPPED
pid:        -1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO runner: Running action: #<Vagrant::Action::Warden:0x000000008fddb0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Provision:0x000000008fdc48>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::EnvSet:0x00000000c149b8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::HandleForwardedPortCollisions:0x00000000c14990>
 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 warden: Calling action: #<Vagrant::LXC::Action::ShareFolders:0x00000001037fe0>
 INFO interface: info: Setting up mount entries for shared folders...
[default] Setting up mount entries for shared folders...
 INFO interface: info: -- /vagrant
[default] -- /vagrant
 INFO warden: Calling action: #<Vagrant::Action::Builtin::SetHostname:0x00000001037f90>
 INFO warden: Calling action: #<Vagrant::LXC::Action::ForwardPorts:0x00000001037f68>
 INFO warden: Calling action: #<Vagrant::LXC::Action::Boot:0x00000000cfec98>
 INFO interface: info: Starting container...
[default] Starting container...
 INFO driver: Starting container...
DEBUG driver: Prunning vagrant-lxc customizations
DEBUG shell: Running 'sudo su root -c "sed -e '/^# VAGRANT-BEGIN/,/^# VAGRANT-END/ d' -ibak /var/lib/lxc/test_default-1377504193/config"'
DEBUG shell: Running 'sudo su root -c "echo '# VAGRANT-BEGIN' >> /var/lib/lxc/test_default-1377504193/config"'
DEBUG shell: Running 'sudo su root -c "echo 'lxc.cgroup.memory.limit_in_bytes=384' >> /var/lib/lxc/test_default-1377504193/config"'
DEBUG shell: Running 'sudo su root -c "echo 'lxc.utsname=test_default-1377504193' >> /var/lib/lxc/test_default-1377504193/config"'
DEBUG shell: Running 'sudo su root -c "echo 'lxc.mount.entry=/home/dario/test /var/lib/lxc/test_default-1377504193/rootfs/vagrant none bind 0 0' >> /var/lib/lxc/test_default-1377504193/config"'
DEBUG shell: Running 'sudo su root -c "echo '# VAGRANT-END' >> /var/lib/lxc/test_default-1377504193/config"'
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-start", "-d", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-info", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: lxc-info: 
DEBUG subprocess: stderr: failed to receive answer for the command
DEBUG subprocess: stdout: state:   STOPPED
pid:        -1
DEBUG subprocess: stderr: lxc-info: failed to send command
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG cli: Target state 'running' not reached, currently on 'stopped'
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-info", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: state:   STOPPED
[...]
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG cli: Target state 'running' not reached, currently on 'stopped'
 INFO subprocess: Starting process: ["/usr/bin/sudo", "lxc-info", "--name", "test_default-1377504193"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: state:   STOPPED
pid:        -1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
ERROR warden: Error occurred: Target state 'running' not reached, currently on 'stopped'
 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: Target state 'running' not reached, currently on 'stopped'
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x0000000121e250>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x0000000121e2f0>
 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.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000007b6768>
/home/dario/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver/cli.rb:102:in `transition_to': Target state 'running' not reached, currently on 'stopped' (Vagrant::LXC::Driver::CLI::TargetStateNotReached)
        from /home/dario/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver.rb:79:in `start'
        from /home/dario/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/boot.rb:17:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /home/dario/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/forward_ports.rb:29:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/set_hostname.rb:16:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /home/dario/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/share_folders.rb:13:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/env_set.rb:19:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/provision.rb:45:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/call.rb:51:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/call.rb:57:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builder.rb:116:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/machine.rb:147:in `action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

Here's my system info:

NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"

> uname -a
Linux 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> lxc-version
lxc version: 0.9.0
> vagrant -v
Vagrant version 1.2.7
@achaphiv
Copy link

Not sure if related, but same setup and different error.

Ubuntu 13.04
> uname -a
Linux bob-desktop 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> lxc-version
lxc version: 0.9.0
> vagrant -v
Vagrant version 1.2.7
Vagrant.configure("2") do |config|
  config.vm.box = "lxc-raring64"
  config.vm.box_url = "http://bit.ly/vagrant-lxc-raring64-2013-07-12"
end
$ REDIR_LOG=1 LXC_START_LOG_FILE=/tmp/lxc-start.log VAGRANT_LOG=debug vagrant up --provider=lxc
 INFO global: Vagrant version: 1.2.7
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/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.2.7/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
 INFO vagrant: `vagrant` invoked: ["up", "--provider=lxc"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000001f7e0f8>)
 INFO environment:   - cwd: /tmp/testing-lxc
 INFO environment: Home path: /home/bob/.vagrant.d
 INFO environment: Local data path: /tmp/testing-lxc/.vagrant
DEBUG environment: Creating: /tmp/testing-lxc/.vagrant
DEBUG environment: Loading plugins from: /home/bob/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: vagrant-lxc
 INFO manager: Registered plugin: Linux Containers (LXC) provider
 INFO environment: Running hook: environment_load
 INFO environment: Initializing config...
 INFO loader: Set :default = "/opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb"
DEBUG loader: Populating proc cache for "/opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb"
DEBUG loader: Load procs for pathname: /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/config/default.rb
 INFO loader: Set :root = #<Pathname:/tmp/testing-lxc/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/tmp/testing-lxc/Vagrantfile>
DEBUG loader: Load procs for pathname: /tmp/testing-lxc/Vagrantfile
 INFO loader: Loading configuration in order: [:default, :home, :root]
DEBUG loader: Loading from: default (evaluating)
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG hosts: Host path search classes: [VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostWindows::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostBSD::Host, VagrantPlugins::HostLinux::Host]
 INFO hosts: Host class: VagrantPlugins::HostLinux::Host
 INFO runner: Running action: #<Vagrant::Action::Builder:0x0000000213b580>
 INFO cli: CLI: [] "up" ["--provider=lxc"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=lxc"]
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: []
DEBUG command:  -- options: {:provider=>"lxc"}
DEBUG command: Loading all machines...
 INFO environment: Getting machine: default (lxc)
 INFO environment: Uncached load of machine.
 INFO loader: Set :vm_default = []
 INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO box_collection: Searching for box: lxc-raring64 (lxc) in /home/bob/.vagrant.d/boxes/lxc-raring64/lxc/metadata.json
 INFO box_collection: Box found: lxc-raring64 (lxc)
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: Vagrant::LXC::Provider
 INFO machine:   - Box: #<Vagrant::Box:0x0000000232e798>
 INFO machine:   - Data dir: /tmp/testing-lxc/.vagrant/machines/default/lxc
DEBUG lxc: Instantiating the container for: nil
 INFO command: With machine: default (LXC (new VM))
 INFO interface: info: Bringing machine 'default' up with 'lxc' provider...
Bringing machine 'default' up with 'lxc' provider...
 INFO batch_action: Enabling parallelization by default.
 INFO batch_action: Disabling parallelization because provider doesn't support it: lxc
 INFO batch_action: Batch action will parallelize: false
 INFO batch_action: Starting action: #<Vagrant::Machine:0x00000002358368> up {:parallel=>true, :provision_enabled=>true, :provision_types=>nil, :provider=>"lxc"}
 INFO machine: Calling action: up on provider LXC (new VM)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000002ca8a30>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000001f95488>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x00000001f95460>
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000002575d58>
 INFO warden: Calling action: #<Vagrant::LXC::Action::Created:0x0000000257db98>
 INFO runner: Running action: #<Vagrant::Action::Warden:0x00000002bffdb8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::HandleBoxUrl:0x00000002bffd18>
 INFO warden: Calling action: #<Vagrant::LXC::Action::HandleBoxMetadata:0x00000002c74c30>
 INFO interface: info: Importing base box 'lxc-raring64'...
[default] Importing base box 'lxc-raring64'...
DEBUG handle_box_metadata: Validating box contents
DEBUG handle_box_metadata: Setting box options on environment
 INFO warden: Calling action: #<Vagrant::LXC::Action::Create:0x00000002ca8120>
 INFO subprocess: Starting process: ["/usr/bin/sudo", "rm", nil]
ERROR warden: Error occurred: all arguments must be String: ["/usr/bin/sudo", "rm", nil]
 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: all arguments must be String: ["/usr/bin/sudo", "rm", nil]
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000001f95460>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000002849048>
/opt/vagrant/embedded/gems/gems/childprocess-0.3.9/lib/childprocess/abstract_process.rb:36:in `initialize': all arguments must be String: ["/usr/bin/sudo", "rm", nil] (ArgumentError)
    from /opt/vagrant/embedded/gems/gems/childprocess-0.3.9/lib/childprocess.rb:19:in `new'
    from /opt/vagrant/embedded/gems/gems/childprocess-0.3.9/lib/childprocess.rb:19:in `new'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/subprocess.rb:66:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/subprocess.rb:24:in `execute'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/sudo_wrapper.rb:74:in `block in raw'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/sudo_wrapper.rb:73:in `raw'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/sudo_wrapper.rb:46:in `block in execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/retryable.rb:17:in `retryable'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/sudo_wrapper.rb:44:in `execute'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/sudo_wrapper.rb:14:in `run'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver.rb:156:in `ensure in import_template'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver.rb:156:in `import_template'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver.rb:47:in `create'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/create.rb:14:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/handle_box_metadata.rb:30:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/handle_box_url.rb:81:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/machine.rb:147:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

@fgrehm
Copy link
Owner

fgrehm commented Aug 30, 2013

@dduvnjak would u be able to run sudo lxc-start -n $(cat .vagrant/machines/default/lxc/id) over there? This should start the container on the foreground and it will output any errors that prevents it from starting.

@achaphiv the error u found is pretty weird and is related to the plugin code itself as there is a nil value being passed to rm, I'll need more time to investigate =/

@gwillem
Copy link
Contributor

gwillem commented Sep 3, 2013

I had a similar error to @achaphiv. Apparently it failed because there was a space in the path of the lxc.mount.entry config ("Ubuntu One") so this seems a bug with lxc (0.9.0-0ubuntu23)

Cheers

@fgrehm
Copy link
Owner

fgrehm commented Sep 3, 2013

@gwillem tks for pointing out. I haven't tried but do u know if escaping the configs with quotes fixes the issue?

@achaphiv
Copy link

achaphiv commented Sep 7, 2013

Finally got it to work. Had to install lxc-templates & cgroup-lite.

It was rather confusing because this worked perfectly on another box. On this box I vaguely recall turning "Consider recommended packages as dependencies" off because some unrelated package had a considerable amount of recommended dependencies.

Perhaps expand the instructions to be

sudo apt-get install lxc lxc-templates cgroup-lite redir

?

@fgrehm
Copy link
Owner

fgrehm commented Sep 7, 2013

@achaphiv Oh, tks a lot, that's some interesting information :) I haven't had a chance to dig into this but now that you said that you were missing the lxc-templates package (which I personally haven't even noticed that it existed :P) I think I know what's going on and I've just created #139 to deal with that.

For now I think it is better to close this issue while we don't have a reproducible scenario for us to dig into the problem. @dduvnjak if you are still having issues over there, feel free to gist us the output of running sudo lxc-start -n $(cat .vagrant/machines/default/lxc/id) over there so we can try to understand what's going on, this should start the container on the foreground and it will output any errors that prevents it from starting.

@fgrehm fgrehm closed this as completed Sep 7, 2013
@achaphiv
Copy link

achaphiv commented Sep 7, 2013

Oh, just to be clear, the stacktrace I originally posted occurs when lxc-templates is missing.

Here's the stacktrace for a missing cgroup-lite:

/home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver/cli.rb:102:in `transition_to': Target state 'running' not reached, currently on 'stopped' (Vagrant::LXC::Driver::CLI::TargetStateNotReached)
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/driver.rb:79:in `start'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/boot.rb:17:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/forward_ports.rb:29:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/set_hostname.rb:16:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /home/bob/.vagrant.d/gems/gems/vagrant-lxc-0.5.0/lib/vagrant-lxc/action/share_folders.rb:13:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/env_set.rb:19:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/provision.rb:45:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/machine.rb:147:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

@fgrehm
Copy link
Owner

fgrehm commented Sep 7, 2013

@achaphiv tks, I'll update the readme with the packages you mentioned ;)

mowings pushed a commit to turbosquid/vagrant-lxc-squid that referenced this issue Apr 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants