Skip to content

importing atomic host into GCE

Chakradhar Rao Jonagam edited this page Feb 25, 2017 · 2 revisions

https://gist.github.com/goern/d21e5f9bee733a4f30c7

cd <project-dir>
curl <URL of Atomic Host> -o rhel-atomic-host-cloud.qcow2.xz


xz --decompress rhel-atomic-host-cloud.qcow2.xz
brew install qemu
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


gsutil mb gs://<bucket-name>
gsutil cp rhel-atomic-host-image.tar.gz gs://<bucket-name>

gcloud compute images create rhel-7-atomic-host --source-uri gs://<bucket-name>/rhel-atomic-host-image.tar.gz
gcloud compute images list


gcutil addinstance <project-name>-instance --machine_type=n1-standard-1 --image=rhel-7-atomic-host --zone=europe-west1-a --wait_until_running --auto_delete_boot_disk
gcloud compute ssh cloud-user@<project-name>-instance --zone europe-west1-a

gcloud compute firewall-rules create allow-http --description "Incoming http allowed." --allow tcp:80
Clone this wiki locally