Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Deploy Demo App on SONiC

    • Connect to SONiC

      Use serial console connect to SONiC device, serial param is below:

      Baud rate: 115200

      Data bit: 8

      Parity: None

      Stop bits: 1

      Contorol: None

    • Deploy Parsec server

      1. add system user parsec (NEED login by root)

        $ sudo useradd -m parsec

        $ sudo passwd parsec

        $ sudo usermod -s /bin/bash parsec

        $ sudo groupadd parsec-clients

      2. create necessary directorys (NEED login by root)

        $ sudo mkdir /var/lib/parsec

        $ sudo chown parsec:parsec /var/lib/parsec

        $ sudo chmod 700 /var/lib/parsec

        $ sudo mkdir /etc/parsec

        $ sudo chown parsec:parsec /etc/parsec

        $ sudo chmod 700 /etc/parsec

        $ sudo mkdir /usr/libexec/parsec

        $ sudo chown parsec:parsec /usr/libexec/parsec

        $ sudo chmod 700 /usr/libexec/parsec

        $ sudo mkdir /home/parsec/run/

        $ sudo chown parsec:parsec-clients /home/parsec/run/

        $ sudo chmod 750 /home/parsec/run/

      3. deploy files (NEED login by parsec)

        $ cd ~

        $ pwd

        /home/parsec

        $ cp xxx/parsec/target/release/parsec /usr/libexec/parsec

        $ chmod +x /usr/libexec/parsec/parsec

        $ cp xxx/parsec/config.toml /etc/parsec/config.toml

        Note: need unmark allow_root = true in config.toml.
      4. add service for systemctl (NEED login by root)

        $ sudo vim /etc/systemd/system/parsec.service
        [Unit]
        Description=Parsec Service
        Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/install_parsec_linux.html

        [Service]
        WorkingDirectory=/home/parsec/
        ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml

        [Install]
        WantedBy=multi-user.target

      5. start parsec servive (NEED login by root)

        $ sudo systemctl enable parsec.service

        $ sudo systemctl start parsec.service

    • Deploy Parsec Client

      1. import docker image
      parsec-client-v1.0-docker-aarch64
      1. .
      tar.
      1. $ sudo docker load < parsec-client-v1.0-docker-aarch64.tar

        $ sudo docker images

        $ sudo docker tag d396f7adeed3 parsec-client:v1.0

      2. run
      the image with --restart=always, then test the client work with parsec server
      1. image.

        $ sudo docker run --restart=always -d -p8300:8300 -v /home/parsec/run:/run/parsec parsec-client:v1.0

        $ curl -v -d '{"Name": "GoClient"}' 127.0.0.1:8300/client


      ...
      HTTP/1.1 200 OK
      ...
      1. create key pairs and export the public key
      , later the public key will import to Nvidia nano device
      1. .

        $ curl -v -d '{"Name": "GoClient"}' 127.0.0.1:8300/client

        $ curl -v -d '{"Name": "GoClient", "KeyName": "MyEncKey"}' 127.0.0.1:8300/keyenc

        $ curl -v -X GET -d '{"Name": "GoClient", "KeyName": "MyEncKey"}' 127.0.0.1:8300/key

    • Deploy NodeAuthServer

      1. deploy files

        $ sudo mkdir /usr/libexec/NodeAuth

        $ sudo cp xxx/NodeAuthServer /usr/libexec/NodeAuth

        $ sudo chmod +x /usr/libexec/NodeAuth/NodeAuthServer

      2. add service for systemctl

        $ sudo vim /etc/systemd/system/NodeAuthServer.service
        [Unit]
        Description=Node Auth Server

        [Service]
        WorkingDirectory=/usr/libexec/NodeAuth
        ExecStart=/usr/libexec/NodeAuth/NodeAuthServer

        [Install]
        WantedBy=multi-user.target

      3. start parsec servive

        $ sudo systemctl enable NodeAuthServer.service

        $ sudo systemctl start NodeAuthServer.service

    • Deploy k3s Server

      1. install and get
  • the server
  • , 192.168.0.118 is EdgeFaas device, 192.168.0.104 is PC.
  • Deploy Demo App on Nvidia Nano

    • Deploy Parsec Server

      1. prepared files directory structure

        parsec-server-aarch64/

            parsec

            config.toml

            parsec.service

      2. add system user parsec (NEED login by root)

        $ sudo useradd -m parsec

        $ sudo passwd parsec

        $ sudo usermod -s /bin/bash parsec

        $ sudo loginctl enable-linger parsec

        $ sudo groupadd parsec-clients

      3. create necessary directorys (NEED login by root)

        $ sudo mkdir /var/lib/parsec

        $ sudo chown parsec:parsec /var/lib/parsec

        $ sudo chmod 700 /var/lib/parsec

        $ sudo mkdir /etc/parsec

        $ sudo chown parsec:parsec /etc/parsec

        $ sudo chmod 700 /etc/parsec

        $ sudo mkdir /usr/libexec/parsec

        $ sudo chown parsec:parsec /usr/libexec/parsec

        $ sudo chmod 700 /usr/libexec/parsec

        $ sudo mkdir /home/parsec/run/

        $ sudo chown parsec:parsec-clients /home/parsec/run/

        $ sudo chmod 750 /home/parsec/run/

      4. deploy files (NEED login by parsec)

        $ cp xxx/parsec-server-aarch64/parsec /usr/libexec/parsec

        $ chmod +x /usr/libexec/parsec/parsec

        $ cp xxx/parsec-server-aarch64/config.toml /etc/parsec/config.toml

        $ mkdir -p ~/.config/systemd/user

        $ cp xxx/parsec-server-aarch64/parsec.service ~/.config/systemd/user

      5. start parsec servive (NEED login by parsec)

        $ systemctl --user enable parsec

        $ systemctl --user start parsec

    • Deploy docker

    • Deploy Parsec client

    • Deploy NodeAuthAgent

    • Deploy k3s agent

    • Deploy Triton Server 

    • Deploy Triton client

...