where to find config.vm.boot_timeout?

柔情痞子 提交于 2019-12-21 07:37:18

问题


Hi I want to edit the config.vm.boot_timeout in vagrant because I am having problem in booting up the vagrant. where i can find the config.vm.boot_timeout ?and what value should i put ? I am in windows8.1 x86

Thank you in advance.


回答1:


You need to run vagrant command to get the location of the vagrant file. And then make changes to the variable config.vm.boot_timeout (Reference)

  1. The default value of the variable is 300. You can try changing the default values.
  2. Check if you have the latest version and it is compatible with your OS.

Follow the steps given here

Also, a whole bunch of solution's are provided here




回答2:


If it's windows 10 OS, then by default virtualization is disabled in BIOS level. If we make the value as enabled and restart the system and run vagrant up. Then it will works fine.

Steps to Do:

1) Restart the system and press F1.

2) Goto BIOS settings and enable Virtualization

3) Press F10 (Save and exit)

4) run vagrant up




回答3:


This works for me:

  1. login with :gui by login/pass: vagrant/vagrant
  2. modify the /etc/rc.local file to include the line sh /etc/init.d/networking restart just before exit 0
  3. disable :gui
  4. vagrant up or vagrant reload

https://github.com/mitchellh/vagrant/issues/391#issuecomment-2078383



来源:https://stackoverflow.com/questions/32731629/where-to-find-config-vm-boot-timeout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!