Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option for buildextend-gcp #493

Closed
mrguitar opened this issue Apr 25, 2019 · 0 comments
Closed

Add an option for buildextend-gcp #493

mrguitar opened this issue Apr 25, 2019 · 0 comments

Comments

@mrguitar
Copy link

Currently setting the platform id for gce works well for one off image creation. e.g. gf-platformid rhcos-410-...-qemu.qcow2 rhcos-410-...-gce.qcow2 gce

We should add the complete image format needs for GCP as well.

Here's what I'm using to make this work:
(this was taken from Peter's work here: https://github.com/pschiffe/gce-system-container)

qemu-img convert -p -S 4096 -f qcow2 -O raw rhcos-gce.qcow2 disk.raw
tar -Szcvf rhcos.tar.gz disk.raw
BUCKET_NAME=coreos-test-image-bucket
gsutil mb gs://${BUCKET_NAME}
gsutil -o GSUtil:parallel_composite_upload_threshold=150M cp rhcos.tar.gz gs://${BUCKET_NAME}
gcloud compute images create rhcos-20190418 --source-uri gs://${BUCKET_NAME}/rhcos.tar.gz
gsutil -m rm -r gs://${BUCKET_NAME}
gcloud compute instances create "rhcos" --zone us-central1-a --machine-type n1-standard-1 --image "rhcos-20190418" --boot-disk-size "30" --boot-disk-type "pd-ssd" --metadata-from-file user-data=gcp.ign

@jlebon jlebon closed this as completed in 690348e May 17, 2019
darkmuggle pushed a commit that referenced this issue May 17, 2019
Closes: #493
(cherry picked from commit 690348e)
yuqi-zhang pushed a commit that referenced this issue May 17, 2019
Closes: #493
(cherry picked from commit 690348e)
ashcrow pushed a commit to ashcrow/coreos-assembler that referenced this issue May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant