{"issue":{"created_at":"2011-07-29T15:49:37Z","state":"open","updated_at":"2011-12-02T18:31:08Z","comments":27,"user":{"gravatar_id":"d258c3e1c261fc1c70fbc529a99666be","id":4783,"url":"https://api.github.com/users/grimen","avatar_url":"https://secure.gravatar.com/avatar/d258c3e1c261fc1c70fbc529a99666be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"grimen"},"body":"This phenomena started when I changed to multi-vm setup with this config:\r\n\r\n```ruby\r\nVagrant::Config.run do |stack|\r\n\r\n  stack.vm.box = \"base\"\r\n  stack.vm.box_url = \"http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box\"\r\n\r\n  # xxx-core\r\n  stack.vm.define :core do |web|\r\n    web.vm.network \"33.33.33.0\"\r\n\r\n    web.vm.customize do |vm|\r\n      vm.name = \"xxx-core\"\r\n      vm.memory_size = 512\r\n    end\r\n\r\n    web.vm.forward_port \"http\", 80, 8080  # => http://localhost:8080\r\n    web.vm.forward_port \"ssh\", 22, 2222   # => ssh://localhost:2222\r\n\r\n    web.vm.provision :chef_solo do |chef|\r\n      chef.cookbooks_path = \"./config/provision/chef-cookbooks/\"\r\n\r\n      chef.add_recipe 'build-essential'\r\n      chef.add_recipe 'apt'\r\n      # chef.add_recipe \"java\" # todo\r\n      chef.add_recipe 'git'\r\n      chef.add_recipe 'rsync'\r\n      chef.add_recipe 'iptables'\r\n      chef.add_recipe \"ufw\"\r\n      chef.add_recipe 'fail2ban'\r\n      chef.add_recipe 'nginx'\r\n      # chef.add_recipe 'varnish'\r\n      chef.add_recipe 'memcached'\r\n      chef.add_recipe 'logrotate'\r\n      chef.add_recipe 'imagemagick'\r\n      chef.add_recipe 'redis'\r\n      chef.add_recipe 'rvm'\r\n      # chef.add_recipe \"log.io\" # todo\r\n\r\n       # Override recipe defaults:\r\n      chef.json.merge!({\r\n        :ufw => {\r\n          :allow => ['ssh', 'http'],\r\n          :deny => []\r\n        },\r\n        :nginx => {\r\n          :user => 'app'\r\n        },\r\n        :varnish => {\r\n          # :version => '3.0', # fixme: 3.0 cause apt to raise error (404)\r\n          :storage_spec => 'malloc,500M',\r\n          :listen_address => '0.0.0.0',\r\n          :listen_port => '80',\r\n          :admin_address => '',\r\n          :admin_port => '6082',\r\n          :remote_vcl => '',\r\n        },\r\n        :memcached => {\r\n          :port => 11211,\r\n          :memory => 64,\r\n          :listen => '0.0.0.0',\r\n          :user => 'app'\r\n        },\r\n        :redis => {\r\n          :version => '2.2.12',\r\n          :checksum => '9e2a4133b920fc4eed731c9cd3a9d0b60e701179ea98b2944ab434e7b1d0db03',\r\n          :port => 6379,\r\n          :maxmemory => 0,\r\n          :databases => 16,\r\n          :bind_address => '0.0.0.0',\r\n          :datadir => '/var/db/redis',\r\n          :dbfilename => 'app.rdb'\r\n        },\r\n        :rvm => {\r\n          # :rubies => ['rbx-1.2.3', 'jruby'], # later: 'jruby-1.6.0' # todo\r\n          :installer_url => 'https://rvm.beginrescueend.com/install/rvm'\r\n        }\r\n      })\r\n    end\r\n\r\n    # Amazon AWS setup (TODO):\r\n    # web.aws.region = 'us-east-1'\r\n    # web.aws.availability_zone = nil  # Use AWS default\r\n    # web.aws.image = 'ami-2ec83147'   # EBS-backed Ubuntu 10.04 64-bit\r\n    # web.aws.username = 'ubuntu'\r\n    # web.aws.security_groups = ['default']\r\n    # web.aws.flavor = 't1.micro'\r\n    # web.aws.key_name = '<KEY NAME>'\r\n    # web.aws.private_key_path = '<PATH/TO/KEY>'\r\n  end\r\n\r\n  # xxx-rds\r\n  # stack.vm.define :rds do |db|\r\n  #   db.vm.network \"33.33.33.1\"\r\n  #\r\n  #   db.vm.customize do |vm|\r\n  #     vm.name = \"xxx-rds\"\r\n  #     vm.memory_size = 512\r\n  #   end\r\n  #\r\n  #   db.vm.forward_port \"mysql\", 3307, 3306 # => mysql://localhost:3307\r\n  #\r\n  #   db.vm.provision :chef_solo do |chef|\r\n  #     chef.cookbooks_path = \"./config/provision/chef-cookbooks/\"\r\n  #\r\n  #     chef.add_recipe \"build-essential\"\r\n  #     chef.add_recipe \"apt\"\r\n  #     chef.add_recipe \"iptables\"\r\n  #     chef.add_recipe \"ufw\"\r\n  #     chef.add_recipe \"mysql\"\r\n  #\r\n  #     # Override recipe defaults:\r\n  #     chef.json.merge!({:mysql => {}})\r\n  #   end\r\n  # end\r\n\r\nend\r\n\r\n```\r\n\r\nAs far as documentation tells this should work, no? I get this error:\r\n\r\n```bash\r\n$ vagrant up     \r\n[core] Importing base box 'base'...\r\n[core] The guest additions on this VM do not match the install version of\r\nVirtualBox! This may cause things such as forwarded ports, shared\r\nfolders, and more to not work properly. If any of those things fail on\r\nthis machine, please update the guest additions and repackage the\r\nbox.\r\n\r\nGuest Additions Version: 4.0.6\r\nVirtualBox Version: 4.1.0\r\n[core] Preparing host only network...\r\n[core] Matching MAC address for NAT networking...\r\n[core] Clearing any previously set forwarded ports...\r\n[core] Forwarding ports...\r\n[core] -- ssh: 22 => 2222 (adapter 1)\r\n[core] -- http: 80 => 8080 (adapter 1)\r\n[core] Creating shared folders metadata...\r\n[core] Running any VM customizations...\r\n[core] Booting VM...\r\n[core] Waiting for VM to boot. This can take a few minutes.\r\nVagrant couldn't determine the SSH port for your VM! This is a rare,\r\nexceptional event, and a bug should be filed. Please try recreating your\r\nVM (vagrant destroy, then vagrant up). Sorry!\r\n```\r\n\r\n...which I didn't get with single vm.","assignee":null,"number":444,"id":1310896,"labels":[{"color":"ffffff","name":"needs info","url":"https://api.github.com/repos/mitchellh/vagrant/labels/needs+info"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Vagrant couldn't determine the SSH port for your VM!","closed_at":null,"html_url":"https://github.com/mitchellh/vagrant/issues/444","url":"https://api.github.com/repos/mitchellh/vagrant/issues/444","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T18:31:08Z","updated_at":"2011-12-02T18:31:08Z","user":{"gravatar_id":"4d6a8140906fbf415d51aff9d5d82bc9","id":46990,"url":"https://api.github.com/users/atuttle","avatar_url":"https://secure.gravatar.com/avatar/4d6a8140906fbf415d51aff9d5d82bc9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atuttle"},"body":"I think I was getting this issue because I was re-using a `vm.name` from a box that had previously crapped out, which I had destroyed. I thought it would be ok to re-use the name since I had destroyed the box, but apparently not. It even persisted after deleting `~/.vagrant.d`, but as soon as I changed the name the error went away.","id":2993832,"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/2993832"}}