Google Cloud Platform

Deploy VM

To deploy VyOS on GCP (Google Cloud Platform)

  1. Generate SSH key pair type ssh-rsa from the host that will connect to VyOS.

Example:

ssh-keygen -t rsa -f ~/.ssh/vyos_gcp -C "vyos@mypc"

Note

In name “vyos@mypc” The first value must be “vyos”. Because default user is vyos and google api uses this option.

  1. Open GCP console and navigate to the menu Metadata. Choose SSH Keys and click edit.

../../_images/cloud-gcp-01.png

Click Add item and paste your public ssh key. Click Save.

../../_images/cloud-gcp-02.png
  1. On marketplace search “VyOS”

  2. Change Deployment name/Zone/Machine type and click Deploy

../../_images/cloud-gcp-03.png
  1. After few seconds click to instance

../../_images/cloud-gcp-04.png
  1. Find out your external IP address

../../_images/cloud-gcp-05.png
  1. Connect to the instance. SSH key was generated in the first step.

ssh -i ~/.ssh/vyos_gcp [email protected]
vyos@vyos-r1-vm:~$

References

https://console.cloud.google.com/