Chalk it up to "bad karma". Sometimes, we’re just destined to experience bad things. Nasty, wicked, insanely cruel things.
I was on a roll. I had finally carved out some "extra time" and was well on my way to tying up all my loose ends. You know - pet projects, writing, research. Life was good. Even kind of dreamy.
I'm not sure when it happened, exactly. As I think back over the past 24 hours, there were definitely signs. Maybe I'm not yet seasoned enough to recognize them since adopting my new Mac OS X dev platform. But you'd think after 25+ years in this business, something would start to sink in. Guess not.
I've been running VMWARE Fusion for the past 6 months or so, and I absolutely LOVE it. I've got Windows Server 2003 installed on a 40GB virtual disk. LOTS of software tools installed. I'm talking LOTS of tools and software. MOSS, SQL Server, Office, Visual Studio, etc. It's been working so well, I've fallen out of the habit of taking regular snapshots. (Unlike VMWare Workstation 6, you can't take multiple snapshots in Fusion - only one snapshot that overwrites any previous ones. This was a downer from the start - hopefully the folks at VMWare will change this in a future version.) Still, I really like this setup, because I can run iTunes, Safari and a host of other Mac apps while at the same time developing on a screaming WIN2003 virtual box. It's really snappy and takes full advantage of the MONSTER hardware on my Mac Pro.
Anyway, I think it started with iTunes. Every now an then, I would hear the tell-tale "swoosh" as some application was being terminated on the Mac side. I thought it was some background process shutting down, but later, there was a popup that said another version of iTunes was available and would I like to download it. I said yes. iTunes then proceeded to go into an infinite loop spinning indefinitely. Tried to force quit - iTunes refused. This was the first sign, but I was too busy to deal with it. You see, I was in the middle of installing Visual Studio 2008 SP1. This was one of those "loose ends" I'd been wanting to do since forever.
But there was a problem on the Windows side. Seems the SP1 for Visual Studio was failing to install. Everything else upgraded ok, including Office 2007 and all the other packages affected by the .NET Framework 3.5 SP1. But for some reason the Visual Studio SP1 just kept failing. I spent about a half day trying to figure this out. Since I also had VS2005 on the same machine, I thought there might be some kind of strangeness in the registry. Others had reported similar problems since the beta, so I uninstalled VS2005 completely and tried the SP1 upgrade again. Still no dice.
I thought maybe I could just ignore it. But when I tried to create a new project in Visual Studio - the "OK" button on the "New Project" dialog was disabled for all project types. This meant I was effectively dead in the water. I could continue to work on existing projects, but no new projects. Not a good situation for a hard core developer like me.
Next, I tried a repair operation for VS2008. Copied all new DLLs from the original DVD. Everything worked fine. No errors reported, but still no "OK" button. Now I'm thinking complete uninstall/reinstall of Visual Studio. But just to be on the "safe side" (ironic, eh?), I decide to shut down the VM and reboot just in case the windows installer had issues that needed to be cleaned up. No problem. Shut down the guest OS. Shut down VMWare.
Since I was having problems with iTunes, I figure now is probably a good time to reboot the physical machine as well. This is where things start to get a little "hinky". Seems iTunes is still refusing to shut down. Can't restart the machine. After a few minutes, the Apple Finder then crashes and burns. Kind of like when Windows Explorer goes away and restarts. Only, it doesn't restart. Just the dock remains visible on the screen. None of the reset keys work. What to do? What would you do? Hardware reset, right? Wrong. Not sure what else could have been done, though.
[ At this point, the stage is all set for a major catastrophe of some sort. iTunes is having problems, likely with the physical disk. Visual Studio is having problems, likely with the registry. Fusion doesn't appear to be having problems, but since it is running while iTunes is choking, perhaps things are not all hunky-dory. Finder has gone away - perhaps something still in memory that really needs to be flushed from the cache? Who knows? Definitely not me. Certainly not now. ]
I press and hold the power button until the machine starts up again. Great. Startup iTunes - no problem. Delicious sounds emanating from the speakers. Startup VMWare Fusion. Windows Server 2003 Standard Edition. Windows logo appears on the screen. I'm listening to Luther Vandross singing "Going in Circles" waiting for Windows to boot, and then WHAM! Blue screen. "Stop: C0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE or its log or alternate."
At first, I'm not sure what this means. My mind starts racing. I reset the VM and try it again. WHAM! BSOD! I reset again and try to boot into safe mode using F8. Windows seems to ignore the F8. I check the system settings to make sure function keys are getting to the guest OS. I reset again and again, trying desperately to boot into safe mode - no dice.
[ Seems my hardware is TOO FAST! Fusion doesn't have time to process the function keys in the instant between starting the VM and starting Windows. (This is an area where the VMWare guys could help by perhaps including a "start Windows in safe mode" menu command.) ]
Everything I find on Google says "reboot into safe mode". But I can't get into safe mode at all. Damn!
Now I'm in full panic mode. What was I working on? How long since my last snapshot? What am I going to lose if I revert to the last snapshot? Will I be able to recover anything? Can I access the hard drive even if the OS fails to boot? What is the recovery process for a failed virtual drive? Is John really up the creek this time without a paddle? Find out next time on "Crash and Burn, Part Two – Wake Up Call".
Seriously, though. This will definitely be a learning process, to say the least. I'll post a follow up as soon as I can, but right now I have to go for a walk on the beach and settle down a bit. Maybe I'll do some yoga later and then catch a movie or something. I'm not kidding. This is not looking good.
JFH