Screencast: Install Internet Explorer on OSX using VirtualBox (updated X3)

by jeff

UPDATE #3: Microsoft, for reasons only they seem to understand, have removed the VPC files I originally used in this screencast, and replaced them with totally useless VPCs that now require activation just like a full Windows installation. This screencast will still help you install VirtualBox and VPC files, but without Windows activation keys you won’t have the VPC’s running for long at all. Gee thanks Microsoft.

Until/unless I find a workaround, we’re stuck. If you have suggestions or find a fix, please send them along and I’ll make a new screencast with current instructions.

Cross-platform browser testing shouldn’t be a pain in the ass. If, like me, you’re one of the growing number of designers and developers using an OS other than Windows, you need an IE testing environment. In this screencast

I’ll show you how to set up a virtual machine for Internet Explorer 7 on OSX in about 15 minutes without spending a penny.

Since Internet Explorer is only available for Windows you either need a totally separate machine with a full install of Windows, or you need to dual-boot your current computer with a Windows install. I’ve run both of these setups in the past, and rebooting just to do a little browser testing seems insanely over-complicated. Likewise with having to setup and maintain another complete system just for browser testing.

So what about Parallels? It’s expensive, slow, bulky and you still have to sit around while it installs a full version of Windows. Don’t have a Windows install CD laying around? Too bad, you have to buy one. Then every time you fire it up your Mac will come to a crawl and it’ll pretty much ruin your day.

Both options are overkill, and thankfully no longer necessary.

Virtual Machines

To keep things short, I won’t get into what a virtual machine is or how they work – you can get that here. On OSX I highly recommend Sun’s VirtualBox . It’s free for starters, it’s small, fast, cross-platform and very easy to use. The images you’ll be setting up are ready to run – you don’t have to install Windows and you don’t need a Windows CD.

You’ll hear the hardcore VM fanatics talk about VMware but it’s a clunky, not to mention expensive, beast. For cross-platform browser testing, VirtualBox is the way to go.

Get Your Materials

To follow along with my screencast, you’ll need a few files. Nothing major, but you’ll want to download them beforehand.

UPDATE #1: be sure to use version 2.0.6 only. The recently released 2.1.0 has a problem running these VHD’s. I’ll post more details on this as they come.

UPDATE #2: Microsoft has changed their VPC files since this screencast was recorded. Rather than using 7zip to extract them, you’ll now need to:

  1. change the VPC file’s extension from .exe to .zip
  2. download and install Zipeg
  3. drag the VPC into Zipeg
  4. select the .vhd file inside the Zipeg window, and click Extract. Be sure to wait for Zipeg to finish – look for the green bulb in the bottom right of the Zipeg window.

Thanks to yadmat for this tip.

Be sure to stick around to the end of the video. While I’ve tried to make this as simple as possible, the VPC images from Microsoft are not perfect. In fact, they like to blue-screen the first time you start them up. Keep watching and I’ll show you how to quickly solve that problem.

Ready? Let’s go.


How-To: install IE for testing on OSX using VirtualBox from Jeff Couturier on Vimeo.

To summarize:

  1. extract VPC file w/ 7zip Zipeg
  2. create new virtual machine
  3. start it, fn-F8 right away
  4. safe mode w/ command prompt
  5. cd to /WINDOWS/system32/drivers
  6. ren processr.sys processr.old [enter]
  7. reboot the machine
  8. Devices -> Install Guest Additions, restart vm
  9. new hardware install drivers (auto)
  10. disable battery in device manager
  11. save machine state for later

Now what?

Repeat these steps with the IE6 and IE8 beta VPC files and you’ll have a full IE testing environment. If you really want some browser testing kung-fu, install Ubuntu in VirtualBox so that you can test with Firefox on linux. Here’s how.

Thanks

Thanks to krmathis for posting a pre-compiled and ready to run version of 7zip. And thanks to The Mozmonkey Blog for a good outline of most of these steps.

…But No Thanks

Thanks, but no thanks to whomever is in charge of VPC files at Microsoft. For a while there you were doing a great job of making our lives easier and allowing us to design, develop and test for Windows and IE. But you changed your mind for some reason, and now we’re back to cursing your name with every keystroke because you are once again fighting us every step of the way.