Skip to content

Instantly share code, notes, and snippets.

@mkocher
Created September 11, 2013 17:12
Show Gist options
  • Save mkocher/6526747 to your computer and use it in GitHub Desktop.
Save mkocher/6526747 to your computer and use it in GitHub Desktop.
± |master ✗| → vagrant up --provider vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
[default] Box 'misheska_precise_64' was not found. Fetching box from specified URL for
the provider 'vmware_fusion'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...te: 585k/s, Estimated time remaining: 0:00:01))
The box you attempted to add doesn't match the provider you specified.
Provider expected: vmware_fusion
Provider of box: vmware_desktop
Vagrant.configure('2') do |config|
config.vm.hostname='bosh-lite'
config.vm.box = 'misheska_precise_64'
# vagrant plugin install vagrant-omnibus
config.omnibus.chef_version = "10.28.0"
config.vm.provider :virtualbox do |v, override|
# Boxes are coming from https://github.com/misheska/basebox-packer
override.vm.box_url = 'https://dl.dropboxusercontent.com/s/yfojlwxq66im9hk/misheska-ubuntu1204.box?token_hash=AAFUeOXWpPnRaPh6s_9JHKQiF0Y-q7rE8BrNxQN5d4Qj1Q&dl=1'
v.customize ["modifyvm", :id, "--memory", 3*1024]
v.customize ["modifyvm", :id, "--cpus", 4]
end
config.vm.provider :vmware_fusion do |v, override|
# Boxes are coming from https://github.com/misheska/basebox-packer
override.vm.box_url = 'https://dl.dropboxusercontent.com/s/hb3xouxk96ow1w8/misheska-ubuntu1204.box?token_hash=AAElfc2aj3Qu4QdJmZGnQEiZU9rd3-lb3wP7JwovWI0dMw&dl=1'
v.vmx["numvcpus"] = "4"
v.vmx["memsize"] = 3 * 1024
end
config.vm.network :private_network, ip: '192.168.50.4'
# config.vm.provision :shell, :path => "scripts/virtualbox_precise_customize.sh"
config.vm.provision :shell, :path => "scripts/install_chef.sh"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ['cookbooks', 'site-cookbooks']
chef.add_recipe 'openssl'
chef.add_recipe 'bosh-lite::apt-update'
chef.add_recipe 'build-essential::default'
chef.add_recipe 'bosh-lite::warden'
chef.add_recipe 'bosh-lite::bosh'
chef.add_recipe 'bosh-lite::reboot'
end
end
@dragon788
Copy link

@mkocher Try it with vmware_desktop as the provider instead of vmware_fusion if this box was generated by Packer.

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