Bluemix metadata service for Cloudbase-init and Windows operating systems.
IBM Cloud documentation: Provisioning with a cloud-init enabled image
Cloudbase-init and this plugin should be installed by default on the base Windows images offered by for Classic Infrastructure virtual servers. To make use of it, simply attach your config as User Data
when ordering.
When ordering in the portal, this will be under the Operating System Add-ons section
For ordering with the SLCLI
$ cat test_userdata.txt
#cloud-config
write_files:
encoding: b64
content: NDI=
path: C:\test
permissions: '0o466'
$ slcli vs create --flavor B1_2X4X100 -H cloudbase01 -D ibm.com -d dal13 -o WIN_2019-STD_64 -F ./test_userdata.txt --ipv6
For Virtual Private Cloud, the ConfigDriveService
is used for configuring hosts. See the VPC Documentation for more information.
Install the latest stable release as a python package using Windows PowerShell
& 'C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\python.exe' -m pip install https://github.com/softlayer/bluemix-cloudbase-init/archive/master.zip
Update the metadata_services config value in Cloudbase-init's cloudbase-init-unattend.conf and cloudbase-init.conf to use the Bluemix metadata service
metadata_services=bluemix.bluemixservice.BluemixService,