How do I make an image bootable?

0 votes
I have a Compute Engine custom image that has a bootable operating system on it but does not have the necessary Compute Engine drivers. How do I make such an image as bootable?
Oct 21 in GCP by anonymous
• 3,920 points
14 views

1 answer to this question.

0 votes

If you have a Compute Engine custom image that has a bootable operating system on it but does not have the necessary Compute Engine drivers or guest environment packages, you can use the image import tool to make that image bootable on Compute Engine.

Use the --source-image flag to specify a custom image to make bootable, instead of using the --source-file flag that specifies a new disk to import.

gcloud compute images import [IMAGE_NAME] \
    --source-image [SOURCE_IMAGE] \
    --os [OS]

where

  • [IMAGE_NAME] is the name of your destination image.

  • [SOURCE_IMAGE] is the name of your source image.

  • [OS] is the operating system of the SOURCE_IMAGE. It must be one of the following: centos-6, centos-7, debian-8, debian-9, rhel-6, rhel-7, ubuntu-1404, ubuntu-1604, windows-2008r2, windows-2012, windows-2012r2, windows-2016, windows-2019 or a BYOL-licensed image.

answered Oct 21 by Sirajul
• 37,930 points

Related Questions In GCP

+3 votes
11 answers

How do I delete my Google Cloud Platform Account?

How do I delete me cloud and ...READ MORE

answered Jan 18 in GCP by dodge123@yahoo.com
16,572 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20 in GCP by Sirajul
• 37,930 points
43 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20 in GCP by Sirajul
• 37,930 points
51 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
37 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
44 views
0 votes
1 answer

Creating password for a windows instance on GCP

Windows Server instances use password authentication instead ...READ MORE

answered Sep 24 in GCP by Sirajul
• 37,930 points
91 views
0 votes
1 answer