New Question

Revision history [back]

click to hide/show revision 1
initial version

UserData Not Executing

I am configuring a Windows 2019 image with Cloubase-Init, and the UserData section does not execute. Here is my cloudbase-init.conf file:

[DEFAULT]
username=Administrator
groups=Administrators
injectuserpassword=true
configdriverawhhd=true
config
drivecdrom=true
bsdtar
path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtoolspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
logfile=cloudbase-init.log
default
loglevels=comtypes=INFO,suds=INFO,iso8601=WARN
mtu
usedhcpconfig=true
ntpusedhcpconfig=true
local
scriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
metadata
services=
plugins=cloudbaseinit.plugins.common.userdata.UserDataPlugin
allowreboot=false
stop
serviceonexit=false

The UserData I am trying to execute is very basic:

cloudConfig: |
#cloud-config
write_files:
content: testing cloudbase-init
path: c:\test.txt

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.