Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To create a custom Windows AMI with cloudbase-init for AWS:

  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:

    Cloudbase-init installerImage Added
    1. Do not select the Use metadata password checkbox, because Amazon does not support password setting through metadata.

    2. Click Next

    3. Do not select the checkboxes to Run Sysprep… or Shutdown when Sysprep terminates

    4. Click Finish

  5. In the VM again, edit the cloudbase-init.conf (located by default at

...

  1. C:\Program Files\Cloudbase Solutions\Cloudbase-Init\

...

  1. conf) and add:

    Code Block
    “metadata_services=cloudbaseinit.metadata.services.ec2service.EC2Service”
    “plugins=cloudbaseinit.plugins.common.userdata.UserDataPlugin”

    The

...

  1. UserDataPlugin runs the Abiquo bootstrap script, sets up VM variables, and sets up the guest initial password for the

...

  1. Administrator user.

    1. Do not add the

...

    1. SetUserPasswordPlugin and

...

    1. CreateUserPlugin plugins in the configuration file because they cannot post the generated password to the metadata provider. They will generate a random password instead of the guest initial password generated by Abiquo.

  1. Continue to customize the configuration file as required.

...

  1. Shut down the VM

  2. In Abiquo, open the virtual appliance create an instance template from the VM

Tip

By default, logs are located at “CC:\Program Files\Cloudbase Solutions\Cloudbase-Init\log”log