Advertisement
MomusLLC

Libvirt_Vagrantfile

Jun 3rd, 2015
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.89 KB | None | 0 0
  1. CD_PATH = '~/dvdstore/myDVD.iso'
  2.  
  3. Vagrant.configure("2") do |config|
  4.  
  5.  
  6.   config.vm.define :bsd_vm do |bsd_vm|
  7.    
  8.     ## Box name
  9.     bsd_vm.vm.box = "opscode_freebsd-10.1"
  10.  
  11.     bsd_vm.vm.network :private_network,
  12.                       :ip => '10.0.0.67'
  13.    
  14.     config.vm.synced_folder ".", "/vagrant", disabled: true
  15.    
  16.     ## Domain Specific Options
  17.     bsd_vm.vm.provider :libvirt do |domain|
  18.       domain.memory = 8192
  19.       domain.cpus = 4
  20.       #This is what enables the nested VMs
  21.       domain.nested = true
  22.      
  23.  
  24.       domain.storage :file,
  25.                      :device => :cdrom,
  26.                      :path =>  CD_PATH
  27.      
  28.       domain.driver = "kvm"
  29.      
  30.      
  31.       #This does not work:
  32.       #domain.audio = "none"
  33.      
  34.  
  35.      
  36.     end #Domain options
  37.    
  38.   end #config.vm.define :bsd_vm do |bsd_vm|
  39.  
  40.  
  41. end #Vagrant.configure(2) do |config|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement