mhammons70 - 2015-04-19

Hi,

I'm relatively new to this and have been tinkering with wimlib for a few weeks now. Kudos for creating something so useful. As part of my tinkering my objective is to install Win 8.1 from within an ubuntu 14.04 desktop distribution, have it boot and walk through the setup process.

This is an EFI-based system and I believe I've got the partitioning, filesystem setup, and application of the install.wim onto the OS partition using wimlib-imagex apply. Once applied, I then relocate the contents of Boot/EFI/* and Boot/DVD/EFI/BCD to the EFI partition, setup the boot manager efi module, and use hivexsh from within a script to touch up the BCD such that it points the boot manager to the windows boot loader on the OS partition (fixing up the disk and partition GUIDs).

With this, the device boots and seemingly launches into windows setup, however it eventually fails. Looking through the logs I realize this is likely more about how to do sysprep on the system than it is about using wimlib, but I am hoping someone here might give me some pointers.

Two things stand out in setupact.log

2015-04-06 16:49:27, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2015-04-06 16:49:27, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>

2015-04-06 16:53:37, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Specialize_Bcd' in X:\Windows\System32\spbcd.dll; executing it
2015-04-06 16:53:38, Error      [0x0e00b3] TOOL   Sysprep_Specialize_Bcd: There was an error opening the system store. Status=[0xC0000098]
2015-04-06 16:53:38, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Specialize_Bcd' from X:\Windows\System32\spbcd.dll; dwRet = 0x3ee
2015-04-06 16:53:38, Error                 SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x3ee
2015-04-06 16:53:38, Error                 SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0x3ee
2015-04-06 16:53:38, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from X:\Windows\System32\Sysprep\ActionFiles\Specialize.xml; dwRet = 0x3ee
2015-04-06 16:53:38, Error                 SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x3ee
2015-04-06 16:53:38, Info                  IBS    Callback_Specialize: Internal Providers Specialized Failed. System can't proceed to handle Internal Providers
2015-04-06 16:53:38, Info                  IBS    Callback_Specialize: Specialize return: [1006]
2015-04-06 16:53:38, Error      [0x060435] IBS    Callback_Specialize: An error occurred while either deciding if we need to specialize or while specializing; dwRet = 0x3ee
2015-04-06 16:53:38, Info       [0x0640ae] IBSLIB PublishMessage: Publishing message [Windows Setup could not configure Windows to run on this computer's hardware.]

I am certain that I'm not prepping things correctly. As mentioned I've only touched up the BCD boot path; no memtest, no re, etc. but I don't know what the other bits are that are needed to succeed. Any pointers to regarding links, threads, or just dialog would be greatly appreciated. Apologies if this is off topic, but I thought folks in this forum would be most knowledgable.

Thanks