This is a must for every web developer out there.
VirtualBox is a virtual machine application for Windows, Linux (Ubuntu and others) and OSX for running different operating system inside your host OS. Install VirtualBox first.
Running more than one version of Internet Explorer per Windows installation is difficult, so you need to resort virtual machines even on Microsoft Windows itself when doing web development and testing in IE. xdissent (Greg Thornton) provides one liner command line script for automated installation of the Microsoft IE App Compat virtual machines for Linux and OSX. The source code of the script is on GitHub and easily maintained for your own purposes. On Windows, you can use native Microsoft Virtual PC download for running these virtual machines, so no scripting needed.
E.g. to install IE9 to a specific location on your hard-disk (/fast/ie) on OSX you can simply do:
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="9" INSTALL_PATH=/fast/ie bash
If you for some reason fail your install (download error, etc.) you can reset the installation
rm -rf /fast/ie/vhd/IE9/
Warning: The download of IE9 alone is ~7 GB and with the downloaded RAR files, extracted virtual machine image and initial snapshot around 19 GB disk space is consumed. However you can remove downloaded image files after the installation.
In the end of the script you should see something like:
Creating IE9 VM Virtual machine 'IE9' is created and registered. UUID: e1733dd1-79d9-4c12-8770-131591d3d485 Settings file: '/Users/moo/VirtualBox VMs/IE9/IE9.vbox'
… and this virtual machine is added to VirtualBox registry automatically.
The Windows user username/password is: admin / Password1
Naturally, honoring the traditions of Microsoft, you might need to restart your virtual machine couple of times before you can do anything useful with it. Interestingly, only 256 MB of RAM is configured for Windows 7.
1. Other goodies
You’ll naturally get a copy of Windows 7 / Windows XP with the installation. However, this version of Windows is 30-days time limited and special Microsoft licensing terms apply. However, VirtualBox snapshot is created upon creation and you can always revert back to this clean snapshot. You may not use the virtualized Windows copy for any other purposes besides web development and testing. I am not entirely sure if this allows you to install Windows Mobile SDK and do testing of Windows Phone 7.1 (Mango) mobile browser…
Subscribe to RSS feed Follow me on Twitter Follow me on Facebook Follow me Google+
It’s worth noting that I’ve found the IE 10 Developer Preview very helpful for this sort of testing as well. Installing it under Windows 7 (Vista might work too) gives you access to IE 5.5, 7, 8, 9, and 10 preview all within the same program (and you can easily switch rendering engine with Alt-5/7/8/9/0). Not sure how this GitHub setup works, but the IE 10 preview might save you needing 4 or 5 separate VMs.
IE 6 isn’t supported so you still need a Windows XP instance for that, though.
Not even IE10 supports IE6! Why should we? 🙂