New Question

LocalScript Execution

asked 2020-11-12 06:58:59 +0300

mui18 gravatar image

Unable to run local scripts on windows VM.

Config File


# What user to create and in which group(s) to be put.

username=svctechopsauto groups=Administrators injectuserpassword=false #### # Use password from the metadata (not random).

# Which devices to inspect for a possible configuration drive (metadata).

configdriverawhhd=true configdrive_cdrom=true

# Path to tar implementation from Ubuntu.

bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe

# Logging debugging level.

verbose=true debug=true

# Where to store logs.

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init-unattend.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN loggingserialport_settings=

# Enable MTU and NTP plugins.

mtuusedhcpconfig=true ntpusedhcpconfig=true

# Where are located the user supplied scripts for execution.

localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\

# Services that will be tested for loading until one of them succeeds.,,,,

# What plugins to execute.

plugins=cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin

# Miscellaneous.

allowreboot=true #### # allow the service to reboot the system stopserviceonexit=false

LocalScript #ps1 file


# setup logging

Start-Transcript -path C:\cloudbase-init-firstboot.log -Append -force

write-output "NVIDIA customization started" Write-Output "Hello World!"

# stop logging


# exit with return code 1001

exit 1001

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2020-11-12 21:19:58 +0300

avladu gravatar image


Can you share the cloudbase-init logs, if possible?

From the config file, LocalScriptsPlugin should be executed, but the UserDataPlugin will never be executed as the EmptyMetadataService does not provide userdata.

edit flag offensive delete link more


There are no logs present in the location specified in the config folder. A 13 MB log file is generated while installing cloudbase-init.

mui18 gravatar imagemui18 ( 2020-11-13 21:27:03 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-11-12 06:58:59 +0300

Seen: 411 times

Last updated: Nov 12 '20