Vagrantfile 1.1 KB

12345678910111213141516171819202122232425
  1. Vagrant.configure("2") do |config|
  2. config.vm.box_url = "file://" + File.dirname(__FILE__) + "/dist/arch-desktop.box"
  3. config.vm.box = "arch-desktop"
  4. config.vm.boot_timeout = 1
  5. config.vm.graceful_halt_timeout = 1
  6. config.vm.synced_folder '.', '/vagrant', disabled: true
  7. config.ssh.insert_key = false
  8. config.vm.provider "virtualbox" do |v|
  9. v.gui = true
  10. v.memory = 2048
  11. v.cpus = 2
  12. v.customize ["modifyvm", :id, "--firmware", "efi"]
  13. v.customize ["modifyvm", :id, "--vram", "128"]
  14. v.customize ["modifyvm", :id, "--ioapic", "on"]
  15. v.customize ["modifyvm", :id, "--hwvirtex", "on"]
  16. v.customize ["modifyvm", :id, "--accelerate3d", "on"]
  17. v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
  18. v.customize ["storageattach", :id, "--storagectl", "SATA Controller", "--port", 1, "--device", 0, "--type", "dvddrive", "--medium", "emptydrive"]
  19. if RUBY_PLATFORM =~ /darwin/
  20. v.customize ["modifyvm", :id, '--audio', 'coreaudio', '--audiocontroller', 'hda']
  21. elsif RUBY_PLATFORM =~ /mingw|mswin|bccwin|cygwin|emx/
  22. v.customize ["modifyvm", :id, '--audio', 'dsound', '--audiocontroller', 'ac97']
  23. end
  24. end
  25. end