Skip to content

Setup on Virtual Machine

Cody Doucette edited this page Oct 2, 2018 · 12 revisions

This page is a work in progress.

Table of Contents

Obtain VirtualBox

Obtain a VM with Gatekeeper

Set up additional interfaces.

Configure Gatekeeper

Setup hugepages:

 $ echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

In lua/if_map.lua, set the mapping for enp0s8 to be "net_af_packet0" and the mapping for enp0s9 to be "net_af_packet1." It should look like:

<add></add>

If running gatekeeper as a Gatekeeper server, then open lua/gatekeeper_config.lua and set n_lcores to 1. If running gatekeeper as a Grantor server, open lua/gt.lua and set n_lcores to 1 there instead.

In lua/net.lua, set front_ports to be &#123;&quot;enp0s8&quot;&#125; and back_ports to be &#123;&quot;enp0s9&quot;&#125;. Then, front_mtu and back_mtu to be 1500 (or no more than 1500).

In lua/cps.lua, set kni_kmod_path to be /home/vagrant/gatekeeper/dependencies/dpdk/build/kmod/rte_kni.ko:

<add></add>

Run Gatekeeper

 $ sudo ./build/gatekeeper --vdev net_af_packet0,iface=enp0s8 --vdev net_af_packet1,iface=enp0s9
Clone this wiki locally