Potential P2V Project - recommendations

HCHTech

Well-Known Member
Reaction score
4,024
Location
Pittsburgh, PA - USA
I've got a project that I think is a perfect candidate for a P2V conversion. I haven't done one of these before so I'd like to get it right the first time if I can.

Client is a local delivery company, 2 office employees and a couple of drivers. They are running out-of-support management software on an circa 2007 XP workstation (yikes). New software is $25K + maintenance, and they won't be doing that. Instead, they are trying to sell the company for a year, then will close down if unsuccessful.

So....I'd like to give them that year by virtualizing that XP box before it fails completely. It's still running, but is starting to get some reallocations on the disk. I can have the machine over a weekend to do the job.

So.....

1. Is Disk2VHD still the obvious choice for the conversion?
2. It's a Dell OEM Windows installation (which may nix the legality of the deal, but client agreed to purchase an extra Windows license to attempt to balance that scale)
3. Can you still even get the Microsoft Virtual Machine software (like that used to put an XP virtual machine on a Win7 computer back in the day) for a new Win10 workstation? I see that HyperV doesn't support an XP guest....and it also looks like only older version of Virtualbox support XP guests...
4. Is this even possible at all or should I pass on this idea?
5. Assuming it *is* possible, any gotchas I should watch out for?
 
Well if you know anything about Linux (Mint 18.3 is what I use) you could set that XP in a Oracle VM VirtualBox quite easily (maybe.) I have had many different VM's running on my main computer (and others) and they all run very good. I have a Dell Precision, T3400 with 8GB ram and a core2-quad @ 2.4GHz as my main machine.

Personally this would save you having to purchase a additional Winderz license to do what you are wanting to do since Linux is open-source.

I'm sure many others will weigh in on this and I might even be wrong about XP being able to ran this way.

Good luck with whatever you come up with.
 
Can still get Virtual PC on a Win7 host. We (sadly) still have a few clients that, when XP sunsetted, and we replaced workstations with Win7 rigs, had to keep an XP instance running for some ancient LOB app that wouldn't run on 7.

You do occasionally run into hiccups with Win7 at times, VHD bloat, etc. So.....I'd lean towards Virtual Box or free version of VMWare (gotta use a different converter here though)
Do a test run for the client, and yup Disk2VHD is a great tool, have used it many many times on desktops and servers.
 
Well...this project's test phase is....proceeding....slowly and painfully. I do like learning new things, but when you are trying to learn them for a specific purpose, it is quite a bit more difficult. I started out keeping a list of steps as the beginnings of a new process for the binder, but the process quickly turned comically scattered as every. single. step presented a new problem, which when solved, presented the next new problem. Wall-o-text presented for your entertainment - relish in my bad decisions, stay to the end to witness the sheer tenacity!

tldr: XP is too old to waste your time on!

Here are the steps I took, in mostly chronological order.

1. I take an image of the clients disk with ddrescue, then clone this image to a working scratch drive. I test the old disk with gsmartcontrol, it has a bad sector and one pending reallocation.
2. I run hardware tests on the old XP workstation and everything passes
3. I put this new disk into the existing client's machine, and it boots right up to XP.
4. I run a full chkdsk on the new disk, it finds and repairs several errors, then reports success.
5. I take an unused bench machine, install the latest version of Linux Mint, update and test it. All working ok. Run full hardware diags just in case - all ok. Onward.
6. On another (Win10) bench machine with hotswap bays, I use disk2vhd to make a vhd of the disk. This takes a couple of hours, gets all the way to the end of the process, then hangs. I was trying to write the vhd to an USB external disk, maybe that was the problem. I do it again writing the vhd to the internal disk, same answer.
7. I find BackupChain, a more robust software that will create vhds and try again. It doesn't hang, but also fails after a couple-of-hour effort without creating the vhd.
8. With fresh eyes after a night's sleep, I see that I had been trying to create the vhd from the original client disk instead of my new disk. Idiot. There was a single bad block on that original disk, and it otherwise passed a gsmartcontrol scan, but that bad block was preventing success. I use BackupChain again, this time on the right damned disk, and it works first time. I'll have to go back and try disk2vhd, but no time for that now.
9. I try to pull the vhd file over the network to the Linux machine, but I can't see the Windows network. I troubleshoot a while, disable the firewall on Mint, various other steps found with the google, but no dice. It's 300GB so I don't want to copy it to an external, then copy it back to the linux machine, that would take hours. Finally, I try it the other way, pushing it from the Windows 10 bench machine to the Linux machine. I can ping the machine, but not open any folders. Oh, no folders are shared by default. I share the 'Public' folder (why is THAT necessary, but it's linux, so just do it) That works. It still takes a couple of hours, but that's about the best you can hope for on a gigabit network.
10. Back to the linux machine, I install Virtualbox with software manager.
11. I create a modust XP vm, assign the vhd as the hard disk and boot that sucker up, which fails...no surprise. No safe mode, either.
12. Ok, the answer is apparently to do a repair install of XP which will replace the HAL. Makes sense. I dig up an XP-Pro install disk, make sure the DVD drive is attached to the VM, and boot. Didn't work, doesn't see the disk. Hmm, change the boot order, no help. Check the help file for virtual box, do some googling, check the Mint forums, nothing works. I finally give up and use dd to make an ISO of the XP install disk on the linux machine, attach that ISO to the DVD drive in the vm, and we're off & running. I should have done that in the first place.
13. The repair install hangs....please insert the disk with the Intel Pro1000 network driver...hmm...no way to do that now, so I hit cancel and after the 3rd popup, the repair install continues. I can figure out the network driver later.
14. The repair install completes, I boot the vm again, and....it looks like it's working - I see the original user name. Yea! Oh...."Windows must be activated before you can log on", but clicking ok to that prompt, gives me a plain blue screen.....because why - there is no network? I assume.
15. I boot to safe mode with command prompt and try to ping something - clearly I have no network, oh right, safe mode w/command prompt is without networking...of course I have no network. Idiot.
16. Ok, let's run 3DPNet to get the network driver in and see where that leaves me. Hmm. How to get access to that from within the vm?
17. Ok, I can copy it to a flash drive, plug that into the host machine, then add that drive to the VM. That doesn't work - can't get the drive mounted, even though 'automount' is checked. More research. Oh - I need to add the extension pack to get USB functionality. Download that from virtualbox.org, attempt to add it, but you guessed it, that fails. You need virtualbox v5.2, but only have 5.1 - What...software manager doesn't install the latest version? No, no it does not. Gotta love linux. Take a quick look to see if the 5.1 version of the extension pack is available - don't find it. Sigh. Uninstall VB5.1, manually download 5.2 and the extension pack, install both, open up vb, check the settings for USB, boot the vm....oh right, have to activate before doing anything. Still a blank blue screen. How about safe mode with command prompt? Ok, that works, but I can only see C & D. No additional drives. Back to the drawing board.
18. Maybe if I add a shared folder to the VM. Copy 3DP to the host, add that folder as a shared folder to the VM, boot it to safe mode with command prompt....still can't see any additional drives. Getting frustrating now. Let's make an ISO of the 3DP folder and mount it as a CD, how about that. Now what's the command to do that - more research. Ok, mkisofs. Figure that out, make an ISO, mount it as a 2nd CD drive to the VM. Boot again to safe mode with command prompt, check and I can see the new CD, so run 3DPNet - Hazzah! It identifies the NIC as Intel Pro1000 Server. I install the driver....and.....error - unable to create directory. Ok, I copy the darned folder from the CD onto the C drive of the vm, now it runs. Install the driver....and.....no driver found....because of course it isn't.
19. Ok, new tack. Download the XP version of the Intel Pro1000 Server Driver and install that - what a concept. Find the latest complete set of drivers for 32-bit XP on Intel's site, v23.2. I'm onto you, linux - so this time, I go right to creating an iso of the driver folder, mount that as another CD, boot to the vm, safe mode with command prompt, wait for the prompt to locate the driver, and point it to the CD. Driver not found. Amazing.
20. Maybe getting smarter, I can run device manager from the command prompt, that bring up the standard gui, I open network adapters, I see the welcome exclamation point by the NIC, choose to update the driver, point it to the Intel folder I mounted to a CD, and.....no driver found. There is no installer in the folder, I poke around through the subfolders looking for the a matching driver, but no dice. Then, I see what file it's looking for..... e1000325.sys. So I search for e1000325.??? in case it lived there unexpanded, nothing found. Back to the drawing board.
21. After googling, I find the 31000325.sys file mentioned in a Lenovo network driver download. What have I got to lose, I download that file, make an ISO of the folder, mount it, and there, finally is an installer. I run the installer from safe mode with command prompt in the vm, and it installs, and device manager shows it was successful. Onward.
22. Ok, try again - boot the vm, cannot log on until activated. Ok, activate. Plain blue screen. Feeling very powerful as an IT guru now.
23. Ok, breathe - treat this as a regular computer - think back to XP days. oh, screw it - google activation loop XP = reset licensing components with a few regsvr commands. I remember that process - I can do that.
24. Ok, done - reboot the vm. Same answer - no good. Find more suggestions to extract the tools and sysprep the thing with a factory seal. Growing less and less confident that this project is going to succeed, be worth it, or be something I want to stand behind. I do it anyway, not stopping now!
25. After a reboot, I can now login to the VM. Well, halle-freakin-lujah. It still needs activated, but I now have network and internet access, so I can proceed.
26. I'm sure no one is surprised at this point that the activation was the next hurdle. This machine was originally an OEM license by the vendor of the equipment. The sticker on the original case had their name right below the "Windows XP Professional" line at the top. Plus, I doubt the activation servers are even awake anymore for XP. In any event, when trying to go through the activation process, I could click on the warning in the system tray, but no activation window would appear. I also couldn't bring up the activation window by running the msoobe /a command. I may or may not have tried various other techniques for questionable routes to the activation finish line - nothing I would ever stake my business reputation on. In the end, I couldn't get the vm activated.

I think this is where I call it. It was fun (well, some of it was fun anyway), and would have been a great solution had it been viable and supportable, but that's not where we ended up. This towel is officially thown [in].
 
Last edited:
For just a year? Why make a mountain out of a molehill. Image the drive, of course, for redundancy. Just buy another Dell chassis and stick the drive in. Besides doing a VM of an OEM OS can only be run on that OEM hardware. Yes, it can work on something else but it's a violation of EULA. Had one customer whose previous tech had done a P2V of a Dell XP and put it on Parallels on several iMacs.
 
Yeah, keeping the old box going is the only legitimate thing I can do. I was just being stubborn about the whole process and running it on linux - I wanted to at least figure out whether it was doable or not I guess. I'm going to take the new drive with the image of his failing drive, mount it in the old box and he'll be good to go. Now I only need to convince him it took me 12 billable hours to do that - haha.

In the unlikely event that I run into a job like this in the future, I'll know that having a non-OEM license (and likely having at least Windows 7) is a required prerequisite. Also, for dedicated-use scenarios, linux is an interesting possibility for the host machine. For anything else, I'd want to use a windows host.

In the interim, this old dog learned a few new linux commands and quirks, so it's not a total waste.
 
Another item to point out . You can't just "convert" an OEM install to retail, etc by just putting in a different key. At least last time I tried. These OEM installs will always have some of their proprietary bloatware installed.
 
You skipped one of the first steps I'd suggest: Try P2V conversions using several different virtualization options. VMWare Workstation, Hyper-V, VirtualBox, heck maybe even try throwing it onto ESXi. Pretty sure every one of those has tools available to do the P2V conversions, run each of those in turn and see what resulting VM runs.
 
You skipped one of the first steps I'd suggest: Try P2V conversions using several different virtualization options. VMWare Workstation, Hyper-V, VirtualBox, heck maybe even try throwing it onto ESXi. Pretty sure every one of those has tools available to do the P2V conversions, run each of those in turn and see what resulting VM runs.

I'm amazed I found 12 hours to attempt this project at all - that would have killed me I think! I would hazard a guess that none of the options would have ended up with an activated XP installation - you are essentially changing all of the underlying hardware. So without the ability to reactivate XP in any fashion, the project was doomed from the start. Windows 10 would have been a snap, I would guess, and who knows about Windows 7 - I would hope there would be a way, but if that too, was OEM, there wouldn't have been a legal way.

I have an optometrist with special [chair + optical frame + camera + computer] units he got second hand from a practice that was closing up. They have XP computers and he'll be in the same boat if one of those dies. I've replaced power supplies, fans & hard disks already over the years, and I've told him there isn't much I can do if the motherboard ever goes. Of course, the manufacturer wants him to buy the new unit (somewhere between $20K & $30K). I'm sure if it does break, he'll just find another second hand one somehow to perpetuate this cycle - haha.
 
Back
Top