Thursday, November 22, 2012

Testing IE9 in Ubuntu with VirtualBox setup script

Unfortunately for web developers some people still use internet explorer(IE) which means we need a way to test our pages in it.  There is no good way to install IE9 directly in Ubuntu so the best thing to do is set up a windows virtual machine and test your pages in that.  Fortunately Microsoft provides free VHD images of windows with various versions IE for free to developers(with a 90 licence).

To make this setup easier I have created a small bash script which does all the downloading, installation and configuration for you.

The script works as follows:
1. Downloads the RARed VHD file from
2. Installs unrar
3. extracts the VHD file
4. Installs VirtualBox
5. Configures a new Windows VM
6. Starts the new Windows VM

You can download the script here:

Place the script in your home folder.

Give the script execute permissions:
chmod +x

Run the script(and kick back because it takes a while to download and extract everything):

After running the script the first time you can just run your Windows VM from the VirtualBox GUI as normal.

NOTE: the Windows password is "Password1"

No comments:

Post a Comment