New Question

Revision history [back]

click to hide/show revision 1
initial version

Sure, thank you for your response

here is my unattended


[DEFAULT]

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init-unattend.log

verbose=true

debug=true

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

allow_reboot=false

stopserviceon_exit=false

checklatestversion=false


here is my normal


[DEFAULT]

username=Administrator

injectuserpassword=true

firstlogonbehaviour=no

verbose=true

debug=true

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init.log

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin

allow_reboot=false

stopserviceon_exit=true

checklatestversion=false


Sure, thank you for your response

here is my unattended


[DEFAULT]

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init-unattend.log

verbose=true

debug=true

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

allow_reboot=false

stopserviceon_exit=false

checklatestversion=false


here is my normal


[DEFAULT]

username=Administrator

injectuserpassword=true

firstlogonbehaviour=no

verbose=true

debug=true

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init.log

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin

allow_reboot=false

stopserviceon_exit=true

checklatestversion=false


i did some more digging in the windows setup logs, and now found indeed the reason, that it fails due to the reboot of the cloudinint sethostname


2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC launched with command line [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC running to process unattend settings for pass [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Processing any RunSynchronous setting... 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Running commands is not yet in progress 2019-01-15 14:12:08, Info [0x090008] PANTHR CBlackboard::Open: C:\Windows\panther\commandexec\CommandExec succeeded. 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: description = [Run Cloudbase-Init to set the hostname] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: credentials = { domain is not specified, username is not specified, password info not logged } 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: will observe the exit code's implied request after execution 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: path = [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found RunSynchronous command: [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"]

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Finished executing [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] synchronously

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Process returned with exit code 0x1 2019-01-15 14:12:30, Info [SETUPUGC.EXE] Must reboot now. 2019-01-15 14:12:30, Info [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec. 2019-01-15 14:12:30, Info [SETUPUGC.EXE] A processor needs an immediate reboot; requesting a reboot-and-recall for SetupUGC 2019-01-15 14:12:30, Info [SETUPUGC.EXE] SetupUGC returning with exit code [3]


this matches the exact same time as the failure from the cloudinit log.


2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stdout: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:35 2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stderr: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:36

2019-01-15 14:12:30.717 1848 INFO cloudbaseinit.plugins.common.fileexecutils [-] Script "C:\Windows\TEMP\cloudinit.ps1" ended with exit code: 1


Sure, thank you for your response

here is my unattended


[DEFAULT]

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init-unattend.log

verbose=true

debug=true

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

allow_reboot=false

stopserviceon_exit=false

checklatestversion=false


here is my normal


[DEFAULT]

username=Administrator

injectuserpassword=true

firstlogonbehaviour=no

verbose=true

debug=true

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init.log

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin

allow_reboot=false

stopserviceon_exit=true

checklatestversion=false


i did some more digging in the windows setup logs, and now found indeed the reason, that it fails due to the reboot of the cloudinint sethostname


2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC launched with command line [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC running to process unattend settings for pass [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Processing any RunSynchronous setting... 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Running commands is not yet in progress 2019-01-15 14:12:08, Info [0x090008] PANTHR CBlackboard::Open: C:\Windows\panther\commandexec\CommandExec succeeded. 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: description = [Run Cloudbase-Init to set the hostname] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: credentials = { domain is not specified, username is not specified, password info not logged } 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: will observe the exit code's implied request after execution 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: path = [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found RunSynchronous command: [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"]

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Finished executing [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] synchronously

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Process returned with exit code 0x1 2019-01-15 14:12:30, Info [SETUPUGC.EXE] Must reboot now. 2019-01-15 14:12:30, Info [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec. 2019-01-15 14:12:30, Info [SETUPUGC.EXE] A processor needs an immediate reboot; requesting a reboot-and-recall for SetupUGC 2019-01-15 14:12:30, Info [SETUPUGC.EXE] SetupUGC returning with exit code [3]


this matches the exact same time as the failure from the cloudinit log.


2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stdout: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:35 2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stderr: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:36

2019-01-15 14:12:30.717 1848 INFO cloudbaseinit.plugins.common.fileexecutils [-] Script "C:\Windows\TEMP\cloudinit.ps1" ended with exit code: 1


Sure, thank you for your response

here is my unattended


[DEFAULT]

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init-unattend.log

verbose=true

debug=true

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

allow_reboot=false

stopserviceon_exit=false

checklatestversion=false


here is my normal


[DEFAULT]

username=Administrator

injectuserpassword=true

firstlogonbehaviour=no

verbose=true

debug=true

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init.log

metadata_services=cloudbaseinit.metadata.services.cloudstack.CloudStack, cloudbaseinit.metadata.services.ec2service.EC2Service plugins=cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin

allow_reboot=false

stopserviceon_exit=true

checklatestversion=false


i did some more digging in the windows setup logs, and now found indeed the reason, that it fails due to the reboot of the cloudinint sethostname


2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC launched with command line [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] SetupUGC running to process unattend settings for pass [specialize] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Processing any RunSynchronous setting... 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Running commands is not yet in progress 2019-01-15 14:12:08, Info [0x090008] PANTHR CBlackboard::Open: C:\Windows\panther\commandexec\CommandExec succeeded. 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: description = [Run Cloudbase-Init to set the hostname] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: credentials = { domain is not specified, username is not specified, password info not logged } 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: will observe the exit code's implied request after execution 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found run command in registry: path = [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] 2019-01-15 14:12:08, Info [SETUPUGC.EXE] Found RunSynchronous command: [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"]

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Finished executing [cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf" && exit 1 || exit 2"] synchronously

2019-01-15 14:12:30, Info [SETUPUGC.EXE] Process returned with exit code 0x1 2019-01-15 14:12:30, Info [SETUPUGC.EXE] Must reboot now. 2019-01-15 14:12:30, Info [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec. 2019-01-15 14:12:30, Info [SETUPUGC.EXE] A processor needs an immediate reboot; requesting a reboot-and-recall for SetupUGC 2019-01-15 14:12:30, Info [SETUPUGC.EXE] SetupUGC returning with exit code [3]


this matches the exact same time as the failure from the cloudinit log.


2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stdout: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:35 2019-01-15 14:12:30.717 1848 DEBUG cloudbaseinit.plugins.common.fileexecutils [-] Userdata stderr: b'' execfile c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\fileexecutils.py:36

2019-01-15 14:12:30.717 1848 INFO cloudbaseinit.plugins.common.fileexecutils [-] Script "C:\Windows\TEMP\cloudinit.ps1" ended with exit code: 1


so if i understand correctly, my cloudinit runs during the unattended, and not when booted into windows. how is this possible?