Skip to content

vagrant (veewee) + virtualbox versions test matrix

guttertec edited this page Sep 29, 2011 · 19 revisions

Overview page to have a table of the virualbox (+gem) versions the boxes were developed against to inspect the root cause of SSH connection issue with vagrant boxes created by veewee. Veewee commit reference allows you to retrieve the exact VM definition files that worked, or failed, as the case maybe. Open a new issue if you feel justified, or point to an existing issue. Pass/fail refers to whether the final ssh succeeds in the following (conservative/paranoid) workflow (bash script):

vagrant_ver=0.7.5
veewee_ver=0.1.27
template=ubuntu-10.04.2-server-amd64
rubie=ruby-1.9.2-p180

pushd /usr/src/veewee
git fetch upstream
git checkout v${veewee_ver}
hash=`git rev-parse --short --verify HEAD`
popd

vm=vw-${hash}-${vagrant_ver}-${template}

pushd /tmp
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant' -O vagrant
  chmod 0600 vagrant
  rvm use ${rubie}@${vm} --create
  gem install vagrant --version ${vagrant_ver} --no-ri --no-rdoc
  gem install veewee --version ${veewee_ver} --no-ri --no-rdoc
  vagrant basebox define ${vm} ${template} 2>&1|tee ${vm}-define.log
  vagrant basebox build ${vm}              2>&1|tee ${vm}-build.log
  vagrant basebox validate ${vm}           2>&1|tee ${vm}-validate.log
  vagrant basebox export ${vm}             2>&1|tee ${vm}-export.log
  vagrant box add ${vm} ${vm}.box          2>&1|tee ${vm}-add.log
  vagrant init ${vm}                       2>&1|tee ${vm}-init.log
  vagrant up                               2>&1|tee ${vm}-up.log
  ssh vagrant@127.0.0.1 -p 2222 -i vagrant -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' 'echo $SSH_CLIENT'
  if test $? -ne 0 ; then
    state=FAILURE
  else
    state=SUCCESS
  fi
  vagrant halt                   2>&1|tee ${vm}-${state}
  vagrant destroy                2>&1|tee -a ${vm}-${state}
  vagrant box remove $vm         2>&1|tee -a ${vm}-${state}
  vagrant basebox destroy $vm    2>&1|tee -a ${vm}-${state}
  vagrant basebox undefine $vm   2>&1|tee -a ${vm}-${state}
  rm Vagrantfile
  rvm --force gemset delete ${vm}
popd

cat /etc/issue
VBoxManage --version

See these threads for details:

---
Veewee commit Virtualbox Virtualbox gem Veewee gem Vagrant gem Host OS Template name Pass Fail(#Issue)
c26e310 4.0.4r70112 0.8.6 0.1.27 0.7.5 Ubuntu 10.04.2 LTS ubuntu-10.04.2-server-amd64 P (@hedgehog)
4.0.8r71778 (OSX) 0.8.6 0.1.29 0.7.5 Ubuntu 10.04.2 LTS ubuntu-10.04.2-server-amd64 P (@jedi4ever)
4.0.6r71344 (OSX) 0.8.6 n/a 0.7.5 Mac OSX 10.6.7 n/a P (@awendt)
nnnnn 0.0.0 0.0.0 0.0.0 0.0.0 0.0.0 text P/F(#NNN)
Clone this wiki locally