Skip to navigation

Compute Engine: Restore a VM

Who can use this feature

Anyone with these permissions: Restore resources

When a Google Compute Engine virtual machine (VM) is lost or damaged, you can restore it from an Eon snapshot, with its disks, as it was when the snapshot was taken. Eon creates the restored VM in your restore project, and you can change its machine type, disk settings, and labels along the way.

This article explains how to restore a VM from your Eon snapshots in the Eon console with standard restore, which fully restores every disk before the instance becomes available. For faster recovery where the instance becomes available while disk data loads in the background, see Compute Engine: Restore a VM (Instant Restore).

To replace the disks of the existing VM instead of creating a new VM, see Compute Engine: Restore Disks in Place.

You can use restore recipes to restore an instance from clean files picked from several snapshots. For more information, see Restore from a Recipe.

Restore the VM

Before you start

Before you restore a Compute Engine VM, make sure:

Hyperdisk restores have specific requirements. For details, see the Restore support notes for Compute Engine.

1

Find the snapshot you want to restore

  1. In your inventory, select the Compute Engine resource you want to restore. The Resource details panel opens.

  2. Click the Eon snapshots tab. You’ll see a calendar view with colored dots on the days when snapshots were taken. There can be more than one snapshot per day.

    When you click a day, a list of Eon snapshots taken that day is displayed below the calendar.

  3. Expand the snapshot you want to restore. Click Instance, and then click Restore. The Restore GCE instance wizard opens.

2

Choose the restore account

In the Restore account step, select the restore project you want to restore the VM to, and then click Next.

3

Set the VM details

  1. Leave Use instant restore off to use the standard restore method.

  2. Set the Machine name.

  3. Choose a Region and Zone to deploy the restored VM to.

  4. Choose the Machine type.

  5. Choose a VPC Network and Subnetwork.

  6. To keep the labels that were present on the VM when the snapshot was taken, turn Keep original labels on. To set different labels, turn Keep original labels off.

    In both cases, the new VM is labeled with eon-restore=true.

  7. Turn Start instance after restore on to start the VM automatically after its disks are restored, or off to leave it stopped.

  8. To specify an internal IP address, turn Assign internal IP automatically off and enter an Internal IP address within the selected subnet. Otherwise, leave the switch on to assign an available address automatically.

  9. Click Next.

4

Set details for the attached disks

In this step of the wizard, you’ll set encryption, disk settings, and labels for the disks attached to the instance. Expand individual disks to show disk-specific settings.

Encryption

You can encrypt all disks with the same customer-managed encryption key (CMEK), or you can set each disk’s key separate from the other disks. If you choose to encrypt each disk separately, turn off Encrypt all disks with the same key. Encryption settings are then displayed for each disk.

Disk settings

For each disk, you can keep the original disk settings, or you can customize the drive’s name, type, and size, and, for disk types that support them, IOPS and throughput.

Labels

Each disk has its own labels, independent of the instance-level labels in the previous step. To set labels on a disk, turn Keep original labels off and add them.

Eon also labels each restored disk with eon-restore=true.

5

Start the restore job

Click Restore to start the asynchronous restore job.

You can see your list of restore jobs on the Restore jobs tab in the Jobs page.

When the restore job completes, the restored VM is ready in your restore project.

See also