Open al-indigo opened 8 months ago
Writing down "dumb" way to fix it until developers from Cloudbase find a right way. If you face the same problem, you can make the following:
$signalFile = "$resourcesDir\done.txt"
Write-Host "Please install Cloudbase-Init manually. Create the file $signalFile when done."
# Wait for the signal file to be created
while (-not (Test-Path $signalFile)) {
Start-Sleep -Seconds 10
}
Remove-Item $signalFile -ErrorAction SilentlyContinue
Hello, a quick workaround is to use the config options cloudbase_init_config_path
and cloudbase_init_unattended_config_path
to set custom cloudbase-init config files https://github.com/cloudbase/windows-imaging-tools/blob/master/Config.psm1#L158
It seems that Cloudbase-init.msi silent install fails on writing file cloudbase-init.conf. It's not empty, but if fails exactly before the option "groups" is set and in automatic mode it is set in ru-locale to "Администраторы". I've double-checked: without any automation, the installer does the same. If I change "Администраторы" to "Administators", the installation succeeds.
There is a missing option for this automated deploy in $msiexecArgumentList for this to change, so there is no automatic way to overwhelm this problem.
Ways for solution: