A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/compute/docs/troubleshooting/vm-startup below:

Troubleshooting VM start up | Compute Engine Documentation

Troubleshooting VM start up

Stay organized with collections Save and categorize content based on your preferences.

Linux

This document includes troubleshooting information about VM startup issues due to

quota errors

and

boot disks

.

Quota errors

If you receive a quota error when you try to start an instance, you must request additional CPU quota. For more information, see the VM instances section of the Compute Engine allocation quotas documentation.

Boot disks

If your instance does not start and you are unable to connect to it or log in through the interactive serial console, identify the reason why the boot disk is not completing the boot and startup process.

Identify the reason why the boot disk isn't booting Correct the boot issue

After you identify where the boot and startup process is failing, you can correct the issue by completing one of the following actions:

Creating a standalone boot disk

Mount your imported image on a secondary disk that is attached to a temporary VM instance. Use the Google Cloud console or the gcloud CLI to create a standalone disk from the image that you uploaded and create a temporary VM with the standalone disk attached. You can use this instance to modify files on the standalone disk and fix issues that cause that image to fail to start.

Console

Create a standalone disk from the boot disk image that you imported. Alternatively, you can detach a boot disk from an instance and create the instance using that detached boot disk instead.

  1. In the Google Cloud console, go to the Disks page.

    Go to Disks

  2. Click Create disk.
  3. On the Create a disk page, specify the following attributes:
  4. To create the disk, click Create.

Create a temporary instance where you can attach the standalone disk and configure the bootloader to function in a Google Cloud console environment.

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

    Go to Instances

  2. Click the Create instance button.

  3. On the Create an instance page, specify an instance name and a zone in which to locate the instance. The zone must be the same zone where you created your standalone disk.

  4. Expand the Management, security, disks, networking, sole tenancy section.

  5. Under the Disks tab in the Additional disks section, click Attach existing disk. A new section appears.

  6. Under the Disk section, select the standalone disk that you created from the drop-down list. This attaches the standalone disk to the instance so you can mount it and modify the disk contents later.

  7. Click Done to finish attaching the disk.

  8. Click the Create button to create the instance.

gcloud

Create a standalone disk from the boot disk image that you imported. Alternatively, you can detach a boot disk from an instance and create the instance by using that detached boot disk instead.

gcloud compute disks create DISK_NAME \
    --zone=ZONE \
    --image=IMAGE_NAME

Replace the following:

Create a temporary instance where you can attach the standalone disk and configure the bootloader to function in a Google Cloud console environment.

gcloud compute instances create INSTANCE_NAME \
    --zone=ZONE \
    --disk name=DISK_NAME

Replace the following:

After you create the instance with the attached standalone disk, you have a virtual environment where you can modify the bootloader from your original boot disk image.

Configuring the boot disk

Connect to the instance, mount the standalone disk, and configure the bootloader so that it boots properly on Compute Engine.

  1. Connect to the temporary instance by using SSH-in-browser or the gcloud compute ssh command.
  2. Use the blkid command to identify the disk that you want to modify and the partitions that you need to mount. In this example, /dev/sdb is the disk that you imported.

    lsblk
    
    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
    
  3. Mount the root partition from the standalone disk to the /tmp directory. In this example /dev/sdb1 is the root partition and the other partitions do not require any modifications. Your partition scheme might require you to mount multiple partitions before you can access all of the files that you need to change.

    sudo mount /dev/sdb1 /tmp
    
  4. Edit files that might cause the disk to fail the boot process. For more information, see the bootloader configuration instructions.

  5. Unmount the boot disk from the temporary instance.

    sudo umount /tmp
    
Using the boot disk

When you have finished configuring this disk, detach it, and use it as the boot disk for new instance.

Console

Detach the standalone disk from the temporary instance.

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

    Go to Instances

  2. On the list of instances, click the name of the temporary instance where you modified the standalone boot disk. The instance details page opens.

  3. At the top of the instance details page, click Edit.

  4. Under Additional disks, click the X next to the standalone disk to indicate that you want to detach it from the temporary instance.

  5. Click Save to save your changes.

Use the detached standalone disk to create an instance.

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

    Go to Instances

  2. Click the Create instance button.

  3. On the Create an instance page, specify an instance name and a zone in which to locate the instance. The zone must be the same zone where you created your standalone disk.

  4. Under Boot disk, click Change to begin configuring your boot disk.

  5. In the Existing disks tab, choose the standalone boot disk to use as the boot disk for this new instance.

  6. Click the Create button to create the instance.

gcloud

Detach the standalone disk from the temporary instance.

gcloud compute instances detach-disk INSTANCE_NAME \
    --disk name=DISK_NAME

Replace the following:

Use the detached standalone disk to create an instance.

gcloud compute instances create INSTANCE_NAME \
    --zone ZONE \
    --disk name=DISK_NAME,boot=yes

Replace the following:

Test the instance that you created using the modified boot disk. If you are still unable to connect to the instance, view the serial port output again to identify where the boot process is failing. Repeat the troubleshooting process until you correct the issues with the boot disk image.

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 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This document provides troubleshooting steps for Linux VM startup issues, specifically addressing quota errors and boot disk problems."],["If a VM fails to start, check if the boot disk is full, as a full disk that doesn't support automatic resizing can prevent instance connection."],["Utilize the serial port output and interactive serial console access to diagnose boot disk issues, including checking for disk cloning or snapshots in progress."],["Verify the integrity of the boot disk's file system and master boot record (MBR) using a debug instance if the instance fails to start."],["To correct boot issues, create a standalone boot disk from an imported image, attach it to a temporary VM, modify the bootloader as necessary, detach the corrected disk, and use it to launch a new, functional VM instance."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4