Closed cde0 closed 1 year ago
Hello,
Please check the VM in Hyper-V and make sure it started correctly. The answer file configured the Windows VM to autologin at boot, so you should see a PowerShell console opened. If not, you can check the internal logs in the VM at path: C:\\UnattendResources\image-generation-log.txt
Thank you, Adrian Vladu
Hello Adrian,
Sorry for the trouble, Yes see PowerShell console but after i can see Command console and it stops there?
Is ok this behavior? Regards,
Hello,
Can you do a cat on C:\UnattendResources\image-generation-log.txt?
the file don't exist
I didn't change anything from the answer file
I see, can you run from PowerShell: & C:\UnattendResources\Logon.ps1 (as it is possible that something fails there)?. Logon.ps1 is the entry point script for the imaging tools.
After i execute Set-ExecutionPolicy Unrestricted the command Logon is ok. It executes the script and exit
Are there any screen output or logs (C:\UnattendResources\image-generation-log.txt) after the execution of the Logon.ps1?
I couldn't check for any logs it was exit automatically. But the screen output is this
This means that the image creation was successful, but there is still the problem of Logon.ps1 not getting executed in the first place automatically. From the logs / information you shared, I cannot conclude what is the underlying issue, possible an execution failure of the autologon script. Can you share the full name of the Windows ISO you used so that I can try to reproduce the problem?
Windows ISO full name is: SW_DVD9_Win_Server_STD_CORE_2019_1809.2_64Bit_English_DC_STD_MLF_X22-18452 or sss_x64fre_en-us_dv9 i don't know from where you can download this or something similar :)
This happening also for Windows server 2016 i try standard and datacenter version but still the same? Maybe is because i run it from Windows Server?
Hello,
How did you get windows-openstack-imaging-tools code on your env? using git clone?
There might be issues with the file security descriptors when downloading the code. I suggest using Unblock-File on all the files in windows-openstack-imaging-tools before creating the image: https://devblogs.microsoft.com/scripting/easily-unblock-all-files-in-a-directory-using-powershell/
Thank you, Adrian Vladu
Hi, I download the zip file, thanks i will check it Thanks you
Closing the issue, as there were no more replies from the issue creator.
I try to build openstack image inside VM in esxi.
But it stuck on this message for more than 12 hours. :/ I don't know what i am missing.
Windows Version: Windows server 2019 SERVERDATACENTERCORE virtio version: 1.185 config: