-
-
Save anthonysterling/7cb85670b36821122a4a to your computer and use it in GitHub Desktop.
# Usage: IE={box} vagrant up | |
# | |
# Eg. IE=XPIE6 vagrant up | |
boxes = { | |
"XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
"XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9", | |
"Win7IE10" => "http://aka.ms/vagrant-win7-ie10", | |
"Win7IE11" => "http://aka.ms/vagrant-win7-ie11", | |
"Win8IE10" => "http://aka.ms/vagrant-win8-ie10", | |
"Win8IE11" => "http://aka.ms/vagrant-win81-ie11", | |
} | |
unless boxes.has_key? ENV['IE'] | |
abort('Invalid box supplied') | |
end | |
Vagrant.configure("2") do |config| | |
config.vm.box = ENV['IE'] | |
config.vm.box_url = boxes[ ENV['IE'] ] | |
config.vm.guest = :windows | |
config.vm.boot_timeout = 1 | |
config.vm.communicator = "winrm" | |
config.vm.provider "virtualbox" do |vm| | |
vm.gui = true | |
end | |
end |
Thanks @ohjames
Does anyone know the shortcut URL for the Win10 MSEdge Vagrant box?
https://az792536.vo.msecnd.net/vms/VMBuild_20160322/Vagrant/MSEdge/MSEdge.Win10TH2.Vagrant.zip
Presumably, the "VMBuild_20160322" portion of the url changes every build.
Don't work on macOS Sierra...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'XPIE6' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'XPIE6' (v0) for provider: virtualbox
default: Downloading: http://aka.ms/vagrant-xp-ie6
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
For macOS, the latest version of Vagrants embedded curl has compatibility issues.
try running -
sudo rm /opt/vagrant/embedded/bin/curl
http://aka.ms/vagrant-*
legacy links are dead, since modernievirt.blob.core.windows.net
host are not exist. Use http://aka.ms/*.vagrant
updated boxes.
- http://aka.ms/ie6.xp.vagrant
- http://aka.ms/ie8.xp.vagrant
- http://aka.ms/ie7.vista.vagrant
- http://aka.ms/ie8.win7.vagrant
- http://aka.ms/ie9.win7.vagrant
- http://aka.ms/ie10.win7.vagrant
- http://aka.ms/ie11.win7.vagrant
- http://aka.ms/ie10.win8.vagrant
- http://aka.ms/ie11.win81.vagrant
- http://aka.ms/msedge.win10.vagrant
can we execute selenium tests on internet explorer via vagrant powershell -c '...'
You should use https://
for these URLs now, I've been getting connection failures if I just try to use http://
as I'm betting Microsoft enabled a forced security upgrade that the Ruby/Vagrant embedded curl/download library doesn't handle.
@gandra Actually it's "supposed" to work this way, Vagrant is trying to ssh into the windows VM but the VM doesn't have an ssh daemon installed.
What you have to do is type
virtualbox
to get the virtualbox GUI up and running before you start the VM with vagrant. Then when you boot the VM using vagrant the virtualbox GUI will show you the windows desktop so you can interact with the VM.