Vagrant.configure("2") do |config| config.vm.box = "debian/stretch64" config.vm.synced_folder '.', '/home/vagrant/hws' config.vm.provider "virtualbox" do |vb| vb.gui = true vb.linked_clone = true vb.memory = 4096 vb.cpus = 2 vb.customize ["modifyvm", :id, "--vram", 256] vb.customize ["modifyvm", :id, "--accelerate3d", "on"] vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"] vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"] vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"] audio_driver = case RUBY_PLATFORM when /linux/ "alsa" when /darwin/ "coreaudio" when /mswin|mingw|cygwin/ "dsound" else raise "Unknown RUBY_PLATFORM=#{RUBY_PLATFORM}" end vb.customize ["modifyvm", :id, "--audio", audio_driver, "--audiocontroller", "hda"] end config.vm.provision "shell", path: "setup.sh" end