My Aunt has a 11 year old DELL machine with hardware issues. I'm trying to convert it to a Virtual Machine that will run in Virtual Box or other free Virtual machine software. I also want the VHD to be easily mountable.
Because of RAM related issues, Windows XP is to unstable to convert the machine to virtual machine using VMware vCenter Converter Standalone. So I installed the DELL's Hard Disk in my computer and used Disk2vhd to convert the Hard Disk to a .VHD volume.
I then used Virtual Box to create a Virtual Machine for the VHD volume. Before booting, I snapshotted the .VHD and create a backup. The Virtual Machine would not boot, instead the screen would just be black.
So I created a batch file to easily mount and unmount the VHD volume:
I figured I needed to replace the Hardware Abstraction Layer. I mounted the VHD using the above script and mounted a Windows XP CD image to another drive. I then opened the command prompt on V: \Windows\System32 (V: \ is where the .VHD was mounted) and entered the commands:
I then unmounted the VHD using the code:
I tried booting the Virtual Machine again, only to receive this:
This BSOD occurs just before reaching the desktop in both safemode and regular mode and I am out of ideas to fix it. I've tried, with no success, using the Windows XP repair install tool and chkdsk /r. Both had no affect.
Because of RAM related issues, Windows XP is to unstable to convert the machine to virtual machine using VMware vCenter Converter Standalone. So I installed the DELL's Hard Disk in my computer and used Disk2vhd to convert the Hard Disk to a .VHD volume.
I then used Virtual Box to create a Virtual Machine for the VHD volume. Before booting, I snapshotted the .VHD and create a backup. The Virtual Machine would not boot, instead the screen would just be black.
So I created a batch file to easily mount and unmount the VHD volume:
Code:
@ECHO off
TITLE Mount WindowsXP Disk
ECHO.
SETLOCAL
::Set Directory to Current Batch File Location
set CurDir=%CD%
cd /d %CurDir%
set DiskDir=%CD%\WindowsXP.vhd
ECHO %DiskDir%
SET DiskPartScript="%TEMP%DiskpartScript.txt"
ECHO SELECT VDISK FILE="%DiskDir%" > %DiskpartScript%
ECHO ATTACH VDISK >> %DiskpartScript%
DiskPart /s %DiskpartScript%
ECHO.
ECHO LogFile at: %DiskpartScript%
ENDLOCAL
ECHO.
pause
I figured I needed to replace the Hardware Abstraction Layer. I mounted the VHD using the above script and mounted a Windows XP CD image to another drive. I then opened the command prompt on V: \Windows\System32 (V: \ is where the .VHD was mounted) and entered the commands:
Code:
expand D:\I386\HALACPI.DL_ V:\Windows\System32
copy V:\Windows\System32\HALACPI.DL_ V:\Windows\System32\HAL.DLL
I then unmounted the VHD using the code:
Code:
@ECHO off
TITLE unMount WindowsXP Disk
ECHO.
SETLOCAL
::Set Directory to Current Batch File Location
set CurDir=%CD%
cd /d %CurDir%
set DiskDir=%CD%\WindowsXP.vhd
ECHO %DiskDir%
SET DiskPartScript="%TEMP%DiskpartScript.txt"
ECHO SELECT VDISK FILE="%DiskDir%" > %DiskpartScript%
ECHO DETACH VDISK >> %DiskpartScript%
DiskPart /s %DiskpartScript%
ECHO.
ECHO LogFile at %DiskpartScript%
ENDLOCAL
ECHO.
pause
I tried booting the Virtual Machine again, only to receive this:

This BSOD occurs just before reaching the desktop in both safemode and regular mode and I am out of ideas to fix it. I've tried, with no success, using the Windows XP repair install tool and chkdsk /r. Both had no affect.