Vagrant.configure("2") do |config| config.vm.box = "ubuntu/xenial64" config.vm.communicator = "ssh" config.ssh.keys_only = true config.ssh.insert_key=true # config.vm.network :public_network config.vm.network :private_network, ip: '192.168.2.71' config.vm.synced_folder '.', '/home/vagrant/hws' config.vm.provider 'virtualbox' do |vb| vb.gui = true vb.memory = 4096 if RUBY_PLATFORM =~ /darwin/ vb.customize ["modifyvm", :id, '--audio', 'coreaudio', '--audiocontroller', 'hda'] # choices: hda sb16 ac97 elsif RUBY_PLATFORM =~ /mingw|mswin|bccwin|cygwin|emx/ vb.customize ["modifyvm", :id, '--audio', 'dsound', '--audiocontroller', 'ac97'] end end config.vm.provision "shell", path: "get_Hansoft.sh" end