These days I’m looking to save money anywhere I can. How about you? Whereas VMWare Fusion (as awesome as it is) runs around $80 USD per copy, Sun’s VirtualBox is a free, open-source product for virtualization that runs on Mac OS X, Linux, and Windows.
Update: Microsoft’s images are broken, and don’t work on anything except VirtualPC now. Mac and Linux users are out of luck for the time being. More information on the subject can be found at MSDN. If you’ve not yet read the related post, “Run Internet Explorer 6 (or IE7, or IE8) images in VMWare Fusion on Mac OS X, you should. This is a follow up on how to take those virtual machines (which we’ve already done a lot of work on), and convert them for use VirtualBox.
You need to have access to a Mac OS X machine.
A broadband connection would be quite helpful.
A USB flash drive (or some other way to copy files to the VM before you have network access enabled).
VMWare Fusion uses the
.vmdk disk format for its virtual drives. VirtualBox uses the
.vdi format. Although VirtualBox can use the existing
.vmdk images, you get better performance if you convert them to
Downloading and Preparing stuff
Download and install VirtualBox. It should live in the
Download and decompress an IE6, IE7, or IE8 VMWare Fusion image that I’ve posted previously. If you need ALL of them, you can save yourself the bandwidth by downloading the IE6 image, making a copy of the file, and upgrading that copy to IE7 or IE8.
Extracting the disk image
When you decompress the VMWare Fusion image, you should end up with a folder containing 3 files: Two text files, and a
Right-click (or command-click) the
.vmwarefile and choose “Show package contents.” This will open up a new window.
.vmdkfile and drag it some place that’s easy to find. In this tutorial, we’ll use the desktop.
Converting the VMWare image to a VirtualBox image (Optional)
This step is optional. VirtualBox can read the VMWare Fusion disk image format if you’re short on time. However, you get better performance if you convert to the native VirtualBox format.
Terminal.app. It lives inside your
Move to your desktop directory:
- We’ll convert the
.vmdkfile into a raw hard drive file, then convert that raw file into the native
/Applications/Q.app/Contents/MacOS/qemu-img convert -O raw IE6-XP.vmdk IE6-XP.raw && \ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage convertdd IE6-XP.raw IE6-XP.vdi && \ rm IE6-XP.raw
- We’ll convert the
Wait. Depending on your computer, this will probably take 20–45 minutes.
Once it’s done, you can delete the
Configuring the VM
Move the new
.vdifile to wherever you’ll want your virtual machines to live.
Launch VirtualBox. You’ll be presented with the “Welcome to VirtualBox” dialog.
Click “New.” A “Create new virtual machine” dialog box will pop up. Click “Next.”
Name your virtual machine. I named mine “IE6-XP.”
Operating system is “Microsoft Windows.” Version is “Windows XP.” Click “Next.”
Determine the amount of RAM you want to allow the virtual machine to use. I have 4 GB of RAM, so I allow 512 MB. Adjust as necessary, but I wouldn’t go below 192 MB. Click “Next.”
Here, you select the disk image to use. Choose “Use existing hard disk.” There is a pull-down menu that says “<no media>”. Click the icon to the right of it.
The “Virtual Media Manager” dialog should pop up. Click “Add.”
Find where you saved the
.vdifile to, and select it. Once that’s done, click the “Select” button. This will close the Virtual Media Manager” dialog.
Back on the “Create new virtual machine” dialog, the pull-down menu that used to say “<no media>” should now say something along the lines of “IE6-XP.vdi (Normal, 16.00 GB).” Click “Next,” then “Finish.”
From there, click “Settings” along the top of the application.
Click the “Audio” tab, and deselect “Enable audio.” We don’t have the drivers for this, so we’ll save ourselves the nag-ware.
Click the “Network” tab, and choose “Intel PRO/1000 MT Desktop” from the Adapter Type pull-down.
Leave everything else as default, and click OK.
Click “Start” along the top of the application to start the virtual machine.
Installing the drivers and Guest Additions
When the virtual machine starts, the viewport will be very small. Windows also may be asking you to find drivers. Make it go away for now.
In the “Devices” menu, choose “Install Guest Additions.” This will load a virtual CD-ROM.
The setup should begin automatically. If it doesn’t, go to the Start Menu, choose “My Computer,” then double-click on “VirtualBox Guest Additions.”
Go through the process and install the software, then restart your VM.
While that restarts, switch back to Mac OS X and download the driver for the Intel PRO/1000 MT ethernet card. Download the version for Windows XP (32-bit). Copy it to your USB flash drive.
When the virtual machine comes back up, you’ll need to connect your USB flash drive to your virtual machine. To do this, you’ll need to drag the flash drive icon to the trash from Mac OS X (but leave it physically connected). In VirtualBox, go to the menubar and choose Devices → USB Devices → USB Flash Drive.
Navigate to the installer on your flash drive, and install the Intel drivers.
Lastly, go to Start Menu → Run, then in the dialog type the following so that you can keep the additional drivers on your VM:
D:\VBoxWindowsAdditions-x86.exe /extract /D=C:\Drivers
You should be all set! If you want to get all super-hacky, you can check out “Create IE VBox” for geekier details.