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, 2019 in GCP by anonymous
• 5,050 points
32 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, 2019 by Sirajul
• 46,080 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, 2019 in GCP by dodge123@yahoo.com
23,106 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, 2019 in GCP by Sirajul
• 46,080 points
78 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, 2019 in GCP by Sirajul
• 46,080 points
171 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, 2019 in GCP by Sirajul
• 46,080 points
112 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, 2019 in GCP by Sirajul
• 46,080 points
119 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, 2019 in GCP by Sirajul
• 46,080 points
271 views
0 votes
1 answer
0 votes
1 answer