Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Create Custom OS images from ISO

Hello! I'm trying to create a Custom OS bootable image for my GCP VM; I have an ISO image that I extract and convert to .tar.gz as requested by GCP. I upload this tar file onto Cloud Storage and then try to create an image off of it, but I get the following error:

 

 

$ gcloud compute images create ivoz --project=root-grammar-414115 --source-uri=https://storage.googleapis.com/voip-2990/ivoz.tar.gz
ERROR: (gcloud.compute.images.create) Could not fetch resource:
 - The file inside the tar archive was named ''README.html''. It should be named ''disk.raw''.

 

 

 Not sure what I'm doing wrong. Maybe I need to rename the ISO file as disk.raw and then tar.gz it?

GCP instructions are not very clear on this topic, so any help/pointers would be greatly appreciated!

 

 

 

1 1 1,743
1 REPLY 1

Hello @marianodaniel ,

As per the error you received, there was a previous post related to the concern, and Farid Shumbar suggested that in the file path when specifying your --source-uri flag, try gs://my-storage-bucket-name/gce-demo.tar.gz  and make sure the file is uploaded with the same name.

The error might be occurring because of the file extension you tried to use, which is .gz and it should be .tar.gz instead.

It seems that what resolved the concern from this post was changing the name of the iso file to  .tar.gz.