cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
684 stars 229 forks source link

Windows 7 BCDBoot failed with error #216

Closed yasmindemiral closed 6 years ago

yasmindemiral commented 6 years ago

I can create instance on HyperV but i cant run windows-imaging-tool, gives an error this : http://paste.openstack.org/show/725336/

How can i fix this, any idea ?

ader1990 commented 6 years ago

Hello,

I have reproduced this issue using Win7 iso en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso on a Windows 10 UEFI host. I have created a PR https://github.com/cloudbase/windows-openstack-imaging-tools/pull/217 with the fix.

Can you try it and check if it works?

Thank you, Adrian Vladu

yasmindemiral commented 6 years ago

no it does not work. the bcdboot.exe is the host machine ? it is at Windows/System32/bcdboot.exe in windows server 2016 . How can i write it ?

yasmindemiral commented 6 years ago

it is not working and error http://paste.openstack.org/show/725529/

ader1990 commented 6 years ago

Hello,

"no it does not work." - are you sure you have applied the patch from PR https://github.com/cloudbase/windows-openstack-imaging-tools/pull/217 ?

To make sure that you have the right code you need to follow these steps:

git remote add ader1990 https://github.com/ader1990/windows-openstack-imaging-tools
git fetch ader1990
git checkout fix_win7_bcdboot

# if you have previously changed the code , the checkout might not work correctly
# make sure you have a  clean repo clone or you can perform a "git reset --hard"

# to clean your environment from older PowerShell Modules
Remove-Module WinImageBuilder

# now you can restart the image generation
yasmindemiral commented 6 years ago

I installed windows 10 instead of windows server 2016, i changed manually WinImageBuilder.psm1 but not working. Now i try to change git branch.

ader1990 commented 6 years ago

I have merged the fix in the master branch, you can use it now.

yasmindemiral commented 6 years ago

yes it works, thank you.

ader1990 commented 6 years ago

Great, thanks for reporting the issue and your help testing the fix!