GCP: Difference between revisions

From Bitpost wiki
(Created page with "==== Cloning a VM ==== * Create an image of an existing VM, with the same name. It will be added under... Compute Engine > VMs > Machine images * Create a new VM from the ma...")
 
No edit summary
Line 1: Line 1:
==== Install gcloud CLI ====
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt update
sudo apt install google-cloud-sdk
[https://cloud.google.com/sdk/docs/install#deb Details]
==== Cloning a VM ====
==== Cloning a VM ====
* Create an image of an existing VM, with the same name.  It will be added under...
* Create an image of an existing VM, with the same name.  It will be added under...
  Compute Engine > VMs > Machine images
  Compute Engine > VMs > Machine images
* Create a new VM from the machine image
* Create a new VM from the machine image

Revision as of 14:45, 7 April 2021

Install gcloud CLI

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt update
sudo apt install google-cloud-sdk

Details

Cloning a VM

  • Create an image of an existing VM, with the same name. It will be added under...
Compute Engine > VMs > Machine images
  • Create a new VM from the machine image