Skip to content

Commit 0416b6a

Browse files
committed
Add edge support
1 parent 827286c commit 0416b6a

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

README.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Overview
44
Microsoft provides virtual machine disk images to facilitate website testing
55
in multiple versions of IE, regardless of the host operating system.
66
With a single command, you can have IE6, IE7, IE8,
7-
IE9, IE10 and IE11 running in separate virtual machines.
7+
IE9, IE10, IE11 and MSEdge running in separate virtual machines.
88

99
[![Click here to lend your support to ievms and make a donation at pledgie.com!](http://pledgie.com/campaigns/15995.png?skin_name=chrome)](http://pledgie.com/campaigns/15995)
1010

@@ -20,11 +20,13 @@ Just paste this into a terminal:
2020
Requirements
2121
============
2222

23-
* VirtualBox (http://virtualbox.org), select 'command line utilities' during installation
23+
* VirtualBox > 5.0 (http://virtualbox.org), select 'command line utilities' during installation
2424
* Curl (Ubuntu: `sudo apt-get install curl`)
2525
* Linux Only: unar (Ubuntu: `sudo apt-get install unar`)
2626
* Patience
2727

28+
**NOTE** Use [ievms version 0.2.1](https://github.com/xdissent/ievms/raw/v0.2.1/ievms.sh) for VirtualBox < 5.0.
29+
2830

2931
Installation
3032
============
@@ -33,13 +35,13 @@ Installation
3335

3436
**2.)** Download and unpack ievms:
3537

36-
* To install IE versions 6, 7, 8, 9, 10 and 11 use:
38+
* To install IE versions 6, 7, 8, 9, 10, 11 and EDGE use:
3739

3840
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | bash
3941

40-
* To install specific IE versions (IE7 and IE9 only for example) use:
42+
* To install specific IE versions (IE7, IE9 and EDGE only for example) use:
4143

42-
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="7 9" bash
44+
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="7 9 EDGE" bash
4345

4446
**3.)** Launch Virtual Box.
4547

@@ -80,7 +82,7 @@ environment variable. For example, you can set a download speed limit:
8082
Disk requirements
8183
-----------------
8284

83-
A full ievms install will require approximately 48G:
85+
A full ievms install will require approximately 69G:
8486

8587
Servo:.ievms xdissent$ du -ch *
8688
11G IE10 - Win7-disk1.vmdk
@@ -97,18 +99,21 @@ A full ievms install will require approximately 48G:
9799
11G IE9 - Win7-disk1.vmdk
98100
4.7G IE9 - Win7.ova
99101
4.7G IE9_Win7.zip
100-
3.4M ievms-control-0.1.0.iso
102+
10G MSEdge - Win10-disk1.vmdk
103+
5.1G MSEdge - Win10.ova
104+
5.0G MSEdge_Win10.zip
105+
3.4M ievms-control-0.3.0.iso
101106
4.6M lsar
102107
4.5M unar
103108
4.1M unar1.5.zip
104-
48G total
109+
69G total
105110

106111
You may remove all files except `*.vmdk` after installation and they will be
107112
re-downloaded if ievms is run again in the future:
108113

109114
$ find ~/.ievms -type f ! -name "*.vmdk" -exec rm {} \;
110115

111-
If all installation related files are removed, around 37G is required:
116+
If all installation related files are removed, around 47G is required:
112117

113118
Servo:.ievms xdissent$ du -ch *
114119
11G IE10 - Win7-disk1.vmdk
@@ -117,17 +122,18 @@ If all installation related files are removed, around 37G is required:
117122
1.6G IE7 - WinXP-disk1.vmdk
118123
1.6G IE8 - WinXP-disk1.vmdk
119124
11G IE9 - Win7-disk1.vmdk
120-
37G total
125+
10G MSEdge - Win10-disk1.vmdk
126+
47G total
121127

122128

123129
Bandwidth requirements
124130
----------------------
125131

126-
A full installation will download roughly 7.5G of data.
132+
A full installation will download roughly 12.5G of data.
127133

128134
**NOTE:** Reusing the XP VM for IE7 and IE8 (the default) saves an incredible
129135
amount of space and bandwidth. If it is disabled (`REUSE_XP=no`) the disk space
130-
required climbs to 74G (39G if cleaned post-install) and around 17G will be
136+
required climbs to 95G (49G if cleaned post-install) and around 22G will be
131137
downloaded. Reusing the Win7 VM on the other hand (also the default), saves
132138
tons of bandwidth but pretty much breaks even on disk space. Disable it with
133139
`REUSE_WIN7=no`.

ievms.sh

+20-4
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ install_ie_win7() { # vm url md5
343343
build_ievm() {
344344
unset archive
345345
unset unit
346+
local prefix="IE"
347+
local version="${1}"
346348
case $1 in
347349
6|7|8)
348350
os="WinXP"
@@ -367,15 +369,28 @@ build_ievm() {
367369
archive="IE9_Win7.zip"
368370
fi
369371
;;
372+
EDGE)
373+
prefix="MS"
374+
version="Edge"
375+
os="Win10"
376+
unit="8"
377+
;;
370378
*) fail "Invalid IE version: ${1}" ;;
371379
esac
372380

373-
local vm="IE${1} - ${os}"
381+
local vm="${prefix}${version} - ${os}"
374382
local def_archive="${vm/ - /_}.zip"
375383
archive=${archive:-$def_archive}
376384
unit=${unit:-"11"}
377385
local ova=`basename "${archive/_/ - }" .zip`.ova
378-
local url="http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/${archive}"
386+
387+
local url
388+
if [ "${os}" == "Win10" ]
389+
then
390+
url="https://az792536.vo.msecnd.net/vms/VMBuild_20150801/VirtualBox/MSEdge/Mac/Microsoft%20Edge.Win10.For.Mac.VirtualBox.zip"
391+
else
392+
url="http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/${archive}"
393+
fi
379394

380395
local md5
381396
case $archive in
@@ -384,6 +399,7 @@ build_ievm() {
384399
IE8_Win7.zip) md5="21b0aad3d66dac7f88635aa2318a3a55" ;;
385400
IE9_Win7.zip) md5="58d201fe7dc7e890ad645412264f2a2c" ;;
386401
IE10_Win8.zip) md5="cc4e2f4b195e1b1e24e2ce6c7a6f149c" ;;
402+
MSEdge_Win10.zip) md5="c1011b491d49539975fb4c3eeff16dae" ;;
387403
esac
388404

389405
log "Checking for existing OVA at ${ievms_home}/${ova}"
@@ -477,10 +493,10 @@ check_ext_pack
477493
check_unar
478494

479495
# Install each requested virtual machine sequentially.
480-
all_versions="6 7 8 9 10 11"
496+
all_versions="6 7 8 9 10 11 EDGE"
481497
for ver in ${IEVMS_VERSIONS:-$all_versions}
482498
do
483-
log "Building IE${ver} VM"
499+
log "Building IE ${ver} VM"
484500
build_ievm $ver
485501
done
486502

0 commit comments

Comments
 (0)