mitchellh/vagrant — Issue #671: Vagrant couldn't determine the SSH port for your VM!
Author: blake41
Created: 2012-01-21 22:45:48+00:00
State: open

I'm running virtualbox on os x lion 4.1.8. I've tried this on both my work laptop and home laptop both running os x lion. I've also tried on vagrant version 0.8.1 and 0.9.1 with the same results.

I followed this blog post to upgrade the guest additions on the base box lucid64.
http://hedgehogshiatus.com/upgrade-virtualbox-guest-additions-in-a-vargr

I then ssh'ed into the box and ran
sudo apt-get update -y
sudo apt-get install zlib1g-dev libssl-dev libreadline-dev \
git-core curl libcurl4-dev libsqlite3-dev apache2-dev -y
I then used rvm to add ruby 1.9.2 and packaged up the box as lucid64_with_ruby.

When I try and run vagrant up with the following config (this is the 0.8.1 syntax) I get the following error
"Vagrant couldn't determine the SSH port for your VM! This is a rare,
exceptional event, and a bug should be filed. Please try recreating your
VM (vagrant destroy, then vagrant up). Sorry!"

Vagrant::Config.run do |config|
config.vm.define :app do |app_config|
app_config.vm.customize do |vm|
vm.name = "app"
vm.memory_size = 512
end
app_config.vm.box = "lucid_with_ruby_updated"
app_config.vm.forward_port "ssh", 22, 2222, :auto => true
app_config.vm.forward_port "web", 80, 4567
app_config.vm.network "33.33.13.37"
end
config.vm.define :db do |db_config|
db_config.vm.customize do |vm|
vm.name = "db"
vm.memory_size = 512
end
db_config.vm.box = "lucid_with_ruby_updated"
db_config.vm.host_name = "db"
db_config.vm.forward_port "ssh", 22, 2222, :auto => true
db_config.vm.network "33.33.13.38"
end
end

I'm stuck, not sure how to get the multiple VM setup working. If anyone can spot what I'm doing wrong please let me know.