# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| #A Vagrant Windows10 box config.vm.define 'windows10' do |windows| windows.vm.box = "Microsoft/EdgeOnWindows10" windows.vm.guest = :windows windows.vm.synced_folder ".", "c:\\users\\vagrant\\hws", create: true, owner: "vagrant", group: "vagrant" config.ssh.password = "Passw0rd!" config.ssh.username = "IEUser" windows.vm.communicator = "winrm" #windows.vm.network :public_network windows.vm.network :private_network, ip: '192.168.2.70' config.winrm.username = "IEUser" config.winrm.password = "Passw0rd!" 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"] vb.customize [ "storageattach", :id, "--storagectl", "IDE Controller", "--device", 0, "--port", 1, "--type", "dvddrive", "--medium", "emptydrive"] 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 #Narrator is easy to switch on inside the VM, and winrm configuration problems relating to #the actual box setup make it hard to provision, so leaving as is. end end