How can we improve Compute Engine?

Restoring a VM to snapshot

There is a VM on GCP.
We will take a snapshot of the disk of that VM. And name it as Restore point 1.
Now after 10 days I want to take my system back to Restore point 1.

There is no way of doing that.
Only one way around is to delete this Instance and create new instance with the Snapshot taken. This can lead to following issues- Internal IP address might change. So to resolve this issue, there should be some feature by which one can restore the machine to an older date

434 votes
Sign in
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    started  ·  Adminsiruisun (Admin, Google) responded  · 

    We’ve just released a feature to Beta which allows you to detach and re-attach boot disks to GCE VMs.

    Using this feature, you may now restore a VM from snapshot by:

    1. Detaching the boot disk from the VM in question ($ gcloud beta compute instances detach-disk INSTANCE_NAME —disk DISK_NAME)

    2. Creating a disk from the snapshot in question

    3. Attaching the disk from step 2 to the VM as the boot disk ($ gcloud beta compute instances attach-disk INSTANCE_NAME —disk NEW_DISK_NAME —boot)

    After restore, the VM will keep its IP address and other properties (e.g. tags, labels, etc.).

    See more info about the feature in the docs:

    Down the road, we’re also planning to improve this flow to be “one-click easy.” More updates to come.


    Sign in
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      • RVJ Callanan commented  ·   ·  Flag as inappropriate

        I have just encountered this problem and I am gobsmacked.
        There is no excuse for this.
        It is fundamental to any server deployment (Cloud-based or otherwise).

        It should be a simple sequence:

        - Shut down VM
        - Restore snapshot to boot disk
        - Optionally restore snapshot to any other non-boot disks
        - Restart server

        This should be a cinch for Google to implement.
        And it is an absolute necessity.

        I have a feeling it may be complicated by interim changes to VM settings, e.g. external IP address or Microsoft licensing issues (hence the current requirement to restore to a new VM instance).

        Well, IMHO, that should be the customer's worry, not Google's

        If I were to change any external settings, I would first carry out the following procedure:

        - Restore VM from previous snapshot (to ensure a clean predictable base)
        - Make the required VM settings changes
        - Reboot and test
        - Make a new snapshot

        Please, Google, get this sorted ASAP.

        Like many others, I have put a massive effort into embracing Google Cloud.
        Many clients using legacy Windows applications are lined up for Compute Engine.
        I was even lulled into a false sense of security by the availability of snapshot functionality.
        But when I attempted to perform a restore, I came across this problem.
        This is more than just "appalling", it is contemptible.
        Apart from the time-wasting aspect, restoring to a new VM unleashes other issues
        Especially with Windows Server.
        I will give Google until the end of the month to sort this.
        Otherwise I'm moving lock, stock and barrel to Amazon.

      • Juan Romero commented  ·   ·  Flag as inappropriate

        "As with any software company, we have a fixed number of engineers that can work on new features and functionality at any given time. The fact that we haven't done something requested here doesn't mean it is "technically challenging" per se, but often simply means that we have prioritized other customer-requested items ahead of it."

        Okay, you seem to be not understanding all of us here, and I'm going to repeat what I stated earlier.

        THIS FEATURE SHOULD BE **TOP PRIORITY** FOR YOUR TEAM. Restoring from backups quickly and simply on VM's is such a basic feature that it's like an OS releasing without a network stack. It's been 8 months since I last posted this and your team is only *now* considering implementing this. Not good enough.

        ALL engineers working on feature requests should be on this *now*. It doesn't help that the documentation for restoring from snapshots is vague at best either - clearly they know that how it's currently set up is stupid. I am with holding all major upgrades to our VM's simply because the downtime required to restore from backups is just too long on GCE and will cost us too much per minute. But if it doesn't get resolved by the end of this year, I will be forced to migrate to other solutions.

        Honestly, this is Google we're talking about here, not some startup company getting their bearings. I'm appalled at how this has been handled.

      • Adam commented  ·   ·  Flag as inappropriate

        you have got to be ******* kidding me...a multi billion dollar company cant setup this?


        Thanks Google you dumb *******, you have just ********* what should be an easy task for me...i need to rollback my server just 24 hours because a website without a backup was deleted.

      • AdminPaul Nash (Product Manager, GCE, Google) commented  ·   ·  Flag as inappropriate

        As with any software company, we have a fixed number of engineers that can work on new features and functionality at any given time. The fact that we haven't done something requested here doesn't mean it is "technically challenging" per se, but often simply means that we have prioritized other customer-requested items ahead of it. We appreciate your desire to have this feature, and hope we can deliver it as soon as possible.

      • danny commented  ·   ·  Flag as inappropriate

        I've been looking for this feature and found this article. Wow! not YET?
        This feature must have for the test purpose.
        I test the production server and create a test server every time with the annoying configurations.
        What a waste of time.
        Please add this feature as TOP priority.
        Also, please SQL improvement.


      • Anonymous commented  ·   ·  Flag as inappropriate

        I just voted for this as well. This feature is a must and Azure has this, I believe AWS does as well.

      • Anonymous commented  ·   ·  Flag as inappropriate

        An easy way to restore a VM snapshot while keeping the same configuration, IPs, boot scripts and syncing up with Deployment Manager is much needed. Currently, if you have used the Deployment Manager, take a snapshot and fire up as a new VM, the VM instance is not anymore part of the deployment. It would be much faster and easier (especially for less technical users) to be able to simply restore the snapshot of a VM within a deployment and avoid any further configuration of IPs, DNS, security, etc.

      • Anonymous commented  ·   ·  Flag as inappropriate

        As a new "possible" customer, I'm a little shocked to read about this shortcoming. I always kinda thought this was one of the main points of taking a snapshot.

      • Chris commented  ·   ·  Flag as inappropriate

        looks like you guys are about lose 17 accounts. All from this one pathetic and completely ignorant shortcoming. I need to restore a backup on a simple wordpress install and now realize this has taken away 2 hours of my day and I still have about 3 hours of work to get this stupid thing working again. Terrible. Use another platform.

      • Stu Harss commented  ·   ·  Flag as inappropriate

        I have also just left and gone back to a VPS with another provider. It pains me as when it was working GCP was so much better.

        We had a simple failure that could have been resolved with the snapshot from the previous day. We managed to get it running after hours of frustration. There were man inconsistencies from the day before and it was clear it was t running correctly. Time is money and we made the decision to preserve our income and move as quickly as possible.

        A simple restore button that restored the snapshot would have kept me for sure.

      • Laurentiu commented  ·   ·  Flag as inappropriate

        I just gave up to GCP because of this inability to simply restore snapshot to instance.
        When this feature will be available, I could try to use GCP againg.

      • Russell Christopher commented  ·   ·  Flag as inappropriate

        +1 on @Juan's comments. This is basic/commodity functionality, and I'm really surprised it's not supported. This is going to require that I waste lots of time to recreate an image from scratch. Since I use multiple cloud platforms, I likely will not use GCP in cases that require a fairly dynamic ability to swap back and forth between VMs in different states. Pity, cause I like your stuff.

      ← Previous 1

      Feedback and Knowledge Base