WinXP 64-bit on a modern PC in pure UEFI (GPT or MBR)

Discussion in 'Windows XP / Older OS' started by Gelip, Jan 17, 2024.

  1. jonathan_hzs

    jonathan_hzs MDL Junior Member

    Feb 3, 2021
    76
    6
    0
    The installation failed in the debug mode, but after the normal mode is installed, it can run normally in the debug mode
     
  2. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    In debug mode, application starts but the virtual CD/DVD drive disappears - right?
     
  3. jonathan_hzs

    jonathan_hzs MDL Junior Member

    Feb 3, 2021
    76
    6
    0
    yes,IT is。
     
  4. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    I did tests with booting WinXP 64-bit on 8 Gen mobo - to boot can be either boot debug or kernel debug for winload.efi 16497 with UefiSeven or FlashBoot
    • bootdebug in bcdedit or DebuggerEnabled in BOOTICE
    • debug in bcdedit or KernelDebuggerEnabled in BOOTICE
    Also tried EFI\Boot\bootx64.efi from Win8.1 or Win10 + winload.efi 16497 but then in WinDbg is BSOD 7E
     
  5. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
  6. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    So I wanted to note for some reason I can't mount the sysprep image as writeable on my system so I have to boot through macrium to replace the sfc_os.dll. When I attempt to mount it it just shows a ?. Not sure if being on Windows 11 is making that an issue or not.
     
  7. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    Also I wanted to note after restoring to a real pc, it boots to a UEFI Interactive Shell?
     
  8. jonathan_hzs

    jonathan_hzs MDL Junior Member

    Feb 3, 2021
    76
    6
    0
    fs0:
    cd efi
    cd microsoft
    cd boot
    Bootmfgw.efi
    you can try,as above
     
  9. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    #29 Gelip, May 1, 2024
    Last edited: May 1, 2024
    (OP)
    @stan456
    Read the guide carefully - sfc_os.dll you replace in the .vmdk file and not .mrimg:
    vmdk.png
    Do you do in MBR or GPT? In GPT WinXP Boot Manager entry is always added as the first on the list in Boot Menu:
    Code:
    echo:
    echo Adding WinXP Boot Manager to NVRAM boot menu, wait...
    echo:
    bcdedit /set {fwbootmgr} displayorder {bootmgr} /addfirst
    
    In MBR you need manually add WinXP Boot Manager entry to Boot Menu as first using BOOTICE. The mbr.cmd script displays information to do and automatically launches BOOTICE:
    first.png
     
  10. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    The issue is I have no way of mapping the drive as writeable. If I do, windows explorer just shows the drive letter with a question mark symbol on it so I though I'll create a backup image, open it on the host pc and replace the file in there and then restore the image.

    I've tried both MBR and GPT. Not sure if I need to mess with something in the BIOS to get this to work. I have an optiplex 3070 micro and an intel nuc I'm trying this out on.
     
  11. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    Are you trying to restore image on one clean disk?
     
  12. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    I'll open diskpart, run clean on the internal drive and follow the directions as listed in the original post
     
  13. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    @stan456
    You had to be mistaken somewhere because the GPT.CMD script automatically adds an WinXP entry to the first place on the Boot menu list.
     
  14. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    #36 stan456, May 2, 2024
    Last edited: May 3, 2024
    I've followed the exact directions and all it does now is say "starting windows xp in uefi" then just turns off.

    Testing this out in vmware, it just sits at that screen

    EDIT: loading this onto a real computer says the file \WINDOWS\system32\winload.efi might be missing or corrupt
     
  15. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    Do you use the latest version sysprep_public.7z ?
    Do you choose from menu 1 Setup on clean disk or 2 Setup next to another OS ?
    Is the winload.efi file really on the disk in WINDOWS\system32 ?
    What is your real PC spec? If Intel 8 Gen or newer, have you tried to use the WinXP SP2 64-Bit UEFI bootdebug option?
    What version of VMware?
     
  16. jonathan_hzs

    jonathan_hzs MDL Junior Member

    Feb 3, 2021
    76
    6
    0
    The system boots on the SATA disk, and there is no problem with the nvme driver, but once the nvme partition is started, the driver is incorrect.
    Whether it's Legacy (boot.ini) or EFI
     
  17. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    I don't understand - "the nvme partition is started" ? Write detailed what errors appear, give a screenshot.
     
  18. jonathan_hzs

    jonathan_hzs MDL Junior Member

    Feb 3, 2021
    76
    6
    0
    A problem has been detected and windows has been shut down to prevent damage to your computer.

    If this is the first time you've seen this stop error screen, restart your computer. If this screen appears again, fol1ow these steps:

    check for viruses on your computer. Remove any newly installed hard drives or hard drive controllers. Check your hard drive to make sure it is properly configured and terminated. Run CHKDSK /F to check for hard drive corruption, and then restart your computer.

    Technical information:

    STOP:0X0000007B (0xFFFFFAD9A24083C0,0xFFFFFFFFC0000034,0x0000000000000000,0

    Co000000000000ooox