Requesting an Image of an Instance
Adding scripts that execute after an instance using the image is launched and active
Adding a script to the instance
An image creator can add a script to an instance before it is converted to an image that will execute after the instance using the image is launched and active.
Before requesting the image, create or symlink the script into the /etc/atmo/post-scripts.d directory.
Enter a 'shebang' (bash in the following example) at the beginning of your script:
#!/bin/bashMark both the folder and the script with read and write (
+rxor0755) permissions. After an instance using the image is launched and active, the script will be executed.
Adding a boot script
Additionally, you can add boot scripts through the UI. This method allows you to change those scripts over time. The script can be provided by URL or providing the 'Raw Text' including a shebang line, as referenced above.
Click Advanced Options at the Privacy step, before reviewing the image.
Skip the Exclude Files step and move to the Deployment Scripts section.
Select the Create New Script option to create a script.
Use the search bar to select a previously created script. Scripts are saved per user, and can be reused across images and instances.
Create a new script using one of the two methods:
New script by URL. (URLs must start with http[s]://)
New script by Text field. (It is expected that your script will include a shebang line.)
6. After creating the new script you should see it listed in the Deployments Scripts section.
You should also see it in the final review step.
Example boot script for changing permissions to the ATMO_USER
ATMO_USER is a variable that Atmosphere injects at runtime to ensure that the correct username will be known by a script. This is a requirement for chown-ing permissions of a directory to the user who launched an instance, rather than the user who created the image.
The code below provides a boilerplate example of how one would apply permissions to ATMO_USER for the /opt directory. After changing the directory to match your use case, you should be able to copy this script into the Text field.
Requesting that your image be deleted
Currently, the only way to remove (also known as deleted or archived) an image you requested is to email CyVerse Support. You will receive an email when your image has been archived.
Tips
Here are some tips to help ensure a viable importable image:
Operating system: Base the image on CentOS 7 and later, or Ubuntu 14.04 and later.
File system: Ext3, Ext4, or XFS.
Image format: RAW or QCOW2.
Software: Image must contain no licensed software that would prohibit use within a cloud or virtualized environment.
When your image is ready, the preferred way is to provide the image to staff through the Data Store.