Versions Compared

Key

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

...

Excerpt

Abiquo 5.4 adds new guest setup options for Windows on Amazon in Amazon AWS via API. These options will be available in the UI in Abiquo 5.4.1.

...

  • CLOUDBASE_INIT 
  • EC2LAUNCH_V2
  • EC2LAUNCH
  • EC2CONFIG


VM variables

After you launch your VM, you can find the VM variables at:

Code Block
C:\ProgramData\Abiquo\abiquo-env.rc


cloudbase-init

We can only log into the VM using the guest initial password because we cannot post the password autogenerated by cloudbase-init to the metadata service.

In the Bootstrap script, users should be able to add any script because AWS passes the script to the instance in UserData as a MIME multi-part message with content type text/x-shellscript. (See https://cloudbase-init.readthedocs.io/en/latest/userdata.html#multi-part-content)

ec2launch and ec2config

You must enclose the bootstrap script with <script></script> tags for a batch script and <powershell></powershell> tags for a powershell script.

ec2launch v2

The bootstrap script should be in a yaml format. See https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html#user-data-yaml-scripts

...

For more info, see: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html

For example bootstrap scripts, see https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html#user-data-scripts

...