Create a VM from a Snapshot

Create a VM based on a previously taken snapshot.

  1. Create a VM instance and make sure to Allow HTTP and HTTPS traffic

  2. Now, SSH into it and install apache and commands for that are listed below

    • sudo su

    • apt update

    • apt -y install apache2

  3. apache is installed

  4. Close this SSH, and copy your External IP and paste it into the browser

  5. You will be able to see apache2 page that means your apache is successfully installed

  6. Close this page

  7. After that, from the left hand-side pannel, under Storage select Snapshots

  8. Click on Create Snapshot

  9. Name your snapshot, select Snapshot source type and for source-disk select the instance which you have created earlier in my case i.e. gauri-instance

  10. Now, click on create

  11. Now, click on this created snapshot, click on CREATE INSTANCE

  12. Name your instance, give region and under firewall Allow both HTTP and HTTPS traffic

  13. Click on create

  14. Now, copy the External IP of this newly created instance and hit it in the browser, you will be able to see the apache2 default page which we have intsalled in our previous instance i.e. gauri-instance

    Awesome! You’ve successfully created a VM from a snapshot, giving you a powerful way to restore environments quickly. Up next, we’ll dive into creating VMs with startup scripts, automating configurations right from the start. Stay tuned for more cloud magic!