-
Notifications
You must be signed in to change notification settings - Fork 181
Timed out while waiting for the machine to boot #388
Comments
You'll need to run |
Problems when I using pre-defined vars. You can see example on my comment.
Try configure Vagrantfile by my example, and you can reproduce my problem. |
Enabled debug
That output: https://gist.github.com/gotlium/9e1babce8b09afd9c420 |
Please do as recommended by @ccope to get the lxc error message |
2048 will limit the container to 2KB, which is too small to start properly. Add a suffix, like '2048M' or '2G'. |
I think it's a bug, because on another providers it's working properly (virtual box, parallels). But as I see, you do it |
Well, that config section block is provider specific and each provider will have its own way of doing things. Users should not expect them to have the same behavior (even though vbox and parallels might work the same way) If we had a top level memory config, like: Vagrant.configure("2") do |config|
config.vm.memory = '2048'
# instead of
# config.vm.provider :lxc do |lxc, override|
# lxc.customize 'cgroup.memory.limit_in_bytes', APP_MEMORY
# end
end Then yes, I'd consider it a bug HTH 🍻 |
I use 4 providers on Vagrantfile. For Windows - VirtualBox, OS X - Parallels, Linux - LXC/KVM.
That easy and standard behavior for many providers.
I think, I can do it by another way (it works):
Logs
|
|
I'm not understand why you won't add standard directives for CPU and MEM? PS. - I think with CPU not easy, but if you do it on plugin config it will be helpful for all users and will comply with standards.
If you really can't or won't - you can close this issue. |
We'd appreciate a PR implementing this in a compatible way to other providers. 🍻 |
For CPU in particular, it is hard to make it similar to other providers because container scheduling works differently from VM's. You can either pin to particular cores, or set a relative priority. You can't create 3 machines each with 1 cpu core without explicitly assigning a specific core per container. |
I'm understand it. You can write about this option in wiki:) |
I had the same problem (Ubuntu 14.04, using Cibox). The problem was that the nfs server wasn't started. Try with |
Any idea when this is going to be fixed?? |
I get this far every now and then:
However, after this errors the "config.vm.provision" sections in my Vagrantfile fire up and run just fine. I used Ansible to provision the server, and that can SSH in just fine. |
ah, apparently adding this to your Vagrantfile may help for VirtualBox instances:
Obviously change the number (1) to be the number for the interface you want to set this for. ref: chef/bento#682 |
@richard-scott I don't think your comments are related to the original issue here, Virtualbox and LXC are unrelated. Closing this issue because I don't think there's anything actionable left here. |
Tested on new Ubuntu-Server 14.04 under KVM.
It happened when I use pre-defined variables for memory. Example:
The text was updated successfully, but these errors were encountered: