---
# System prepended metadata

title: Start Orchestrator
tags: [3. Source Code]

---

# Start Orchestrator
###### tags: `Tesis` `Python`

[TOC]

---
![image](https://hackmd.io/_uploads/SkzAJDfgC.png)

![image](https://hackmd.io/_uploads/B17exDMlC.png)

## Quick Start
### Step 1: Provision the AGW VM

```
HOST [magma]$ echo "* 192.168.0.0/16" | sudo tee -a /etc/vbox/networks.conf
HOST [magma]$ echo "* 3001::/64" | sudo tee -a /etc/vbox/networks.conf
HOST [magma]$ cd lte/gateway
HOST [magma/lte/gateway]$ vagrant up magma
```

### Step 2: Build Orchastrator

```
HOST [magma]$ cd orc8r/cloud/docker
HOST [magma/orc8r/cloud/docker]$ ./build.py --all
```

![image](https://hackmd.io/_uploads/BJxTuvrzeA.png)

### Step 3: start Orchastrator
this command is to run the docker and docker-compose programe, make sure you have installed docker and docker-compose, run this command to check docker:

```
docker version
```

![image](https://hackmd.io/_uploads/SyFfiVze0.png)

```
docker compose version
```
![image](https://hackmd.io/_uploads/ByLDjEMgA.png)

```
docker-compose version
```
![image](https://hackmd.io/_uploads/Hk-to4Gl0.png)

```
HOST [magma/orc8r/cloud/docker]$ ./run.py
```
![image](https://hackmd.io/_uploads/SkcQq4zx0.png)

```
HOST [magma/orc8r/cloud/docker]$ ./run.py --metrics
```
![image](https://hackmd.io/_uploads/BJqE24Mx0.png)

if have permision isue try to run in root by use `su` command.

---
### Step 4: Check certs and import to browser
```
ls ../../../.cache/test_certs
```
![image](https://hackmd.io/_uploads/r1Eq2EMxA.png)
```
HOST [magma/orc8r/cloud/docker] sudo chown ${USER}:${USER} ../../../.cache/test_certs/admin_operator.key.pem
HOST [magma/orc8r/cloud/docker] sudo chown ${USER}:${USER} ../../../.cache/test_certs/admin_operator.pfx
```
![image](https://hackmd.io/_uploads/S1yeaNfx0.png)
then:
If you're using GNOME desktop environment, you can use nautilus command:
```
HOST [magma/orc8r/cloud/docker]$ nautilus ../../../.cache/test_certs
```
![image](https://hackmd.io/_uploads/r1Jz04GeA.png)

If you're using macOS, you can use open command:
```
HOST [magma/orc8r/cloud/docker]$ open ../../../.cache/test_certs
```
If you use Firefox, you'll have to import this .pfx file into your browser's installed client certificates. See [here](https://support.globalsign.com/customer/en/portal/articles/1211486-install-client-digital-certificate---firefox-for-windows) for instructions.

![image](https://hackmd.io/_uploads/SJGrJSGgR.png)
After starting the Orchestrator with HOST `[magma/orc8r/cloud/docker]$ ./run.py` and importing `admin_operator.pfx`, you should be able to visit the Swagger UI at https://localhost:9443/swagger/v1/ui.

![image](https://hackmd.io/_uploads/H1YOkrGe0.png)
### Reference

* https://magma.github.io/magma/docs/basics/quick_start_guide
* https://magmacore.org/blog/magma-installation-on-ubuntu-20-04/