Basically four steps:
- install SDK and initialize a new project via console
- upload and generate a new GCE image for your project
- instantiate a new instance on GCE using the image
- follow a known path
- Sign up for Google Compute Engine
- Download and install the Cloud SDK
- Authenticate your client
- Set your project ID - "A project ID is the customized name you chose when you created the project, or when you activated an API that required you to create a project ID. It can be found in the Dashboard of the project ... ", see GCE doc
That's it for the first step...
download the current cloud image of Atomic Host and store it in your project directory.
cd <project-dir>
curl <URL of Atomic Host> -o rhel-atomic-host-cloud.qcow2.xz
Convert the Atomic Host qcow2 to a raw file and package it with tar
xz --decompress rhel-atomic-host-cloud.qcow2.xz
qemu-img convert -S 4096 -f qcow2 -O raw rhel-atomic-host-cloud.qcow2 disk.raw
tar -Szcf rhel-atomic-host-image.tar.gz disk.raw
Upload the tar file into a Google Storage bucket.
gsutil mb gs://dingsbums
gsutil cp rhel-atomic-host-image.tar.gz gs://dingsbums
After upload, the tar file is converted to a GCE image.
gcloud compute images create rhel-7-atomic-host --source-uri gs://dingsbums/rhel-atomic-host-image.tar.gz
gcloud compute images list
May I suggest a helpful comment saying that the raw image is required to be named
disk.raw
in the tarball.