Vagrantfile 1.1 KB

123456789101112131415161718192021222324
  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 = 30
  5. config.ssh.insert_key = false
  6. config.vm.synced_folder '.', '/vagrant', disabled: true
  7. config.vm.provider "virtualbox" do |v|
  8. v.gui = true
  9. v.memory = 2048
  10. v.cpus = 2
  11. v.customize ["modifyvm", :id, "--firmware", "efi"]
  12. v.customize ["modifyvm", :id, "--vram", "128"]
  13. v.customize ["modifyvm", :id, "--ioapic", "on"]
  14. v.customize ["modifyvm", :id, "--hwvirtex", "on"]
  15. v.customize ["modifyvm", :id, "--accelerate3d", "on"]
  16. v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
  17. v.customize ["storageattach", :id, "--storagectl", "SATA Controller", "--port", 1, "--device", 0, "--type", "dvddrive", "--medium", "emptydrive"]
  18. if RUBY_PLATFORM =~ /darwin/
  19. v.customize ["modifyvm", :id, '--audio', 'coreaudio', '--audiocontroller', 'hda']
  20. elsif RUBY_PLATFORM =~ /mingw|mswin|bccwin|cygwin|emx/
  21. v.customize ["modifyvm", :id, '--audio', 'dsound', '--audiocontroller', 'ac97']
  22. end
  23. end
  24. end