Advertisement
MomusLLC

BSD Vagrantfile

Aug 6th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.99 KB | None | 0 0
  1. Vagrant.configure("2") do |config|
  2.  
  3.  
  4.   config.vm.define :bsd_vm do |bsd_vm|
  5.    
  6.     bsd_vm.vm.box = "opscode_freebsd-10.1"
  7.  
  8.     bsd_vm.vm.network :private_network,
  9.                       :ip => '10.0.0.67'
  10.  
  11.     bsd_vm.vm.synced_folder ".", "/vagrant", disabled: true
  12.    
  13.     ## Domain Specific Options
  14.     bsd_vm.vm.provider :libvirt do |domain|
  15.       domain.memory = 8192
  16.       domain.cpus = 4
  17.       #This is what enables the nested VMs
  18.       domain.nested = true
  19.      
  20.       domain.driver = "kvm"
  21.      
  22.       #This does not work:
  23.       #domain.audio = "none"
  24.      
  25.     end #Domain options
  26.    
  27.     config.vm.provision "chef_zero" do |chef|
  28.       # Specify the local paths where Chef data is stored
  29.       chef.cookbooks_path = "cookbooks"
  30.       chef.roles_path = "roles"
  31.       chef.nodes_path = "nodes"
  32.     end
  33.  
  34.   end #config.vm.define :bsd_vm do |bsd_vm|
  35.  
  36.   #BSD uses /bin/sh not bash by default.
  37.   config.ssh.shell= "/bin/sh"
  38.  
  39. end #Vagrant.configure(2) do |config|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement