generate-maas-compatible-image Sysprep Failing
Using the appropriate branch link text I end up getting to the VM stage and the first boot powershell prompt fails (it fails to quickly to read actually) and then boots fully to windows. At that point a powershell prompt opens and fails again saying ini.ps1 isnt allowed to execute due to permissions issue with Set-Executionpolicy. I have set in manually in the vm and tried running login, did the updates, and system syspreped, but it dont look like the cloud-init installed since I get this from maas after an attempt to install one of these images on a node
(Stdout: "Unable to find cloudbase-init.cfg.\nUnexpected error while running command.\nCommand: ['/tmp/tmpI66dEC/target/curtin/finalize']\nExit code: 2\nReason: -\nStdout: ''\nStderr: ''\n" Stderr: '')
Then after reboot maas says no kernel is available for the windows image and doesnt boot. But If i bypass pxe the windows install actually boots into a oobe, but doesnt work with maas. I suppose in the end if the powershell prompts executed with the proper executionpolicy during the vm sysprep phase the images would work with maas and I wouldnt have this issue. I am assuming I am just improperly running the deployment scripts. I hope someone can give me information on how to get this to execute properly with the appropriate permissions?
Hi Chuntzu! To debug this, we need to get the actual error. It works on my system, but we need to see what is happening in your case. I need you to change a couple of the scripts to add a sleep before returning the error. Please add "Start-Sleep 60" at the following lines: http://goo.gl/3csFwUhttp://goo.gl/3linMV I suspect the rest of the errors will be resolved once we get the the root cause of the first one. Please also let me know for which version of windows you are trying to create an image.