Skip to content

windows 2008 r2 image build failed with BCDBoot error #400

Description

@StormYudi

Hi, I am using a windows 11 host, trying to build a windows 2008 r2 image for MAAS, but I am suffering with errors below:

Could you please help with this? I think it's related to BCDBoot? Thank you.

Image name: cn_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_vl_build_x64_dvd_617396.iso

Config.ini:

[DEFAULT]
wim_file_path=E:\sources\install.wim
image_name=Windows Server 2008 R2 SERVERDATACENTER
image_path=C:\Users\Lin\Desktop\windows-openstack-imaging-tools\win2008r2.raw.tgz
virtual_disk_format=VHDX
image_type=MAAS
disk_layout=UEFI
product_key=""
extra_features=""
extra_capabilities=""
force=False
install_maas_hooks=True
compression_format="tar.gz"
...

Build log:

PS C:\Users\Lin\Desktop\windows-openstack-imaging-tools> New-WindowsOnlineImage -ConfigFilePath $ConfigFilePath
2024/12/14 21:34:40 - Windows online image generation started.
2024/12/14 21:34:43 - Found already existing image file. Removing it...
2024/12/14 21:34:43 - Already existent image file has been removed.
2024/12/14 21:34:43 - Cloud image generation started.
2024/12/14 21:34:43 - Creating Virtual Disk Image: C:\Users\Lin\Desktop\windows-openstack-imaging-tools\win2008.vhdx...
2024/12/14 21:34:53 - Successfuly created disk: C:\Users\Lin\Desktop\windows-openstack-imaging-tools\win2008.vhdx
2024/12/14 21:34:53 - Generate Unattend Xml :G:\Unattend.xml...
2024/12/14 21:34:53 - Xml was generated.                                                                                
2024/12/14 21:34:53 - Copy Unattend Resources: Server...                                                                
2024/12/14 21:34:53 - Copying: C:\Users\Lin\Desktop\windows-openstack-imaging-tools\UnattendResources G:\UnattendResources                                                                                                                      
2024/12/14 21:34:54 - Resources have been copied.                                                                       
2024/12/14 21:34:54 - Copy Custom Resources: ...                                                                        
2024/12/14 21:34:54 - Custom Resources at: G:\UnattendResources.                                                        
2024/12/14 21:34:54 - Downloading Cloudbase-Init...                                                                     
2024/12/14 21:35:04 - Applying Windows image "E:\sources\install.wim" in "G:\"                                          
部署映像服务和管理工具
版本: 10.0.26100.1150

正在应用映像
[==========================100.0%==========================]
操作成功完成。
2024/12/14 21:35:40 - Create BCDBoot Config for Windows Server 2008 R2 SERVERDATACENTER
BFSVC: Failed to create a new system store. Status = [c000003a]
2024/12/14 21:35:40 - Retrying with bcdboot.exe from host
BFSVC Warning: Failed to determine source OS version.
BFSVC Warning: Failed to log servicing event to bootstat \\?\GLOBALROOT\Device\HarddiskVolume8\EFI\Microsoft\Boot\BOOTSTAT.DAT. Status: 0x80000005
BFSVC Warning: Resource files missing from G:\windows\boot\Resources. These files are required for some editions of Windows. If you are servicing older versions of Windows, you can ignore this message.                                       
BFSVC Warning: ServiceDebuggerFiles: G:\windows\boot\BootDebuggerFiles.ini does not exist                               
2024/12/14 21:35:41 - BCDBoot config has been created.                                                                  
2024/12/14 21:35:45 - Cloud image generation finished. Image path: C:\Users\Lin\Desktop\windows-openstack-imaging-tools\win2008.vhdx                                                                                                         
2024/12/14 21:35:45 - Creating VM WindowsOnlineImage-Sysprep1369088975 attached to external                             2024/12/14 21:35:51 - Starting WindowsOnlineImage-Sysprep1369088975                                                     
2024/12/14 21:35:57 - Waiting for WindowsOnlineImage-Sysprep1369088975 to finish sysprep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions