mitchellh/vagrant — Issue #603: vagrant up sometimes hangs after successfully bringing up a VM
Author: lifton
Created: 2011-12-21 19:00:54+00:00
State: open

Most of the time, vagrant up hangs after successfully bringing up the three VMs described in my Vagrantfile. The VMs boot and are correctly provisioned with the shell scripts I've given them, but vagrant never exits. I have to force vagrant to exit using Ctrl-c twice. This is prevents vagrant from being easily incorporated into an automatic test harness. My Vagrantfile contains:

Vagrant::Config.run do |config|
config.vm.define :master do |master_config|
master_config.vm.box = "vanilla-ubuntu-10.04.3-server-i386"
master_config.vm.forward_port "PEC", 443, 4433
master_config.vm.network "33.33.33.10"
master_config.vm.share_folder "shared", "/vagrant-shared", "./shared"
master_config.vm.host_name = "master.vagrant.internal"
master_config.vm.provision :shell, :path => "./provisions/master.sh"
end

config.vm.define :agent1 do |agent1_config|
agent1_config.vm.box = "vanilla-centos-6.0-x86_64-minimal"
agent1_config.vm.network "33.33.33.11"
agent1_config.vm.share_folder "shared", "/vagrant-shared", "./shared"
agent1_config.vm.host_name = "agent1.vagrant.internal"
agent1_config.vm.provision :shell, :path => "./provisions/agent.sh"
end

config.vm.define :agent2 do |agent2_config|
agent2_config.vm.box = "vanilla-debian-5.0.8-i386-netboot"
agent2_config.vm.network "33.33.33.12"
agent2_config.vm.share_folder "shared", "/vagrant-shared", "./shared"
agent2_config.vm.host_name = "agent2.vagrant.internal"
agent2_config.vm.provision :shell, :path => "./provisions/agent.sh"
end
end