OK, about applying an FFU image to a virtual hard disk.
First, virtual hard disk file must be
.vhdx, it will not work if applied to a
.vhd file.
Second, the applied FFU image must be captured from a
generalized (sysprepped) Windows. This makes it extremely difficult, if not impossible, to capture an existing Windows installation to FFU image to be applied to VHDX, because generalizing will usually fail. Applied to physical disks, no need to generalize, but to apply to a virtual hard disk, generalizing is a must.
Trying to generalize an existing Windows installation on a test machine, I first removed all Store apps and their provisioning, which typically cause
Sysprep with
/generalize switch t fail. It did not work. Even after disabling reserved space in registry, I kept getting this error:
Code:
2019-06-01 15:16:15, Error SYSPRP Sysprep_Clean_Validate_Opk: Audit mode cannot be turned on if reserved storage is in use. An update or servicing operation may be using reserved storage.; hr = 0x800F0975
I am quite experienced Sysprep user, but hit the wall here; nothing I tried to generalize an existing Windows installation worked. I am open for new ideas, though.
However, I had no issues in what I tried next.
Using a Hyper-V VM with 256 Gb VHDX as reference machine as I always do, I installed Windows 10 build 18908, and booted it to Audit Mode. After image was customized on reference machine, software I want to be pre-installed and everything else done, I sysprepped it with /generalize switch and my answer file, then booted to WinPE and captured an FFU image. I applied this image to a new VHDX file, added it to Windows boot menu, and it worked perfectly.
I have now repeated this several times, without an issue. The key is generalizing; I have tried just to run Sysprep, without /generalize switch, but in that case the captured FFU images work as they should when applied to physical disk, but not when applied to a virtual hard disk.
Sorry, Martin, not what you wanted to hear. Anyway, I can now confirm that an FFU image can be applied to a virtual hard disk, and be used as native boot VHDX, but the captured image must be from a generalized Windows image.
Kari