summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/images/gns3-01.pngbin0 -> 28912 bytes
-rw-r--r--docs/_static/images/gns3-02.pngbin0 -> 179730 bytes
-rw-r--r--docs/_static/images/gns3-03.pngbin0 -> 22829 bytes
-rw-r--r--docs/_static/images/gns3-04.pngbin0 -> 35150 bytes
-rw-r--r--docs/_static/images/gns3-05.pngbin0 -> 31728 bytes
-rw-r--r--docs/_static/images/gns3-06.pngbin0 -> 29168 bytes
-rw-r--r--docs/_static/images/gns3-07.pngbin0 -> 31199 bytes
-rw-r--r--docs/_static/images/gns3-08.pngbin0 -> 29636 bytes
-rw-r--r--docs/_static/images/gns3-09.pngbin0 -> 21881 bytes
-rw-r--r--docs/_static/images/gns3-10.pngbin0 -> 30788 bytes
-rw-r--r--docs/_static/images/gns3-11.pngbin0 -> 168937 bytes
-rw-r--r--docs/_static/images/gns3-12.pngbin0 -> 58597 bytes
-rw-r--r--docs/_static/images/gns3-13.pngbin0 -> 56994 bytes
-rw-r--r--docs/_static/images/gns3-14.pngbin0 -> 28821 bytes
-rw-r--r--docs/_static/images/gns3-15.pngbin0 -> 45453 bytes
-rw-r--r--docs/_static/images/gns3-16.pngbin0 -> 54790 bytes
-rw-r--r--docs/_static/images/gns3-17.pngbin0 -> 169380 bytes
-rw-r--r--docs/_static/images/gns3-20.pngbin0 -> 55168 bytes
-rw-r--r--docs/_static/images/gns3-21.pngbin0 -> 25663 bytes
-rw-r--r--docs/_static/images/gns3-215.pngbin0 -> 44485 bytes
-rw-r--r--docs/_static/images/gns3-22.pngbin0 -> 54674 bytes
-rw-r--r--docs/appendix/vyos-on-gns3.rst175
-rw-r--r--docs/index.rst1
23 files changed, 176 insertions, 0 deletions
diff --git a/docs/_static/images/gns3-01.png b/docs/_static/images/gns3-01.png
new file mode 100644
index 00000000..a655d6aa
--- /dev/null
+++ b/docs/_static/images/gns3-01.png
Binary files differ
diff --git a/docs/_static/images/gns3-02.png b/docs/_static/images/gns3-02.png
new file mode 100644
index 00000000..3dffdd2b
--- /dev/null
+++ b/docs/_static/images/gns3-02.png
Binary files differ
diff --git a/docs/_static/images/gns3-03.png b/docs/_static/images/gns3-03.png
new file mode 100644
index 00000000..fcab6c5d
--- /dev/null
+++ b/docs/_static/images/gns3-03.png
Binary files differ
diff --git a/docs/_static/images/gns3-04.png b/docs/_static/images/gns3-04.png
new file mode 100644
index 00000000..afc30131
--- /dev/null
+++ b/docs/_static/images/gns3-04.png
Binary files differ
diff --git a/docs/_static/images/gns3-05.png b/docs/_static/images/gns3-05.png
new file mode 100644
index 00000000..fee0dc65
--- /dev/null
+++ b/docs/_static/images/gns3-05.png
Binary files differ
diff --git a/docs/_static/images/gns3-06.png b/docs/_static/images/gns3-06.png
new file mode 100644
index 00000000..c03cd89f
--- /dev/null
+++ b/docs/_static/images/gns3-06.png
Binary files differ
diff --git a/docs/_static/images/gns3-07.png b/docs/_static/images/gns3-07.png
new file mode 100644
index 00000000..89d0a565
--- /dev/null
+++ b/docs/_static/images/gns3-07.png
Binary files differ
diff --git a/docs/_static/images/gns3-08.png b/docs/_static/images/gns3-08.png
new file mode 100644
index 00000000..aca0ff8a
--- /dev/null
+++ b/docs/_static/images/gns3-08.png
Binary files differ
diff --git a/docs/_static/images/gns3-09.png b/docs/_static/images/gns3-09.png
new file mode 100644
index 00000000..7ae38c30
--- /dev/null
+++ b/docs/_static/images/gns3-09.png
Binary files differ
diff --git a/docs/_static/images/gns3-10.png b/docs/_static/images/gns3-10.png
new file mode 100644
index 00000000..1ee70d58
--- /dev/null
+++ b/docs/_static/images/gns3-10.png
Binary files differ
diff --git a/docs/_static/images/gns3-11.png b/docs/_static/images/gns3-11.png
new file mode 100644
index 00000000..7990c73a
--- /dev/null
+++ b/docs/_static/images/gns3-11.png
Binary files differ
diff --git a/docs/_static/images/gns3-12.png b/docs/_static/images/gns3-12.png
new file mode 100644
index 00000000..9ad51f70
--- /dev/null
+++ b/docs/_static/images/gns3-12.png
Binary files differ
diff --git a/docs/_static/images/gns3-13.png b/docs/_static/images/gns3-13.png
new file mode 100644
index 00000000..5f9dd783
--- /dev/null
+++ b/docs/_static/images/gns3-13.png
Binary files differ
diff --git a/docs/_static/images/gns3-14.png b/docs/_static/images/gns3-14.png
new file mode 100644
index 00000000..447fcafe
--- /dev/null
+++ b/docs/_static/images/gns3-14.png
Binary files differ
diff --git a/docs/_static/images/gns3-15.png b/docs/_static/images/gns3-15.png
new file mode 100644
index 00000000..956b9edb
--- /dev/null
+++ b/docs/_static/images/gns3-15.png
Binary files differ
diff --git a/docs/_static/images/gns3-16.png b/docs/_static/images/gns3-16.png
new file mode 100644
index 00000000..4f75ffab
--- /dev/null
+++ b/docs/_static/images/gns3-16.png
Binary files differ
diff --git a/docs/_static/images/gns3-17.png b/docs/_static/images/gns3-17.png
new file mode 100644
index 00000000..64eff002
--- /dev/null
+++ b/docs/_static/images/gns3-17.png
Binary files differ
diff --git a/docs/_static/images/gns3-20.png b/docs/_static/images/gns3-20.png
new file mode 100644
index 00000000..17d92dea
--- /dev/null
+++ b/docs/_static/images/gns3-20.png
Binary files differ
diff --git a/docs/_static/images/gns3-21.png b/docs/_static/images/gns3-21.png
new file mode 100644
index 00000000..e461016a
--- /dev/null
+++ b/docs/_static/images/gns3-21.png
Binary files differ
diff --git a/docs/_static/images/gns3-215.png b/docs/_static/images/gns3-215.png
new file mode 100644
index 00000000..fde268ba
--- /dev/null
+++ b/docs/_static/images/gns3-215.png
Binary files differ
diff --git a/docs/_static/images/gns3-22.png b/docs/_static/images/gns3-22.png
new file mode 100644
index 00000000..6ed52c1d
--- /dev/null
+++ b/docs/_static/images/gns3-22.png
Binary files differ
diff --git a/docs/appendix/vyos-on-gns3.rst b/docs/appendix/vyos-on-gns3.rst
new file mode 100644
index 00000000..f17715b2
--- /dev/null
+++ b/docs/appendix/vyos-on-gns3.rst
@@ -0,0 +1,175 @@
+.. _vyos-on-gns3:
+
+VyOS on GNS3
+############
+
+Sometimes you may want to test VyOS in a lab environment.
+`GNS3 <http://www.gns3.com>`__ is a network emulation software you
+might use for it.
+
+This guide will provide the necessary steps for installing
+and setting up VyOS on GNS3.
+
+Requirements
+------------
+
+The following items are required:
+
+* A VyOS installation image (.iso file).
+ `Here <https://docs.vyos.io/en/latest/install.html#download>`__ you
+ can find how to get it.
+
+* A working GNS3 installation. For further information see the
+ `GNS3 documentation <https://docs.gns3.com/>`__.
+
+.. _vm_setup:
+
+VM setup
+--------
+
+First, a virtual machine (VM) for the VyOS installation must be created
+in GNS3.
+
+Go to the GNS3 **File** menu, click **New template** and choose select
+**Manually create a new Template**.
+
+.. figure:: /_static/images/gns3-01.png
+
+Select **Quemu VMs** and then click on the ``New`` button.
+
+.. figure:: /_static/images/gns3-02.png
+
+Write a name for your VM, for instance "VyOS", and click ``Next``.
+
+.. figure:: /_static/images/gns3-03.png
+
+Select **qemu-system-x86_64** as Quemu binary, then **512MB** of RAM
+and click ``Next``.
+
+.. figure:: /_static/images/gns3-04.png
+
+Select **telnet** as your console type and click ``Next``.
+
+.. figure:: /_static/images/gns3-05.png
+
+Select **New image** for the base disk image of your VM and click
+``Create``.
+
+.. figure:: /_static/images/gns3-06.png
+
+Use the defaults in the **Binary and format** window and click
+``Next``.
+
+.. figure:: /_static/images/gns3-07.png
+
+Use the defaults in the **Qcow2 options** window and click ``Next``.
+
+.. figure:: /_static/images/gns3-08.png
+
+Set the disk size to 2000 MiB, and click ``Finish`` to end the **Quemu
+image creator**.
+
+.. figure:: /_static/images/gns3-09.png
+
+Click ``Finish`` to end the **New QEMU VM template** wizard.
+
+.. figure:: /_static/images/gns3-10.png
+
+Now the VM settings have to be edited.
+
+Being again at the **Preferences** window, having **Qemu VMs**
+selected and having our new VM selected, click the ``Edit`` button.
+
+.. figure:: /_static/images/gns3-11.png
+
+In the **General settings** tab of your **QEMU VM template
+configuration**, do the following:
+
+* Click on the ``Browse...`` button to choose the **Symbol** you want to
+ have representing your VM.
+* In **Category** select in which group you want to find your VM.
+* Set the **Boot priority** to **CD/DVD-ROM**.
+
+.. figure:: /_static/images/gns3-12.png
+
+At the **HDD** tab, change the Disk interface to **sata** to speed up
+the boot process.
+
+.. figure:: /_static/images/gns3-13.png
+
+At the **CD/DVD** tab click on ``Browse...`` and locate the VyOS image
+you want to install.
+
+.. figure:: /_static/images/gns3-14.png
+
+.. note:: You probably will want to accept to copy the .iso file to your
+ default image directory when you are asked.
+
+In the **Network** tab, set **0** as the number of adapters, set the
+**Name format** to **eth{0}** and the **Type** to **Paravirtualized
+Network I/O (virtio-net-pci)**.
+
+.. figure:: /_static/images/gns3-15.png
+
+In the **Advanced** tab, unmark the checkbox **Use as a linked base
+VM** and click ``OK``, which will save and close the **QEMU VM template
+configuration** window.
+
+.. figure:: /_static/images/gns3-16.png
+
+At the general **Preferences** window, click ``OK`` to save and close.
+
+.. figure:: /_static/images/gns3-17.png
+
+
+.. _vyos_installation:
+
+VyOS installation
+-----------------
+
+* Create a new project.
+* Drag the newly created VyOS VM into it.
+* Start the VM.
+* Open a console.
+ The console should show the system booting. It will ask for the login
+ credentials, you are at the VyOS live system.
+* `Install VyOS <https://docs.vyos.io/en/latest/install.html#install>`__
+ as normal (that is, using the ``install image`` command).
+
+* After a successful installation, shutdown the VM with the ``poweroff``
+ command.
+
+* **Delete the VM** from the GNS3 project.
+
+The *VyOS-hda.qcow2* file now contains a working VyOS image and can be
+used as a template. But it still needs some fixes before we can deploy
+VyOS in our labs.
+
+.. _vyos_vm_configuration:
+
+VyOS VM configuration
+---------------------
+
+To turn the template into a working VyOS machine, further steps are
+necessary as outlined below:
+
+**General settings** tab: Set the boot priority to **HDD**
+
+.. figure:: /_static/images/gns3-20.png
+
+**CD/DVD** tab: Unmount the installation image file by clearing the
+**Image** entry field.
+
+.. figure:: /_static/images/gns3-21.png
+
+Set the number of required network adapters, for example **4**.
+
+.. figure:: /_static/images/gns3-215.png
+
+**Advanced** settings tab: Mark the checkbox **Use as a linked
+base VM** and click ``OK`` to save the changes.
+
+.. figure:: /_static/images/gns3-22.png
+
+The VyOS VM is now ready to be deployed.
+
diff --git a/docs/index.rst b/docs/index.rst
index 5a4c44ac..558f7ccf 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -61,6 +61,7 @@ VyOS User Guide
appendix/migrate-from-vyatta
appendix/command-scripting
appendix/http-api
+ appendix/vyos-on-gns3
.. toctree::