-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating from Server 2022 to Server 2025 fails due to limited RAM #580
Comments
My investigation found that the update failed because the in-place upgrade is failing to allocate a large enough block of RAM (about 500MB) to set up the ramdisk needed to do the upgrade. Setting the minimum RAM for the VM to 2048 MB solved the problem. This is consistent with the minimum RAM documented here: |
Appreciate your investigation and all the time spent! the specific one to change is the startup RAM from 512MB to 2048 MB (or 2GB). I will try out if this also works with startup RAM of 1GB and if there is any change between 2019 > 2022 IPU behaviour and 2022 > 2025 IPU behaviour. |
Checking with mslab24.04, the startup ram and minimum RAM is ok for the hydrated Domain Controller. If not specified in Labconfig, it defaults to 512 MB which is too low for Windows Server with Desktop Experience. I have no tried if 512MB is enough for Core. Adding the distinguished Edition Core or GUI into the code would require "loosy" checks on the filename of the parentdisk specified in labconfig. This could be prone for failures if users choose different naming for parent files. MemoryStartupBytes= 512MB; # Startup memory size proposed fix: Reference, see information box: Thank you for your investigation and assistance @michbern-ms! |
This appears to be fixed in 2_createparentpartition.ps1 for the mslab DC. Yet to test if usual VM creations are still affected. |
@michbern-ms feel free to merge the changes. |
Thank you Jaromir. The code change is prepared in named PR above your comment. |
Let me look into it tonight. There's more needed to modify than 512MB startup. I should also sync with @machv and @michbern-ms to plan some more changes (labconfig overhaul...) |
To solve this specific issue, tested, it's not. but I understand there are more pending changes that would fuel a new release. Please let me know, if I can be of any help for your planned changes. |
fixed in latest dev. Defaulting to 1Gb if memorystartupbytes not specified |
This issue originally came as:
ISSUE - Hyper-V VM In-Place Upgrade (IPU) WS 2022 to WS 2025 b26063 fails - Microsoft Community Hub
My developed repro steps are:
EXPECTED: Upgrade should work.
ACTUAL: It rolls back to Server 2022.
The text was updated successfully, but these errors were encountered: