The resize worked. The VM booted, the desktop came up, and the guest finally saw 15.9 GiB instead of 1.9 GiB. For a moment that looked like the end of the story.
It was not. It was the part that should not have been necessary.
In the previous article I described the mechanics of the repair. Here I want to be clearer about why it was a workaround.
I had installed LiberNT onto a VHD of about 2 GB, only to test the installer ISO with minimal specifications. That install went normally. I then raised CPU, VRAM, processor count, RAM, and finally the disk to 16 GB, looking for a stable minimal setup rather than a tuned machine.
Inside the installed system, Disk Management saw the 16 GB disk. The OS volume still occupied only about 2 GB. The disk had been enlarged after installation; the system volume had not followed it. It needed a stretch.
My instinct was to do what I usually do with Windows or Linux: boot from recovery media, open disk management there, and extend the system volume. That was the moment the actual problem appeared.
When the installed VHD and the LiberNT bootable ISO were both attached, the VM would not boot into the ISO. I set the boot priority to the ISO. It still went into the installed system. I do not know why.
That is the question I took upstream, not “why did my partition stay small” and not “why is diskpart useful”. Those are consequences. The failure I could not explain was the bootable path.
What I tried before giving up on the bootable route
The ISO was Windows PE-style installer media, with boot.wim, bootmgr, setup.exe, EFI/boot/bootx64.efi, and EFI/LiberNT/Boot/winload.efi. I checked its contents because I wanted to know what recovery environment I was actually asking the VM to boot.
A few reversible tests followed. Attaching the ISO through a WSL USB-storage path marked it temp eject, and boot fell through to the disk. Optical/DVD paths on AHCI port 1 and IDE port 0 were reachable. Temporarily switching firmware to BIOS let me reach WinPE, where setup identified the existing install as Drive 0 Partition 3 - LiberNT 7-amd64-dev 20261128-80F8bbe.
The GUI in WinPE was unreliable. Input often had no effect; screenshots and OCR were more useful than clicking. One accidental click started setup and drove CPU to about 100%, so I powered the VM off without applying anything.
I am listing these as chronology. They are not a verdict. They tell you what I saw while trying to get into recovery media; they do not tell us why the two-media EFI boot failed.
Why diskpart was a fallback, not a fix
Since I could not get into the bootable environment, I stretched the VHD from the Windows 11 host that runs VirtualBox. I attached a copy of the VHD with elevated diskpart, extended partition 3, verified the sizes, detached it, cloned it back to VDI, and swapped the VM’s disk.
The before and after were unambiguous:
Before:
Disk: 33,554,432 sectors, 16.0 GiB
P1: 2048 - 206847 100.0 MiB EF00 EFI system partition
P2: 206848 - 239615 16.0 MiB 0C01 Microsoft reserved
P3: 239616 - 4192255 1.9 GiB 0700 Basic data partition (NTFS)
After:
P1: unchanged
P2: unchanged
P3: 239616 - 33554398 15.9 GiB
NTFS volume: 17,057,167,360 bytes
The same installed system booted normally afterward. That proved two things: the operating system was healthy, and the boundary at sector 4,192,255 was the only thing holding the volume back.
It did not prove the bootable ISO was fine. No installer or snapshot was applied, and no guest credential appeared in a command line. I was working around the problem, not closing it.
The environment, kept in its place
The host was Windows 11 with VirtualBox 7.2.22. Hyper-V was active underneath, and VBox.log contained Provider = "HyperV", NEM lines, and:
CPUM: Enabled fixed-range MTRRs and 16 (virtualized) variable-range MTRRs
That overlaps with the Hyper-V/MTRR condition discussed in LiberNT issue #68. I am including it because it is part of the environment, not because it explains my case. The installed EFI OS booted correctly here. The ISO path with the installed VHD attached did not.
I reviewed #591, #717, #572, and #678 as well. Some are close in symptoms, none is an exact match for this two-media boot failure.
What is proven, and what is not
| Statement | Status |
|---|---|
| The VM was installed on a ~2 GB VHD, then the disk was enlarged to 16 GB | Proven |
| Disk Management saw 16 GB, but the OS volume stayed ~2 GB | Proven |
| The bootable ISO did not boot with the installed VHD attached, despite boot priority | Proven in this setup |
| Extending P3 and NTFS offline made the guest usable at ~15.9 GiB | Proven |
| The host used Hyper-V/NEM with 16 virtualized MTRRs | Proven from VBox.log, environment only |
| The cause of the bootable ISO failure | Not proven |
| Whether LiberNT, VirtualBox, or the host owns the failure | Not proven |
I could easily have written “the LiberNT boot manager is broken” after the ISO refused to boot. That would have been a cleaner headline and a worse report. What I actually observed is narrower: setting boot priority was not enough when both media were attached. I cannot assign ownership from this one setup.
What I asked upstream
I published LiberNT issue #1083 titled “Bootable ISO does not boot when an installed VHD is also attached, even with boot priority set”. The questions are deliberately small:
- Why does the ISO not boot when the installed VHD is also attached, even with boot priority set to the ISO?
- Which attachment path and firmware combination is supported for booting installer or recovery media on a VM that already has an installed disk?
- What is the supported way to extend the system volume after enlarging an installed VHD—from bootable/WinPE media, or in-guest?
- Is
EFI/LiberNT/Boot/winload.efithe intended EFI boot entry for this ISO? - Does LiberNT treat VHD and VDI boot layouts differently, or is the disk format irrelevant here?
If maintainers confirm a documented path, the right outcome is documentation. If they do not, the bootable-media failure and the undersized volume become two concrete things to investigate. Either answer is more useful than me guessing in a blog post.
Comments