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

Troubleshooting

Fabio Rehm edited this page May 28, 2014 · 13 revisions

In order to find out more about what's going on under the hood on vagrant, prepend VAGRANT_LOG=debug to your vagrant commands. For lxc-starts debugging set LXC_START_LOG_FILE and for redir debugging use REDIR_LOG:

REDIR_LOG=1 LXC_START_LOG_FILE=/tmp/lxc-start.log VAGRANT_LOG=debug vagrant up

This will output A LOT of Vagrant debugging information on your terminal, lxc-start stuff to /tmp/lxc-start.log and redir related output to /var/log/syslog.

Another way of investigating what's going on under the hood and tracking down if the problem is on vagrant-lxc or with your setup is to start the container on the foreground with plain old lxc-start. So given that you have a vm called db on your Vagrantfile, you can run the command below and have a look at the output:

lxc-start -n $(cat .vagrant/machines/db/lxc/id)

I'm unable to restart containers!

It can be many things including a bug on specific linux kernel (3.5.0-17.28), so make sure you are using a version different than that one. More information can be found on:

The problem might also be related to the additional customizations you are specifying on your Vagrantfile, please try creating a container using no custom configs before submitting a bug report.

I'm hitting errors related to running commands with sudo / test-kitchen

Try commenting out the Defaults requiretty line from your /etc/sudoers file if it exists as it has been reported as the cause of pain.

I'm seeing a "The lxc package does not seem to be installed or is not accessible on the PATH." error

Make sure you have the package around and try removing the 'Defaults requiretty' from your sudoers file as as described above.

Unfortunately it is an issue with Berkshelf and librarian which causes provisioning to fail.

Can't install software on containers!

This seems to be related to some iptables rules declared on hosts, see #94 for more information

Can't use ufw on guest containers

There seems to be an issue with Kernel module loading on vagrant-lxc boxes. See #104 and this message on lxc-users mailing list for more information

I'm using Eclipse to launch vagrant-lxc containers and I'm getting errors executing lxc commands.

See #88 for more information

Clone this wiki locally