Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Created March 17, 2013 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefglatz/5181478 to your computer and use it in GitHub Desktop.
Save josefglatz/5181478 to your computer and use it in GitHub Desktop.
Vagrantfile for Vagrant 1.1.0 + VMware Fusion Pro (Ubuntu Precise 64 Box)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define :web do |web|
# Every Vagrant virtual environment requires a box to build off of.
web.vm.box = "precise64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
web.vm.box_url = "http://files.vagrantup.com/precise64_vmware_fusion.box"
web.vm.network :private_network, ip:"10.111.5.10"
# VMware Fusion provider configuration
# VMX reference: http://www.sanbarrow.com/vmx.html
web.vm.provider :vmware_fusion do |v|
v.gui = false
# ram size should be multiple of 4
v.vmx["memsize"] = "4096"
v.vmx["numvcpus"] = "2"
end
# VirtualBox provider configuration
#web.vm.provider :virtualbox do |vb|
# vb.gui = false
# vb.customize ["modifyvm", :id, "--memory", "4096"]
# vb.customize ["modifyvm", :id, "--cpus", "2"]
#end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment