GithubHelp home page GithubHelp logo

chrispsommers / p4tc-tutorial-pub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p4tc-dev/p4tc-tutorial-pub

0.0 0.0 0.0 120 KB

License: Apache License 2.0

Shell 24.41% C 41.40% Emacs Lisp 21.42% Vim Script 12.77%

p4tc-tutorial-pub's Introduction

P4TC tutorial

Welcome to the P4TC tutorial! This repository will help you get started with the P4TC project.

Before you start, install required software. Also, you may want to visit p4tc.dev to learn more about the P4TC project.

Required software

Before you start, you have to build your own virtual machine, where you will run P4TC exercises.

First, install Vagrant and VirtualBox on your OS.

You also need to install the following Vagrant plugin:

vagrant plugin install vagrant-disksize
vagrant plugin install vagrant-reload
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-scp

There is currently one flavor of the VM.

In the future we will support additional flavors.

Examples flavor

The "examples" flavor will download and install every part of the p4tc infrastructure that is compiled as a .deb file and compile and install libbpf and iproute2. The examples flavor is the default. The "examples" flavor is intended for people interested in running p4tc examples. The p4c compiler is not available in this flavor.

To use the "examples" flavor, clone this repository and bootstrap the VM. The "examples" flavor should take about 10-20 minutes to setup.

git clone https://github.com/p4tc-dev/p4tc-tutorial-pub.git
cd p4tc-tutorial/vm
vagrant up 

All flavors will install all the required software per flavor along with downloading this repository to the VM under /home/p4tc/p4tc-tutorial-pub. At the end of script's execution, the VM will be rebooted to apply the new configuration. You might need to wait a few minutes before you will be able to log in to the VM. Once the VM is ready, you can SSH to it with:

ssh -p 2222 [email protected]
# password: p4tc

or simply if you are already in the directory vm:

vagrant ssh `flavor`

e.g.:

vagrant ssh examples

You can also use VirtualBox GUI to access VM.

p4tc-tutorial-pub's People

Contributors

evhalep avatar osinstom avatar jhsmt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.