Closed thePanz closed 1 year ago
You get that every time? Could you try again with --debug
?
The stacktrace is because Vagrant::LXC::Driver::CLI::run calls into Vagrant::LXC::SudoWrapper::raw which calls Vagrant::Util::Subprocess. This function has a timeout, and if it tries to kill the command if it's stuck. All of the lxc commands are run via sudo though, so it doesn't have the privileges to kill it. Vagrant could really use a nice interface like machine.communicate for running commands on the host...
As for @thePanz's issue, either there's a network misconfiguration or the container is failing to start due to some configuration problem. Try running sudo lxc-ls -f
to see if your container is running and has an IP address. If there's no IP, start looking at your bridge configuration and dhcp server. If it's not running at all, try starting it by hand, with sudo lxc-start -n containername -l debug -o logfile
. If it doesn't start, post the log file and your /var/lib/lxc/containername/config (note: you have to be root before attempting to tab complete that path, /var/lib/lxc is only readable by root)
@ccope @hsoft The issue is quite random, I started the machine (after a reboot) and the error is not displayed anymore. Can we keep this issue open (or labelled as "to be confirmed") so I can post new insights as soon the issue manifests again?
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:
I am getting the following message when booting up a machine:
Vagrant: v2.0.2 Vagrantl-lxc: v1.3.1 LXC: v2.0.8