A 2 GB LiberNT Install, a 16 GB Disk, and the Bootable ISO That Would Not Boot
Esc
Quick Actions
🏠 Go to Home g h
📝 Go to Blog g b
⏰ What I'm doing now
👤 About Me g a
Terminal Commands
$ ls posts List all blog posts
$ ls tags List all tags
$ cat about.md Read about page
$ cd ~ Go to home

A 2 GB LiberNT Install, a 16 GB Disk, and the Bootable ISO That Would Not Boot

An incident log: enlarging a LiberNT VHD after the fact, why I expected to stretch it from recovery media, and why the offline diskpart resize was only a fallback.

A 2 GB LiberNT Install, a 16 GB Disk, and the Bootable ISO That Would Not Boot

I did not start this to produce a disk-resize tutorial. I wanted to see whether the LiberNT installer ISO could be installed on the smallest VM I could reasonably get away with.

So I created a VHD of about 2 GB and installed LiberNT onto it. It worked. Nothing dramatic. The installer did its job, the system booted, and I had the minimal test I wanted.

Then I started turning the dials. CPU, VRAM, processor count, RAM, and eventually the virtual disk. I was looking for the smallest configuration that still felt stable, not a performance benchmark. The disk ended at 16 GB.

That is when the quiet mismatch showed up. Disk Management inside LiberNT could see the 16 GB disk. The volume holding the operating system still thought it was about 2 GB. The disk had grown; the partition and filesystem had not.

I knew what I wanted to do next. On Windows and Linux, when I need to stretch a system volume, I boot into recovery media or WinPE and extend it there. That is the ordinary path. I expected the same from the LiberNT bootable ISO.

The ISO would not boot.

When the installed VHD and the bootable ISO were both attached, setting the ISO as the first boot device did not change anything. The VM kept going into the installed system. I did not know why, and I still do not. That failure is the real story here. The offline resize I ended up doing was a way around it, not the point of it.

NOTE

This article records the workaround that made the VM usable again. It does not claim the bootable ISO problem is fixed. I wrote up that part separately in LiberNT issue #1083, and the follow-up article looks at what the evidence does and does not prove.


Before changing anything, I checked what was actually true

The first question was simple: is the 16 GB visible to the guest, or only to VirtualBox?

Through Windows MCP’s PowerShell tool I queried VBoxManage showvminfo and showhdinfo:

& 'C:\Program Files\Oracle\VirtualBox\VBoxManage.exe' showvminfo LiberNT --machinereadable
& 'C:\Program Files\Oracle\VirtualBox\VBoxManage.exe' showhdinfo 'C:\Users\<user>\VirtualBox VMs\LiberNT\LiberNT.vdi'

The VM used EFI, had Secure Boot off, no snapshots, and the disk was attached on AHCI port 0. showhdinfo reported Capacity: 16384 MBytes. So the virtual disk itself was fine.

To see the partition table without mounting the live disk, I made a raw clone and inspected it with gdisk:

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

Partition 3, the one holding the OS, stopped at sector 4,192,255. About 14 GiB sat behind it unallocated. That made the problem specific: I did not need to create a disk or repair a partition table. I needed to move one boundary and grow the filesystem behind it.


Where the two MCPs fit

I used two MCP servers, and it matters that their jobs were different.

awesome-virtualbox-mcp was the read-only decision layer. It never called VBoxManage, never touched the VM, and never installed another server. Its live status call reported readOnly: true and invokesVBoxManage: false; all six exposed tools were marked read-only and non-destructive. Its guest operation helper even refused to act:

REFUSED: execution layer is not implemented; use the contract only until a secure guest channel is selected

Windows MCP was the host execution layer. Every real command went through it: PowerShell, VBoxManage, diskpart, filesystem work, screenshots, OCR checks, process checks, and the short-lived GUI attempts.

I am separating these explicitly because it is easy to read an MCP case study and assume the “MCP” did the repair. It did not. One server kept the reasoning bounded. The other did the work on the Windows host.

I also ran the repository’s own validation separately: 11 servers, 13 Python tests, 26 Node tests, 13 JSON files parsed, and 100 out of 100 deterministic steering simulations. That checked the decision layer itself. It did not resize anything.


The boot path I expected to use, and why I left it

The ISO was not a small live image. It carried Windows PE-style files: boot.wim, bootmgr, setup.exe, EFI/boot/bootx64.efi, and EFI/LiberNT/Boot/winload.efi. I inspected it because I wanted to know what I would be booting into.

I tried a few reversible combinations. An ISO attached through the WSL/USB storage path was marked temp eject, and boot fell through to the installed 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 recognized the existing installation as Drive 0 Partition 3 - LiberNT 7-amd64-dev 20261128-80F8bbe.

WinPE itself was awkward to drive. Keyboard and mouse input through the virtual console often did nothing. Screenshots and OCR were more reliable than clicking. One accidental click launched setup and pushed guest CPU to around 100%; I powered the VM off without applying an install or taking a snapshot.

That was enough. I did not want to keep mutating a live setup screen by accident. The recovery route was supposed to be the clean path, but it was becoming the risky one.


The permission I asked for

The initial “go ahead” I had was for reversible boot-path checks and stale process cleanup. I did not treat it as permission to touch a partition.

Before the resize I asked for a separate, explicit approval: extend partition 3 and its NTFS filesystem on a VHD copy, keep the original VDI as rollback, and use an elevated diskpart run on the Windows host. Only after that did I start.

No guest credential went into a command line or process argument. Nothing was applied inside the guest.


The resize itself was boring, which was the point

I backed up LiberNT.vdi, cloned it to VHD, attached that VHD on the host with elevated diskpart, and ran the extend:

flowchart TD
    A[Original LiberNT.vdi] --> B[Backup copy]
    A --> C[clonehd to VHD]
    C --> D[Elevated diskpart attach]
    D --> E[select disk 1 / select partition 3 / extend]
    E --> F[Verify partition + NTFS]
    F --> G[detach vdisk]
    G --> H[clonehd VHD to RAW for gdisk]
    G --> I[clonehd VHD to resized VDI]
    I --> J[Swap AHCI port 0 and boot]

The result was:

partition 3 = 17,057,168,896 bytes
NTFS volume = 17,057,167,360 bytes

I detached the VHD, cloned it to raw again, and checked the GPT offline before trusting it:

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   - 33554398 15.9 GiB   0700  Basic data partition

Then I cloned it back to LiberNT-resized.vdi, swapped it onto AHCI port 0, removed the temporary IDE controller, restored the boot order and EFI firmware, and booted. LiberNT came up normally at ~15.9 GiB.

After that I cleaned up: 82 temporary diagnostic files, redundant config and NVRAM backups, and—after a second confirmation—the detached original VDI and its backup. The VM folder was left with only the active disk and its current state.


What I took from it

The useful lesson is not “diskpart is great”. It is that three layers were different facts: the virtual disk was 16 GB, the partition was still 1.9 GiB, and the filesystem followed the partition. Once those were separated, the fix was straightforward.

The uncomfortable part is that I had to leave the guest to fix the guest. The intended route—boot from recovery media and stretch the system volume—was the one that failed. I wrote that part up in issue #1083, because a workaround that works for one person is not the same as a documented path other people can rely on.

References

Comments

⌨️ Keyboard Shortcuts

Navigation

g h
Go to Home
g b
Go to Blog
g a
Go to About

Actions

/ Search
? Show shortcuts
Esc Close overlay

Scrolling

j Scroll down
k Scroll up
g g
Scroll to top
G Scroll to bottom