How to make your snapshot usable by other members of your project¶
Step 1: Cleaning up the Image¶
Before you make the snapshot, you may want to delete some local settings such as ssh authorized key, bash_history, and some customization scripts from your image. Here we describe the steps that should have been carried out for this purpose.
- Remove authorized key from your ssh agent: Note: Once you remove your public key from the authorized_keys file , you won't be able to login back to the instance.
> ~/.ssh/authorized_keys
- Remove authorized key from 'root' ssh agent:
sudo su - > ~/.ssh/authorized_keys exit
- Delete the following folders recursively
sudo rm -r /var/lib/cloud/data/* sudo rm -r /var/lib/cloud/instances/* sudo rm -r /var/lib/cloud/instance/* sudo rm -r /var/lib/cloud/handlers/* sudo rm /etc/cloud/uzh-customization-script sudo rm /var/log/*.log
Step 2: Creating the Snapshot¶
- Log in to https://cloud.s3it.uzh.ch.
- On the Project tab, open the Compute tab and click Instances category.
- Select the instance of which you'd like to take a snapshot.
- Click on Shutoff instance
- Click on Create Snapshot
- Snapshot Name: Give a descriptive name to your snapshot
- Click on Create Snapshot
- Your snapshot will be displayed under Images.
- You should then follow the directions in this how-to article to turn your snapshot into a usable image.