You are viewing documentation for a previous version of Platform9 products. For the latest Private Cloud Director documentation, click here.
Managed OpenStack
v5.10
×
Introduction
Getting Started
Infrastructure
Networks
Volumes and Snapshots
Images
Instances
Flavors
Tenant Administration
User Administration
Authentication & Authorization
Accessing VMs
Application Management
CLI Access
Monitoring & Alarms
Troubleshooting
Tutorials
Support
Regions
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Customize Windows VM Instance with Cloudbase-init
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Similar to cloud-init for Linux virtual machines, cloudbase-init can be used for Windows virtual machines.
The below cloudbase script allows you to output some data to a text file:
cloudbase
rem cmdrem write all files to C:/pf9-test.txtset output_file="C:/pf9-test.txt"echo "Hello world from Platform9!" > %output_file%ver >> %output_file%time /T >> %output_file%tree /A >> %output_file%dir >> %output_file%Sample cloudbase script to change the computer name:
cloudbase
rem cmdrem rename the computer to "my-new-hostname"netdom renamecomputer %COMPUTERNAME% /NewName "my-new-hostname" /forceMore information can be found here: http://cloudbase-init.readthedocs.org/en/latest/userdata.html
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Setup NFS Server on CentOSDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message