Steps for creating vm from image:
- Download the Seedlabs .vmdk image from https://storage.cloud.google.com/seed-labs-bucket/seed-labs-ubuntu.vmdk
- Upload the .vmdk image to a bucket via the Cloud Storage API at https://cloud.google.com/storage
- Create an image in Compute Engine and use the .vmdk file as the source. You will have to select it from the bucket you just uploaded to. Name this image "seed-labs-ubuntu".
- Activate Cloud Shell and set current project with "gcloud config set project PROJECT_ID"
- git clone https://github.com/DanJenkins-Developer/seedlabs-cloud-port.git into your prefered directory
- Run "terraform init" to add the necessary plugins and build the .terraform directory.
- Run "terraform plan" to verrify syntx
- Run "terraform apply" to create the VM.
Steps for creating vm from scratch:
This doesn't quite work yet, for some portion of the setupscript that enables password authentication doesn't work.
- Activate Cloud Shell and set current project with "gcloud config set project PROJECT_ID"
- git clone https://github.com/DanJenkins-Developer/seedlabs-cloud-port.git into your prefered directory
- Run "terraform init" to add the necessary plugins and build the .terraform directory.
- Run "terraform plan" to verrify syntx
- Run "terraform apply" to create the VM.
Set up script adapted from "Creating a SEED VM on the Cloud" install script provided by kevin-w-du https://github.com/seed-labs/seed-labs/blob/master/manuals/cloud/seedvm-cloud.md