I’m having an issue with Cloubase-Init and a Windows 2019 server. I’m following this blog post, but I’m unable to get Cloudbase to execute. Here is my cloudbase-init.conf file:
[DEFAULT]
username=Administrator
groups=Administrators
injectuserpassword=true
configdriverawhhd=true
configdrivecdrom=true
bsdtarpath=C:Program FilesCloudbase SolutionsCloudbase-Initbinbsdtar.exe
mtoolspath=C:Program FilesCloudbase SolutionsCloudbase-Initbin
verbose=true
debug=true
logdir=C:Program FilesCloudbase SolutionsCloudbase-Initlog
logfile=cloudbase-init.log
defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN
mtuusedhcpconfig=true
ntpusedhcpconfig=true
localscriptspath=C:Program FilesCloudbase SolutionsCloudbase-InitLocalScripts
metadataservices=cloudbaseinit.metadata.services.ovfservice.OvfService,cloudbaseinit.metadata.services.base.EmptyMetadataService
plugins=cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,cloudbaseinit.plugins.windows.setuserpassword.SetUserPasswordPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin
allowreboot=false
stopserviceonexit=false
The UserData I am trying to execute is very basic:
cloudConfig: |
#cloud-config
write_files:
content: testing cloudbase-init
path: c:test.txt
set_hostname: hostname123
When the system reboots, it goes through the Sysprep process successfully. The UserData does not execute, and I do not see any mention of it even trying in the logs.