-
Notifications
You must be signed in to change notification settings - Fork 181
Investigate lxc 1.0 / Ubuntu 13.10 issues #150
Comments
After some quick debugging I found out that the issue is around these lines and I've got a potential fix for it which is to change those lines under your boxes' mkdir -p $rootfs
(cd $rootfs && tar xfz $tarball --strip-components=2) The problem is that I'm marking this as a bug on the base boxes and will get to it when I have a chance. Will be awesome if someone can confirm that it works as well :) |
Fabio, thanks for your continuous efforts! I tried your latest template, including the dirname patch, but something went wrong, see https://gist.github.com/gwillem/6751384 I'm not sure what, as I can't find any relevant debug output, other than that the polling for success didn't work. Cheers! |
I think the problems lies within lxc (version 1.0.0
After downgrading to the normal saucy package (not the latest builds) it works! Hurray! |
@gwillem awesome! I just need to make sure it won't break things on other distros and will rebuild the base boxes again, tks for the feedback :) |
s/rebuild/publish/ |
Hi Fabio! Sadly, I had no luck with this patch. I do get the same segfault as @gwillem with the lxc-daily. When reverting to saucy's stock package, I still get the get_init_pid failed to receive response. I can confirm that I have a correctly installed rootfs in /var/lib/lxc//rootfs, so I'm a little bit puzzled here about what might have gone wrong. |
@rrerolle thats pretty weird, I'll soon update my "vagrant-lxc" playground with support for saucy so we have a common ground to debug the problem, I'll keep you posted :) |
I've got a similar issue. LXC from ppa on Ubuntu Saucy. After patching
Indeed, if I try to run
Trying to run
But pointing it specifically at
At this point, the However, it then quickly gets stuck in another loop:
This loop ends if I also run At this point So, apparently, |
Hi. I'm investigating this as well. It happened (also) on Ubuntu 13.04 after upgrading to lxc
(@fgrehm, it's worth noting either of these would probably bite us if We did manage to get Vagrant-LXC working by manually specifying an IP address for the LXC provider to use in the IIRC, there were some recent changes to LXC in order to prevent containers from messing up host networking. They might have a bearing on this. |
I think I can rule out AppArmor. used both Based on this I'm thinking it's an LXC thing. Going to try a vanilla container next. |
Okay. I fixed my problem by following the advice on #153 - adding the checksumming to iptables made things work for me - so this can most likely be fixed inside vagrant-lxc itself! :) |
Ok, so in my situation above, I don't have a problem with UDP or the bridge. Doing the workarounds I mentioned above on every boot ( Trying to mount So I did Since
So, apparently, my apparmor profiles are incomplete for running lxc, or at least running lxc with the official To recap my setup:
|
@leorochael tks for all the info :) would you be able to try to create and use a "vanilla container" from scratch to check if things are working fine over there so we can be sure that the problem is on vagrant-lxc / base boxes? I'm still using ubuntu 13.04 + stock lxc 0.9.0 down here and I don't have plans to upgrade to 13.10 before the end of the year. I fear that it might impact my current workflow as things are working just fine for me and I haven't experienced any of the bugs you guys have been reporting. if you or someone else can get me reproducible steps on a Vagrant VBox it will make things a lot easier for me to debug. for a head start you might want to check https://github.com/fgrehm/vagrant-lxc-vbox-hosts =] |
I upgraded my 13.04 office desktop today, to discover a snakepit :)
With
My home desktop buzzes along fine with 13.10 alpha 2 though. I'll try to investigate the differences. |
Quick update: I did some testing with the saucy VBox VM available on vagrant-lxc-vbox-hosts and after patching the lxc-template as I previously pointed out things worked out just fine. |
Hmmm. Where's that patch again? |
Oh, right above on #150 (comment), I'll copy & paste here to make things easier as the thread is too big already :P
I'll try to release new boxes with that built in over the week :) |
FYI, I fixed my broken Ubuntu 13.10 install (upgraded from alpha2) by reinstalling all the lxc components:
The versions of Vagrant, Vagrant-lxc and LXC were the same but apparently something went wrong during the upgrade path of the 13.10 prerelease packages. |
@gwillem, are you using stock lxc from 13.10 or the daily ppa for lxc? |
Stock! |
BTW, I also had to remove ~/.vagrant.d and $PROJECTROOT/.vagrant to get it to work |
My Configuration:
Now when I create the container with vagrant-up I obtain this:
After when I start the con And this is the full output with LOG level DEBUG pastebin.com/KVUwYGZg I can't login to the container :( Regards |
Folks, I've done some initial testing with the patch on lxc-template and the other patch related to the missing lxc-shutdown command and things seem to be working fine and I'd love a 👍 from someone before closing this issue and pushing a new version to rubygems :) Feel free to pick a box on https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes and install the plugin from sources and please LMK how it goes! |
👍 🐹 Works like a charm! Tested with host 13.10 and base box http://bit.ly/vagrant-lxc-precise64-2013-10-23 Thanks Fabio for your continuous efforts! |
Thats awesome! I'll push a new release to rubygems as soon as I get to a Fábio Rehm
|
0.6.4 is out! This thread has grown too big so please open up a new issue if you still have problems over there ;) |
For people (such as my colleague ;) ) Googling this error LXC_START_LOG_FILE=/tmp/lxc-start.log VAGRANT_LOG=debug vagrant up See also: https://github.com/fgrehm/vagrant-lxc/wiki/Troubleshooting |
Thanks for helping out! I've just added another trick over there which is to start the container on the foreground with |
thanks @gwillem I googled this error! |
Fork of @gwillem's comment on #129 (comment)
@rrerolle also reported that he was having issues and @MSch has mentioned that "With lxc 1.0
lxc-shutdown
has been renamed tolxc-stop
"The text was updated successfully, but these errors were encountered: