summaryrefslogtreecommitdiff
path: root/docs/installation/cloud/gcp.rst
blob: 318c18725bbb98b19152b38bf4f08399ac1e6769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

#####################
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:

  .. code-block:: none

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


.. note:: For name, type "vyos@mypc" as the first value must be "**vyos**". 
   Because default user is vyos and google api uses this option.


2. Open GCP console and navigate to the menu **Metadata**. Choose
   **SSH Keys** and click ``edit``.

.. figure:: /_static/images/cloud-gcp-01.png


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

.. figure:: /_static/images/cloud-gcp-02.png


2. On marketplace search "VyOS"

3. Change Deployment name/Zone/Machine type and click ``Deploy``

.. figure:: /_static/images/cloud-gcp-03.png

4. After few seconds click on ``instance``

.. figure:: /_static/images/cloud-gcp-04.png

5. Find out your external IP address

.. figure:: /_static/images/cloud-gcp-05.png

6. Connect to the instance. SSH key was generated in the first step.

  .. code-block:: none

    ssh -i ~/.ssh/vyos_gcp vyos@203.0.113.3
    vyos@vyos-r1-vm:~$

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