Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

To create a custom Windows image with cloudbase-init for Azure:

  1. Deploy a Windows VM

  2. Connect to the VM using RDP

  3. Download the right cloudbase-init installer from https://github.com/cloudbase/cloudbase-init

  4. Run the installer

    1. Do not select the Use metadata password checkbox, because Azure does not support password setting through metadata.

    2. Click Next

    3. Select the checkboxes to Run Sysprep… and Shutdown when Sysprep terminates.
      (warning) Do not click Finish yet.

    4. Go into the VM console and edit the cloudbase-init-unattend.conf file (at C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf by default) and set the following options:

      metadata_services=cloudbaseinit.metadata.services.azureservice.AzureService
      plugins=cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin
      first_logon_behaviour=no
    5. Click Finish

  5. Go to the Azure portal and save a snapshot of the VM to create the custom Windows image.

  • No labels