in wim on vhd ? i'm not sure i get that but anyhow what i do is:
WinReducer to remove stuff, end up with a wim
WinNTSetup that wim to a vhd
Boot that vhd to let windows sysprep and finish installing
Configure windows, add any missing drivers, don't forget firadisk or else the vhd wont boot from ram.
Reboot to any other windows installation
Mount that ready vhd to lets say drive E:
Code:
wimcapture.cmd E:\ C:\Win10.wim --compress=none
Detach E:
Create new vhd (size varies depending the installation, fixed is best for now)
Attach the new vhd as E:
Code:
wimlib-imagex.exe apply C:\Win10.wim 1 E:\ --compact=lzx
Code:
BCDBOOT C:\Windows /s E: /f BIOS (grub4dos doesn't support EFI Boot)
Copy Enum.cmd and Win64.cmd inside E:\Boot
open elevated command prompt, switch to E:\Boot
Optional: wipe free space on E: and defrag it
Detach E:
Place the vhd to the root of any hard disk, not inside any folder.
Add an entry to your grub4dos menu.lst
Code:
color light-gray/black white/black light-gray/black light-gray/black
timeout 3
default 1
title BOOTMGR (hd0,0)
root (hd0,0)
chainloader /bootmgr
title Windows 10 Boot From Ram
find --set-root --ignore-floppies --ignore-cd /Win10.vhd
map --mem /Win10.vhd (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr
boot
Reboot.