Back to Browse

Create Machine in google cloud using command line

4.0K views
Mar 24, 2017
9:30

This tutorials is about how to create virtual machine (instance) in google cloud platform using command line tool gcloud. #gcloud is come by default with #googlecloudsdk. How to install google cloud sdk visit here. https://www.youtube.com/watch?v=gjWyzn5jzZQ Steps 1.Find out the what you want 2.Region 3.Type 4.customize 5.Etc etc Step 2 1.list out the regions available for you 2.#gcloud compute regions list 3.set regions 4.#gcloud config set compute/region REGION 5.unset the regions 6.#gcloud config unset compute/region Step 3: 1.select image from list 2.#gcloud compute images list 3.Find out the values of to parameter --image-family Step 4: 1.Select type of instance from predefined list 2.#gcloud compute machine-types list 3.Find out what computation power and customize it according to your need 4.--custom-memory 4GiB --custom-cpu 2vCPU --image-project Step5: 1.#gcloud compute instances -h 2.--description= "testing for the command line " Step 6: Final from build command #gcloud compute instances create secops --zone us-central1-c --image-family centos-6 --image-project centos-cloud --machine-type f1-micro --description 'testing for the command line' Step 7: 1.To stop the instance #gcloud compute instances stop secops --zone us-central1-c 2.Need to provide instance name and zone , because there could be multiple instance with the same name in different regions To start the instance 3.#gcloud compute instances start secops --zone us-central1-c Need to provide instance name and zone , because there could be multiple instance with the same name in different regions 4.#gcloud compute instances delete secops --zone us-central1-c

Download

0 formats

No download links available.

Create Machine in google cloud using command line | NatokHD