Recover a VM with a corrupted or full disk  |  Compute Engine Documentation  |  Google Cloud (2024)

  • Home
  • Compute Engine
  • Documentation
  • Guides
Stay organized with collections Save and categorize content based on your preferences.

Linux Windows

If your VM is inaccessible or corrupted, you can recover the VM or its full bootdisk.

Recovering an inaccessible VM or a full boot disk

If you can't connect to your instance, or your boot disk is full and you can'tresize it, you must create an instance and recreate the boot disk from asnapshot to resize it. You must know the size of the boot disk you'rerecreating.

Permissions required for this task

To perform this task, you must have the following permissions:

  • compute.instances.create on the project to be able to create a new instance
  • compute.disks.create on the project to be able to create a new disk
  • compute.disks.createSnapshot on the disk
  • compute.instances.attachDisk on the new VM instance
  • compute.disks.use permission on the disk to attach
  1. In the Google Cloud console, go to the VM instances page.

    Go to VM instances

    1. Click the instance name to open the VM instance details page.
    2. Click Stop.
    3. In the Boot disk section, note the boot disk's sizeand name.
  2. In the Google Cloud console, go to the Create a snapshot page.

    Go to Create a snapshot

    1. Enter a snapshot Name.
    2. Select the boot disk from the Source disk drop-down list.
    3. Click Create.
  3. In the Google Cloud console, go to the Create an instance page.

    Go to Create an instance

  4. Enter the instance details.

  5. Create a new boot disk from the snapshot of the old boot disk.

    1. Under Boot disk, select Change.
    2. Select Snapshots.
    3. Select the snapshot of the old boot disk from the Snapshot drop-down list.
    4. Select the Boot disk type.
    5. Enter the new size for the disk.
    6. Click Select to confirm your disk options.
  6. Click Create.

Recovering a corrupted VM

If a VM's OS is corrupted, you can retrieve the boot disk data to recover theVM. To recover the boot disk, you must first create a temporary VM using aGoogle-provided image, because the snapshot of thesource VM might be corrupted.

To retrieve data from the VM, follow these steps:

  1. Create a snapshot from the boot disk of the source VM.
  2. Create a temporary VM using a public image.
  3. Check if you're able to connect to the temporary VM using SSH.
  4. Add an additional disk to the temporary VM by following these steps:

    1. In the Google Cloud console, go to the VM instances page.

      Go to VM instances

    2. Select the temporary VM that you created.

    3. Click edit Edit.

    4. Under Additional disks, click Add new disk, and then do thefollowing:

      1. Add the disk name.
      2. For Source type, select the Snapshot tab.
      3. In the Source snapshot drop-down menu, select the snapshot of thesource VM that you created earlier in these steps.
      4. Click Done.
    5. Click Save.

  5. Connect to the VM using SSH.

  6. Check the disk and partitions in the VM and make a note of the disk name—for example /dev/sdb1:

     lsblk 

    The output is similar to the following:

     NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 10G 0 disk └─sda1 8:1 0 10G 0 part / sdb 8:16 0 100G 0 disk ├─sdb1 8:17 0 96G 0 part ├─sdb2 8:18 0 1K 0 part └─sdb5 8:21 0 4G 0 part 
  7. Create a mount point at /mnt/newdisk:

     sudo mkdir /mnt/newdisk 
  8. Mount the additional disk partition to the mount point /mnt/newdisk:

     sudo mount -o discard,defaults DISK_NAME /mnt/newdisk 

    Replace DISK_NAME with the disk name that you noted earlier in these steps—for example, /dev/sdb1.

    The snapshot's file system is mounted at /mnt/newdisk. You can navigate thedirectories and retrieve data.

To create a VM with the recovered boot disk, follow these steps:

  1. Create an image from the disk of the temporary VM.
  2. Create a VM with the image of the temporary VM.

After the VM is created, you can transfer the recovered data to the VM.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-03-26 UTC.

Recover a VM with a corrupted or full disk  |  Compute Engine Documentation  |  Google Cloud (2024)

FAQs

Recover a VM with a corrupted or full disk  |  Compute Engine Documentation  |  Google Cloud? ›

Performing a reset on your VM is similar to doing a hard reset on your computer, where you might press a reset button or press and hold the power button. Resetting a VM forcibly wipes the memory contents of the machine and resets the VM to its initial state.

How do I recover a VM? ›

Procedure
  1. From the left navigation, select Protection groups.
  2. Select a protection group from the list.
  3. Click one of the snapshots associated with the group.
  4. In the list of VMs in the snapshot, click the Restore button next to the VM you want to restore.
Jul 12, 2023

How do you reset a Google Cloud VM? ›

Performing a reset on your VM is similar to doing a hard reset on your computer, where you might press a reset button or press and hold the power button. Resetting a VM forcibly wipes the memory contents of the machine and resets the VM to its initial state.

How do I restore deleted disks from Google cloud? ›

In the Google Cloud console, go to the Cloud Storage Buckets page. In the list of buckets, find the bucket that contains the objects you want to restore. Click the Bucket overflow menu (more_vert) associated with the bucket and select Create restore job. The Create a restore job pane opens.

How to restore a VM from GCP snapshot? ›

Restore a snapshot
  1. Sign in to the GDC console.
  2. In the navigation menu, click Virtual Machines > Snapshots.
  3. Select a project.
  4. In the list of snapshots, find the snapshot to restore and click Restore.
  5. In the New disk name field, enter the name of the disk to restore the backup in.
  6. Enter a Restore name for the restore.

How do I recover a corrupted virtual machine? ›

Recovering a corrupted VM
  1. Create a snapshot from the boot disk of the source VM.
  2. Create a temporary VM using a public image.
  3. Check if you're able to connect to the temporary VM using SSH.
  4. Add an additional disk to the temporary VM by following these steps: ...
  5. Connect to the VM using SSH.

How do I retrieve a VM? ›

Listen to or read voicemail
  1. Open the Google Voice app .
  2. At the bottom, tap Voicemail. . Unread voicemails are in bold.
  3. Tap a voicemail.
  4. Select an option: Read the voicemail transcript. To listen to a voicemail, tap Play .

Can I reset a virtual machine? ›

Navigate to the VM you want to reset. Select the desired VM and right-click or select the Actions menu. Select VM Power > Reset to display the Run Power Control window. Run Power Control: Verify the VM you want to reset, then select Next.

How do I restore my Google cloud data? ›

In the Google Cloud console, go to the Filestore instances page. Click Backups. Click the name of the backup you want to restore from. Click Restore.

Does Google Cloud charge for stopped VM? ›

Google does not charge for VM resources while they are in the TERMINATED state. Google charges for storing the preserve state of suspended VMs. Because the VM remains in the RUNNING state when it is resetting, Google charges for VMs according to standard VM prices.

How do I retrieve my stuff from Google cloud? ›

Download an object from a bucket
  1. In the Google Cloud console, go to the Cloud Storage Buckets page. ...
  2. In the list of buckets, click the name of the bucket that contains the object you want to download. ...
  3. Navigate to the object, which may be located in a folder.
  4. Click the Download icon associated with the object.

How do I restore my Google disk? ›

Frequently Asked Questions
  1. Sign in to your Google Admin Console, find Directory, and select Users.
  2. Find the user who needs their Drive data restored.
  3. Point to the user and click More options, then choose the option Restore data.
  4. Select the date range for the data that you want to restore. ...
  5. Click Restore.
Apr 16, 2024

How do I recover data from a deleted disk? ›

Navigate to the folder that used to contain the file or folder, right-click it, and then select Restore previous versions. If the folder was at the top level of a drive, for example C:\, right-click the drive, and then select Restore previous versions.

How do I start my VM in recovery mode? ›

Recovery mode
  1. Go to Virtual machines → menu → Recovery mode.
  2. Click on Start mode and reboot to confirm that you want to start the virtual machine in recovery mode.
  3. VMmanager will connect the SystemRescueCD image to the selected virtual machine and will reboot it.

How do I Restore a VM from a disk snapshot? ›

Restore from a snapshot
  1. After you take a snapshot of a boot or non-boot disk, create a new disk based on the snapshot.
  2. After you take a snapshot of a boot disk, create a new VM based on the boot disk snapshot.
  3. After you take a snapshot of a non-boot disk, create a new VM with a new non-boot disk based on the snapshot.

Can you retrieve a deleted VM? ›

Most Android phones do not store voicemails on the device after you delete them. If you use a third-party phone app with its own voicemail service, voicemails might be stored in a trash folder. However, this method can restore the deleted voicemail only if the message was left on that app.

Can a deleted virtual machine be recovered? ›

You can restore a deleted VM from a datastore primary or secondary backup to an ESXi host that you select. When restoring to a different location, SnapCenter Plug-in for VMware vSphere must be running in the linked vCenter that is the destination for the restore operation.

How do I restore a VM from Windows backup? ›

Restore virtual machines by using Windows Server Backup
  1. Start Windows Server Backup in Administrative Tools.
  2. On the Actions menu, click Recover.
  3. Select the server that you want to recover data from, and then click Next.
  4. Select the date and time that you want to restore from, and then click Next.
Dec 26, 2023

Top Articles
The biggest risk you may not know about
Finding and installing packages — Anaconda documentation
Fernald Gun And Knife Show
Knoxville Tennessee White Pages
123 Movies Black Adam
Room Background For Zepeto
oklahoma city for sale "new tulsa" - craigslist
Professor Qwertyson
Southeast Iowa Buy Sell Trade
Dee Dee Blanchard Crime Scene Photos
Owatc Canvas
7543460065
Joe Gorga Zodiac Sign
South Ms Farm Trader
National Office Liquidators Llc
Available Training - Acadis® Portal
Craigslist Blackshear Ga
Tnt Forum Activeboard
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Epro Warrant Search
Razor Edge Gotti Pitbull Price
Mahpeople Com Login
Rugged Gentleman Barber Shop Martinsburg Wv
Mychart Anmed Health Login
Craigslist Dubuque Iowa Pets
Booknet.com Contract Marriage 2
§ 855 BGB - Besitzdiener - Gesetze
11526 Lake Ave Cleveland Oh 44102
New Stores Coming To Canton Ohio 2022
Publix Christmas Dinner 2022
Core Relief Texas
Pay Stub Portal
Proto Ultima Exoplating
Poe T4 Aisling
Vistatech Quadcopter Drone With Camera Reviews
Aladtec Login Denver Health
Fox And Friends Mega Morning Deals July 2022
Walter King Tut Johnson Sentenced
8 Ball Pool Unblocked Cool Math Games
Riverton Wyoming Craigslist
Samantha Lyne Wikipedia
Newsweek Wordle
Torrid Rn Number Lookup
The Wait Odotus 2021 Watch Online Free
Shoecarnival Com Careers
Levi Ackerman Tattoo Ideas
Theater X Orange Heights Florida
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis
Shiftselect Carolinas
Service Changes and Self-Service Options
Heisenberg Breaking Bad Wiki
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5734

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.