# Create a VM in GCP Parity ***As explained by David from Parity Devops (thank you very much for your help and time to explain and show us how to configure the VM)*** * Connect to GCP of Parity by following this [link](https://console.cloud.google.com/compute/instances?project=test-installations-222013) * It will bring you directly to : * the `VM instances` (it is under the "Compute Engine" menu item) * of the `test-installations` project as shown in the screenshot below : ![VM-instances-test-installations](https://i.imgur.com/gtRV8dh.png) * In this page you can see all the existing VMs in Parity. * To create your own click on the button `CREATE INSTANCE` on the top of the page. ![create-instance](https://i.imgur.com/pGuAHSe.png) * In the `name` field it is recommended to put a descriptive name, e.g. *yourdepartment-yourname-VMdescription*. One of my VMs is called *integrations-dominique-sidecarscript* ### Machine Configuration * Under this section, in the field `Machine Type` one common choice (recommended by David from Devops) is * `e2-standard-4` * the rest of the options can be left unchanged. ### Boot Disk * In this section you can click the button `CHANGE` and the recommendations are shown in the screenshot below: ![VM-Boot-Disk](https://i.imgur.com/2kHS00z.png) ### Identity and API access * In this section just change the `Access Scopes` to `Allow full access to all Cloud APIs`. ### Advanced options * Expand this section by clicking on the down arrow. * Expand the `Security` subsection by clicking again on the arrow next to it. * Expand the `MANAGE ACCESS` section * Under `Add manually generated SSH keys` click the `ADD ITEM` button * In the field `SSH key1` you can input your public key from your local computer or the computer you will use to connect to your VM. #### *Note* To get your public key from your computer - Open a terminal and run `cat ~/.ssh/id_rsa.pub` - Copy all the text that is printed and paste it in the `SSH key1` field. * Last step is to click on the button `CREATE` at the bottom of the page # Find your VM's external IP in GCP Parity * Connect to GCP of Parity by following this [link](https://console.cloud.google.com/compute/instances?project=test-installations-222013) * It will bring you directly to : * the `VM instances` (it is under the "Computer Engine" menu item) * of the `test-installations` project * In this page, search for your VM in the filter box: ![VM-filter](https://i.imgur.com/8U49qEL.png) * Click on the name of your VM. * Under the section `Network interfaces` and under the column `External IP address` you can see the IP of your VM. # Connect to your VM from your computer * On your computer open a terminal and give the command : * `ssh your-username@your-VMs-external-IP` #### *Note* *The username has to be the same as the one indicated in your public key!* * And that was it. You are connected to your VM !!! * Happy Hacking :)))