Repository navigation
Description
Checklist
- I looked at https://github.com/PhoenixPE/PhoenixPE/wiki/FAQ to see if my question has already been answered.
- I performed a search in the issue tracker for similar issues using keywords relevant to my problem, such as the error message I got from the log.
Report
Describe what is happening
I am building a minimal ("light") PhoenixPE to use as an emergency recovery environment for machines hit by a virus, a cyber attack, ransomware or a disk failure. It is booted over the network with iPXE + wimboot (boot.wim served over HTTP, BIOS mode), so that a damaged machine can be recovered without local boot media; for now I test it in a VMware Workstation VM. This is why the image has to stay small (it is loaded entirely into RAM) and why network support and an antivirus scanner (KVRT) are included. While getting it to boot I ran into several separate problems. They are collected here because they are probably related to the same setup; if you prefer, I can split them into separate issues. Some of them have workarounds, which I list so they can be useful to others.
Environment
- PhoenixPE project scripts 1.0.11.0 (2026-08-01), built with PEBakery on Windows 11 Pro (build 26300)
- Windows source images: first Windows 11 x64 build 10.0.26300.9457 (PEBakery warns: "This Windows source version has not been tested"), then Windows 10 x64 build 10.0.19041.2965 to check whether the new source was the cause (it was not for problems 7 and 8)
- Boot method: iPXE -> wimboot -> boot.wim (+ bootmgr.exe, boot.sdi, BCD), BIOS. No CD/USB boot media is present.
- Test VM: VMware Workstation 26, BIOS firmware, 3D acceleration off, 2 GB RAM / 2 vCPU initially
- Selected scripts (about 28): Core/Finalize, SetupFiles, SlimFast, WinXShell, Networking, PENetwork, LogonAsAdmin, TaskMgr, 7-Zip, Explorer++, Notepad3, Tweaks (CmdPrompt, DesktopLayout, DisplaySettings, Localization, PowerOptions), Display Drivers, Network Drivers, Driver Integration (VMware pvscsi, vmxnet3, vmmouse), Event Logging. Later also Core WoW64 and, as tests, Kaspersky Virus Removal Tool, Trend Micro HouseCall and Emsisoft Emergency Kit.
- boot.wim size: about 750 MB (Win11 source), 866 MB after adding KVRT, 994 MB with WoW64, 1.09 GB with Emsisoft; 725 MB with the Win10 source, WoW64 and no scanner
Problems seen (in the order I hit them)
-
Startup waits forever at "Mounting CD/USB as drive Y:..."
Retracted: LetterSwap times out after about 11 s and the PE continues, see the comment below.
InitPErunsLetterSwap.exe /auto /bootdrive Y:, which waits for a CD/USB boot medium. With wimboot over the network there is none, so the PE never goes on.
Workaround: comment out the LetterSwap call inPhoenixPE.au3with a custom script. Possible fix: skip it (or time out) when the PE was not booted from a removable medium. -
Black screen with the VMware
vm3dWDDM display driver (Driver Integration)
With the VMware SVGA3D driver included and 3D acceleration off in the VM, the screen goes black. The log showsScreen 1 Destroyedand no new screen is ever defined. Without that driver (Basic Display) the PE works at 1024x768. -
Hang at "Initializing Network Support..." when Event Logging is not selected
InitNetwork(SetWG.exe,net start Wlansvc,net start WinHttpAutoProxySvc) does not return. Selecting the "Event Logging" script made it pass. Reportedly fixed in 4a112b5 (not yet retested on my side). Maybe worth a note in the Networking/PENetwork scripts, since several network services depend on the Event Log service. -
Intermittent hangs with the VMware emulated Intel e1000 NIC
Withe1000, the whole guest sometimes freezes with the VM process at about 100% CPU. The same image hung in different places on different boots: at "Starting Windows Event Log Service...", at "Initializing Network Support...", and once at the desktop right after pressing OK in PE Network Manager while it applied the settings (mouse also dead). One boot reached the desktop and DHCP worked.
Changing RAM (2 -> 4 GB) and vCPUs (2 -> 1) did not help. Changing the NIC tovmxnet3fixed it (desktop reached, PE Network Manager OK works).e1000ealso boots (no hang seen so far). Note thatvmxnet3made the iPXE download about 10 times slower thane1000/e1000e(about 2 minutes against 10-13 seconds for a 750-870 MB boot.wim), so it is not a good choice for PXE.
This may be related to Sporadic boot error when "Auto Login as Administrator" is enabled #208 (sporadic boot errors on 26H2 that look like network stack changes), but I have not confirmed that. -
"AutoIt - Error allocating memory." on a 2 GB VM
After adding KVRT, boot.wim grew from about 750 MB to 866 MB and the PE failed at startup with this AutoIt message on a black screen. With 3 GB RAM the same image starts. (See also Iso boots and gets hung up at "Loading Display Drivers..." #77 where low memory in VMware is mentioned.) It would be useful if the documentation gave a minimum RAM size for wimboot/RAM-loaded builds, and if the splash/script reported the low-memory situation more clearly. -
Hang at "Configuring Display Settings..." with Display Settings = "Auto Detect" (confirmed)
With 3 GB RAM ande1000e, startup stayed on this splash for more than 4 minutes with low CPU usage; the VMware log showed no screen change after the 1024x768 mode was defined. After changing the setting to a fixed "1024 x 768" (same VM, same image otherwise) the PE passes this step and reaches the desktop. So Auto Detect (SetMaxResolution()/GetNativeResolutions()) seems to hang on the VMware SVGA Basic Display. I did not debug it further. -
"Machine Type Mismatch" / "Unknown Error 0xd8" when running 32-bit programs (cause found, fixed)
Trend Micro HouseCall failed with "Setup.exe - Machine Type Mismatch: ...hcpackage64.exe.tmp is valid, but is for a machine type other than the current machine", and starting Kaspersky Virus Removal Tool from the start menu gave "WinXShell: Unknown Error 0xd8" (0xD8 = ERROR_EXE_MACHINE_TYPE_MISMATCH).KVRT.exeis a 32-bit executable (PE machine 0x14C) and the light build did not include the "Core WoW64" script (noSysWOW64), so 32-bit programs cannot run. Selecting "Core WoW64" fixes the error (about +127 MB). It may be worth a hint in the KVRT/HouseCall script descriptions that they need Core WoW64 when it is not selected. -
KVRT starts but fails with "Can't load driver" (same on Win11 26300 and Win10 19041 sources)
With Core WoW64 selected, KVRT starts and then reports "Can't load driver", so it cannot scan. Rebuilding from a Windows 10 19041 source gives exactly the same result, so it is not caused by the new Windows 11 build. It looks like the 32-bit KVRT cannot load its kernel driver in a 64-bit PE (known from Kaspersky forum reports). For this reason the script is not usable as an in-PE scanner in my setup. -
Boot Manager error 0xc0000017 when boot.wim is larger than about 1 GiB (BIOS, wimboot)
As an alternative scanner I added Emsisoft Emergency Kit (720 MB): boot.wim became 1,094,686,846 bytes and Windows Boot Manager stopped with0xc0000017("not enough memory to create a ramdisk device"), with both 3 GB and 4 GB of RAM in the VM. A 994 MB boot.wim booted fine, and the final 725 MB one boots to the desktop with only 2 GB RAM / 2 vCPU. So there seems to be a limit of roughly 1 GiB for the image in this BIOS + wimboot setup, independent of the VM RAM (I have not verified the exact limit). The earlier "Error allocating memory" (problem 5) is a different message, and it appears when the RAM left after loading the image is too small. A note in the documentation about the practical size limit for RAM-loaded/PXE builds would help. Related discussion: https://theoven.org/viewtopic.php?t=378 -
PE Network Manager is started twice (cosmetic)
At the desktop two PE Network Manager windows/instances appear; it still works. I did not look for the cause.
Expected behavior
The PE should reach the desktop when booted through iPXE/wimboot without CD/USB media, and should not freeze with the standard VMware NICs (e1000) or with the Auto Detect display setting. Scanner scripts that cannot work in the PE (KVRT driver) or that push the image over the boot limit should say so in their description.
Screenshots/Logs
I can attach the build log bundle and screenshots of the splash screens/errors if useful. Tell me which ones you need.
Activity
homes32 commentedon Oct 31, 2026
X:\Windows\System32\PhoenixPE.log is needed to see where this is hanging up. the default timeout is ~10 seconds.
This was fixed in 4a112b5
We have some discussion going on here: https://theoven.org/viewtopic.php?t=378
antoniodargenio commentedon Oct 31, 2026
Thanks for the quick feedback.
PhoenixPE.logfrom the hung state. I currently bypass the call with a custom script, so I need to revert that first.antoniodargenio commentedon Oct 31, 2026
I rebuilt without my LetterSwap workaround and captured
PhoenixPE.logfrom the running PE. LetterSwap takes about 11 seconds (22:03:27 to 22:03:38,Returned 0) and the PE then continues normally to the desktop, so it does not hang: the ~10 s timeout works as you said. My original "waits forever" report (point 1) was wrong, probably caused by the black screen from the vm3d driver I had at the time. Please disregard point 1. Sorry for the noise.The delay is still visible with wimboot (no CD/USB media), so skipping it when booted over the network could save ~10 s, but that is only an optimization.
homes32 commentedon Nov 1, 2026
Agreed. this has been fixed and will be included in the next release (tentatively end next week.).
homes32 commentedon Nov 4, 2026
bdf280c
antoniodargenio commentedon Nov 19, 2026
Retested on upstream
bdf280c: PhoenixPE Light built without Event Logging (wimboot PXE, VMware e1000e) boots to the WinXShell desktop. No InitNetwork hang (fix 4a112b5 confirmed) and no LetterSwap delay anymore. The Event Logging workaround is obsolete. Thanks for the quick fixes. The ~1 GiB boot.wim limit remains as discussed on theoven.org.