Skip to content

Instantly share code, notes, and snippets.

@jehoshua02
Created March 29, 2013 02:40
Show Gist options
  • Save jehoshua02/5268369 to your computer and use it in GitHub Desktop.
Save jehoshua02/5268369 to your computer and use it in GitHub Desktop.

Here's how I installed VirtualBox, Vagrant, and Vagrant-Salt on my Ubunut 12.10 Desktop machine ...

cd ~/tmp/vbox-vagrant-salt-test

wget http://download.virtualbox.org/virtualbox/4.2.10/virtualbox-4.2_4.2.10-84104~Ubuntu~quantal_amd64.deb
sudo dpkg -i virtualbox*.deb

wget http://files.vagrantup.com/packages/476b19a9e5f499b5d0b9d4aba5c0b16ebe434311/vagrant_x86_64.deb
sudo dpkg -i vagrant_x86_64.deb
sudo ln -s /opt/vagrant/bin/vagrant /usr/bin/vagrant

vagrant gem install vagrant-salt

wget http://tools.bonnint.net/vagrant-debian-squeeze-64-base.box
vagrant box add vagrant-debian-squeeze-64-base vagrant-debian-squeeze-64-base.box

And my vagrant file ...

Vagrant::Config.run do |config|
  config.vm.box = "vagrant-debian-squeeze-64-base"

  config.vm.network :hostonly, "192.168.100.100", :netmask => "255.255.255.0"

  config.vm.share_folder "salt_file_root", "/srv/salt", "./salt"
  config.vm.provision :salt do |salt|
    salt.run_highstate = true
  end
end

But when I run vagrant up I get this ...

$ vagrant up
There was a problem with the configuration of Vagrant. The error message(s)
are printed below:

vm:
* The provisioner 'salt' doesn't exist.
@jehoshua02
Copy link
Author

$ irb
irb(main):001:0> require 'vagrant-salt'
LoadError: cannot load such file -- vagrant-salt
    from /home/jstoutenburg/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /home/jstoutenburg/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from (irb):1
    from /home/jstoutenburg/.rvm/rubies/ruby-2.0.0-p0/bin/irb:13:in `<main>'
irb(main):002:0> exit
$ vagrant --version
Vagrant version 1.0.7
$ vagrant gem list

*** LOCAL GEMS ***

archive-tar-minitar (0.5.2)
bundler (1.3.4)
childprocess (0.3.9)
erubis (2.7.0)
ffi (1.6.0)
i18n (0.6.4)
json (1.7.7)
log4r (1.1.10)
net-scp (1.0.4)
net-ssh (2.2.2)
rake (10.0.4)
rubygems-bundler (1.1.1)
rvm (1.11.3.6)
vagrant (1.0.7)
vagrant-salt (0.4.0)

@jehoshua02
Copy link
Author

Keep in mind, my co-workers were able to get this up and running with no problem on Mac, with Vagrant 1.0.6 and the latest VirtualBox, while I burned a whole day setting this up on my machine.

My environment right now, just in case it would be helpful:

  • Ubuntu 12.10 Host,
  • VirtualBox 4.2.10,
  • Vagrant 1.0.7,
  • Vagrant-Salt 0.4.0

@jehoshua02
Copy link
Author

Not a good introduction to salt if you ask me ;)

@jehoshua02
Copy link
Author

I give up for tonight! :P

@jehoshua02
Copy link
Author

Uninstalled vagrant gem (gem uninstall vagrant) and installed 1.1.1 from download, as suggested on github issue.

$ sudo dpkg -i vagrant_x86_64_1.1.1.deb 
Selecting previously unselected package vagrant.
(Reading database ... 182581 files and directories currently installed.)
Unpacking vagrant (from vagrant_x86_64_1.1.1.deb) ...
Setting up vagrant (1.1.1) ...
$ vagrant --version
Vagrant version 1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment