Testing IE6 on Mac using VirtualBox
đ Whoa! Please note that this post is 15 years old. The views expressed within might have become outdated.
I recently came across VirtualBox, which is a great app that lets you run virtual machines on your Mac. Surprisingly, Microsoft offers different installations of Windows as disc images for free on their site.
So with these two combined, you have a pretty sweet testing environment. Properly configuring Windows in the virtual machine can be a bit of pain in the ass though, so this article aims to break it down into small, easy steps to get you up and running in no time.
Downloading and installation
First, you need the Virtual Box app, obviously. Go to the download page, grab the Mac distribution, and install it.
Meanwhile, choose an image from the list at the Microsoft site.
When you have Virtual Box installed and your disc image is downloaded, youâll notice the disc image is a .exe
file. Not to worry, itâs actually just an archive file, so unpack it using something like UnRarX.
Along with some Read Me files, youâll end up with a .vhd
file, thatâs the file youâre gonna need. Save it somewhere where it makes sense to you.
Creating you first virtual machine
Fire up Virtual Box. Choose âNewâ to create a new machine. Give it a name and follow the steps until you come across the point where you choose âCreate new hard diskâ or âUse existing hard diskâ. Choose the latter and select that .vhd
from earlier.
Congrats! You can now run Windows in your virtual machine.
Chances are, however, youâre gonna run into problems. Read on to learn about some common ones.
CmBatt.sys
and compbatt.sys
missing
Download the disc image file of Service Pack 3 here. You now have an .iso
file that you can mount inside the virtual machine. When the virtual machine is your focused app, you can choose Devices > Mount CD / DVD-Rom
. Do this and choose the Service Pack 3 ISO file. If it doesnât show an autorun screen, go to âMy Computerâ and double-click the disc.
Start the installation process. At one point itâs extracting all SP3 files. When itâs done, leave the screen alone, donât choose âNextâ or whatever. Make sure the âMissing filesâ dialog box from the hardware detection is visible (you may have to manually pop it up by going to âAdd Hardwareâ under âControl Panelâ). When it complains about the aforementioned files, point it to a directory like c:\a819b0059e04c1755\i386
. This is where that installer from before extracted all its files, and the missing files will be there.
So now thatâs out of the way, cancel out the Service Pack 3 installer, you donât need it anymore.
Sound and USB
Sound and USB werenât working for me. Then again, I donât need sound and USB in a virtual machine.
In Virtual Box, right-click on your machine, choose âSettingsâ, and under âAudioâ, uncheck âEnable audioâ. Also, under âPortsâ, uncheck âEnable USB controllerâ. This should get rid of those annoying messages.
No network is available in the virtual machine
What good is a virtual machine to a web developer when he cannot view online content, eh?
Right-click your virtual machine and choose âSettingsâ. Under âNetworkâ, make sure âEnable Network Adapterâ is checked and the Adapter-type is set to âPCnet-FAST III (Am79C973)â. Then start your machine.
In the menu, under âDevicesâ, choose âInstall Guest Additionsâ. Continue the installation process and reboot your virtual machine.
Now open a terminal and execute the following command:
d:\vboxwindowsadditions-x86.exe /extract
The necessary files are now located in C:\Program Files\Sun\xVM VirtualBox Guest Additions\x86\Network\AMD
. Point the hardware detection concerning AMD to that folder and it will successfully install the required drivers.
If all went well, you now have a functional virtual machine in which you can test Internet Explorer. Please note that the Microsoft disc images expire after five months or so, but new ones will be put up on the site so you can just download a fresh copy. This hasnât happened to me yet, but Iâm afraid youâre gonna have to walk through the above steps all over again, alas. At least youâve got âem all in one place now!