Today I performed a p2v conversion of a Windows XP workstation into VMWare ESXi using the free VMware Converter. This tool is really wonderful, but sometimes it likes to leave windows in an inconsistent state – especially if you resize the partition.
This case is complicated by the fact that the source computer has the Dell recovery partition, which I decided to bring along as well. After conversion, I shut down the source PC, and power on the VM, only to get Error loading operating system.
The internets failed me. Plenty of people have had the problem, but most of the solutions involved Linux or Vista+ (or reformatting. Obviously not an option). Additionally, I have encountered this problem when performing a p2v on a Server 2008 box…
I tried using the windows XP cd recovery console with fixboot and fixmbr. It didn’t work. I fooled around with the UBCD. Again, didn’t work (and wasted a lot of time) Finally, I fell back on previous experience, and found my solution: use the server 2008 CD to fix windows XP! (This would probably work with the Vista or windows 7 images as well)
So here are the steps to fix the “Error loading operating system” issue (with Windows XP ONLY) caused by vmware converter:
- Boot with a Server 2008 disk (Vista, Win 7 might work as well)
- At the language screen click next
- At the “Install windows” screen, click “Repair your computer” to the lower left
- The next screen “System Recovery Options” will have an empty list, but that is ok! Click Next
- Click “Command Prompt”
- At the command prompt, type the following:
bootsect /nt52 ALL /force /mbr
note: in my case, using “ALL” instead of “c:” or “SYS” was what finally solved it
- exit out and reboot – with any luck, windows XP will now boot!
If you still have a problem, my only other suggestion would be to use diskpart to ensure that the correct partition is active. If that diesn’t solve it, maybe the other Google results will
Good luck, and please leave a comment if this helped!