How to run Windows 7 under Mac OS X 10.6 for free

Update: Since this post got a lot more readers than I expected, it's become clear to me that the title was unintentionally vague. I thought it's amazing that a technology I still think of as fairly advanced, virtualizing operating systems on the desktop, has become commoditized enough that free, open source tools are very mature. When I said "for free" here, I meant that virtualization is available at no cost, not that Microsoft's giving Windows licenses away for free. Sorry for assuming that was obvious!

Pardon the uncharacteristically nerdy post, but I thought I'd write up a handy way I'd found to run Windows 7 in a seamlessly-integrated virtual machine under Mac OS X 10.6. I started with these basic components:

If you're like a lot of geeks that I know, you have a Mac as your main machine, but often need to drop into Windows to check things like browser compatibility or to use some particular Windows applications. I happen to just really like Windows 7 (it's on par with Mac OS overall for me, with some parts being better, such as the Windows Taskbar being much better than the Mac's Dock, and of course some parts being worse.) Some of these instructions may be obvious, but I hadn't seen a writeup anywhere, so here goes.

Here's what you'll need to do:

  1. Install Windows 7 under Boot Camp, following the normal instructions. All of the Vista drivers for Boot Camp worked fine for me, and the install was actually pretty quick.
  2. Download and install VirtualBox. This is an open source virtualization system that runs on Mac OS, a lot like Parallels Desktop or VMWare Fusion, but available for free.
  3. The tricky part: You'll need to do a little bit of geeky stuff. First, eject the Windows boot camp disk in Finder. (It's usually called "Untitled".) Then, launch Terminal so you can enter two commands.
    • sudo chmod 777 /dev/disk0s3
    • VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win7raw.vmdk -partitions 3
  4. Start up VirtualBox, make a new Windows 7 machine, and browse to win7raw.vmdk in your home directory to choose the virtual hard drive for the machine. Your Windows install should boot up. It'll fuss for a little while as it installs new drivers.
  5. Once that's done, you can optionally install the VirtualBox Guest Additions software to let your Windows install completely integrate with your Mac OS X environment.

While it's not quite as seamless as some of the paid alternatives out there, I've found it was very easy to do (under an hour total, and only 15 minutes or so if you already have Windows installed), works very well, and is speedy enough to use regularly.

As always, your mileage may vary, and comments or corrections or feedback are welcome. I was too lazy to do screenshots of the whole process, but if you want to turn this into a complete gadget blog-worthy writeup, I'll be happy to link to it. If you really liked this how-to, you can buy WIndows 7 from Amazon and I'll make a few bucks.

I'm Anil Dash, and I've been blogging here since 1999, writing about how culture is made. Contact me at anil@dashes.com, at +1 646 833 8659, or at anildash on Twitter or IM. Find out more »

If you're new to the site, check out my Best Of and Most Popular things I've written in the past 10 years, or explore the full archives. Browse by month or year using the calendar below.

Powered by Hunch.com

1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
  Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan
  Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb
  Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar
  Apr Apr Apr Apr Apr Apr Apr Apr Apr Apr
  May May May May May May May May May May
  Jun Jun Jun Jun Jun Jun Jun Jun Jun Jun
Jul Jul Jul Jul Jul Jul Jul Jul Jul Jul Jul
Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug
Sep Sep Sep Sep Sep Sep Sep Sep Sep Sep Sep
Oct Oct Oct Oct Oct Oct Oct Oct Oct Oct Oct
Nov Nov Nov Nov Nov Nov Nov Nov Nov Nov Nov
Dec Dec Dec Dec Dec Dec Dec Dec Dec Dec