Creating your environment for CSC 210

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

  1. 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.
  2. 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.
  3. 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.
  4. Email Dr. Bareiss the name of your project before Friday.

Steps for creating your image

  1. . Create a project (if you did not do it when redeeming credits -> see above for information)
  2. . Launch the cloud shell
  3. . Make sure your default project is correct
           general instruction
                gcloud config set project [YOUR_PROJECT_ID]
           example for me
                gcloud config set project bareiss210
    
  4. . 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
      
  5. . 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.
    1. Log into the machine
    2. Launch the task manager
    3. Go to the services tab
    4. Find MySQL server
    5. Right click and tell it to start
    6. Launch MySQL workbench (it might take a little time to launch)
    7. Click on the student connection to test it.
    8. 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
    1. From the cloud console, find your machine and resume it. This will be faster than starting and solves the MySQL starting problem.
    2. 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

    1. 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.


This topic: CenterForComputing > WebHome > Syllabi > SyllabiSpring2026 > CSC210SylS2026 > CSC210S2026vm
Topic revision: r1 - 2026-01-07 - CathyBareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback