Vagrant up timeout

前端 未结 10 1145
闹比i
闹比i 2020-11-27 21:54

Having some issues to get my vagrant up, Got the box, run vagrant init and after vagrant up command I get this message.

Bringing m         


        
10条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 22:37

    A solution is gracefully described here. It was the only one that worked for me on a i686 with Ubuntu 16.04.2, Vagrant 1.9.3 and Virtualbox 5.1.18 trying to run a ubuntu/trusty32.

    What you do is fix the networking on the server and add some extra time for the boot:

    • start the VM, log in to the server via GUI (username: vagrant, password: vagrant) and run the following commands

      $ sudo ifdown eth0
      $ sudo ifup eth0
      
    • then add the following to the file /etc/rc.local

      ifdown eth0
      ifup eth0
      
    • on the host, add the following to the Vagrantfile

      config.vm.boot_timeout = 600
      

    Now stop the VM. Next time you do a 'vagrant up' it will be OK.

提交回复
热议问题