There are three areas of instructions: Getting credits, creating your machine, using the machine. Please pay attention to the details. They are EXTREMELY important
Redeeming credits
There is a page on Canvas (labeled Google Resources) that has the first link to click. REMEMBER that you must be logged into your betheluniversity account on the browser when you do this!!!!!!!!! Follow the instructions provided there! Do this before class on Friday.
If you have credits left over from last fall (only last fall) you can also use those. But be sure to redeem your current credits before the end of Jan. You can then access them later when you need them.
Create a new project (or use your old project). You will be creating a new virtual machine in whatever project you use. If you are creating a new one, make sure the name of the project includes enough of your name to be obvious. You are best off if your project name does NOT contain capital letters.
Email Dr. Bareiss the name of your project before Friday.
Steps for creating your image
. Create a project (if you did not do it when redeeming credits -> see above for information)
. Launch the cloud shell
. Make sure your default project is correct
general instruction
gcloud config set project [YOUR_PROJECT_ID]
example for me
gcloud config set project bareiss210
. Create your image
general instruction
gcloud compute instances create [MACHINE_NAME] --project=[YOUR_PROJECT_ID] --zone=us-central1-a --image=s2026customwinimage --image-project=imagesource-446419 --machine-type=e2-medium
example for me
gcloud compute instances create csc210vm --project=bareiss210 --zone=us-central1-a --image=s2026customwinimage --image-project=imagesource-446419 --machine-type=e2-medium
. Log into the machine to make sure it works. Then shut down the machine.
Using the machine
For the first time (or after a full shutdown), you need to start the MySQL server.
Log into the machine
Launch the task manager
Go to the services tab
Find MySQL server
Right click and tell it to start
Launch MySQL workbench (it might take a little time to launch)
Click on the student connection to test it.
When done, do NOT shutdown your machine. Go to the cloud console and suspend it (see below).
To restart after suspending your machine. We are doing this so that you don't need to restart MySQL
From the cloud console, find your machine and resume it. This will be faster than starting and solves the MySQL starting problem.
Suspend the machine (from the cloud console) when do. It is essential to suspend because this is a much more expensive machine than your machine from before and if you leave it running you will run out of credits very quickly.
Getting help with problems
It is strongly suggest that you start with AI (esp. Cloud Assist from the cloud console) to help with things if you get stuck. It can help you figure out how to accomplish the tasks listed above.