P4: Installation
In this blog post we will be setting up P4 lang environment for getting started with programmable data planes. SDN allows for programmable control planes, on the contrary P4 allows for programmable data planes. This is helpful for many reasons.
Clone the following repository: P4 lang
To build the virtual machine:
- Install Vagrant and VirtualBox
cd vm
vagrant up
- Log in with username
p4
and passwordp4
and issue the commandsudo shutdown -r now
- When the machine reboots, you should have a graphical desktop machine with the required software pre-installed.
Note: You may be prompted to enter the username and password and it might not work, this is because the prompt is for ubuntu server. If you look at log file or your terminal, installation is still in progress. So don’t panic. You can follow this issue which I raised here.
In next series of posts I will be dicussing about solutions to the exercises provided in the P4 tutorials. While you don’t need to have any prior experience in P4 syntax and constructs, as I will be briefing on the bare minimum required for a particular exercise, however a brief idea of what P4 does might be necessary.