Sunday, July 8, 2012

Windows 7 STOP 0x7B VMWare resolution

Wanting to get rid of old hardware, I attempted to convert a Windows 7 x64 computer to a VMWare image. VMWare's P2V software would not convert my machine due to a GPT partition table. I manually converted my machine by doing the following after the break

As I mentioned, P2V refused to convert the machine due to the GPT partition table. I do not recall why I selected GPT, but I surely won't in the future! I was able to convert this manually, however this was pretty dirty and I wouldn't recommend it. I hope to save someone time googling this issue.
  • Convert the machine
    • Attached old physical drive to VMWare Host machine using USB to SATA adapter
    • Attached USB device to a new virtual machine
    • Booted the new VM off the Windows 7 Installer CD
    • Formatted the new VM disk
    • Robocopy'd contents of physical drive to VM dynamic disk
      • I have excluded Cygwin as it has tons of small files, and I was getting permissions errors
      • This took approximately an eternity as the interface was SATA 1 and I was moving around 200GB
      • robocopy E:\ G:\ /COPYALL /E /R:0 /DCOPY:T /XD E:\cygwin
  • Rebuild VM boot records
    • bootrec /fixboot
    • bootrec /fixmbr
    • bootrec /rebuildbcd
  • Enable VMWare SCSI harddrive drivers
    • Attempting to boot this new VM, I would get a blue screen with an error code of 0x7B. As P2V prepares a machine for conversion, it enables the SCSI drivers used by VMWare in windows. I now needed to manually enable these drivers without being able to boot the machine. Cool.
    • In the Windows 7 Boot disk WinRE environment run the Command prompt and run Regedit
    • Expand the HKEY_LOCAL_MACHINE tree,  click File -> Load Hive
    • Navigate to \Windows\System32\config\system
    • When prompted to select key name, choose something like "OFFLINE_HIVE"
    • Navigate to HKLM\OFFLINE_HIVE\SYSTEM\ControlSet001\Services\LSI_SAS
    • Change the "Start" key from 3 to 0
    • Repeat if a ControlSet002 exists
    • Select the offline hive, and File -> Unload
I used two sources for this: VMWare KB 1005208 and Mircosoft KB 927525

No comments:

Post a Comment