How-To Create Custom User in Windows Using Cloudbase-init

Problem

You want to create a custom user when creating a Windows-based VM that has Cloudbase-Init.

Environment

  • Platform9 Managed OpenStack - All versions.
  • Nova
  • Cloudbase-Init

Procedure

  1. Create a user data file as follows:
Copy
  1. Create the instance using the CLI or GUI.

- If using GUI, paste the contents of the user_data file in the cloud-config section of the Instance creation wizard.

- If using CLI, run the following command.

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard