Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create vBNG virtual machine for KVM #31

Closed
11 of 14 tasks
lixuna opened this issue Jul 12, 2018 · 4 comments
Closed
11 of 14 tasks

Create vBNG virtual machine for KVM #31

lixuna opened this issue Jul 12, 2018 · 4 comments

Comments

@lixuna
Copy link
Collaborator

lixuna commented Jul 12, 2018

Goal: vBNG VNF VM for KVM

Tasks:

  • Update vBNG build/runtime code to omit the need for vAAA and vDHCP
    • vAAA dependent code removed
    • vDHCP dependent code removed
  • DEFERRED: Investigate PCI pass-through (if large effort, create a new ticket)
    • SR-IOV or Passthrough Mode
    • DEFERRING. Will do another round of tests after this is figured out.
  • Update original vBNG install/build to work in KVM/vagrant environment
  • Bring up vBNG VM on VM runtime (eg. libvirt + KVM)
  • Create smoke test vm for checking packets pass through the BNG VM
  • DEFERRED: Save VM with vBNG software installed
    • If needed, Update scripts/vagrant config for using a saved vm
    • Document saving of vBNG VM (if anything is not generic)
    • Create minimal script for saving vBNG VM
  • Validate test requirements
    • Investigate need for vxlan
    • investigate VMs required for testing
taylor pushed a commit that referenced this issue Jul 13, 2018
@michaelspedersen
Copy link
Collaborator

Configuration notes for configuring VXLAN endpoints in two different VMs:

vVPP:
  vagrant@vVPP:~$ cat /etc/vpp/setup.gate
  set int state GigabitEthernet0/7/0 up
  set interface ip address GigabitEthernet0/7/0 10.1.0.70/24
  create vxlan tunnel src 10.1.0.70 dst 10.1.0.10 vni 10
  set interface l2 bridge vxlan_tunnel0 10 1
  set bridge-domain arp term 10
  loopback create
  set int l2 bridge loop0 10 bvi 2
  set int ip address loop0 20.0.0.254/24
  set int mac address loop0 de:ad:0a:00:00:00
  set int state loop0 up
  clear l2fib

vBNG:
  root@vBNG:/home/vagrant# cat /etc/vpp/setup.gate
  set int state GigabitEthernet0/7/0 up
  set interface ip address GigabitEthernet0/7/0 10.1.0.10/24
  create vxlan tunnel src 10.1.0.10 dst 10.1.0.70 vni 10
  set interface l2 bridge vxlan_tunnel0 10 1
  set bridge-domain arp term 10
  loopback create
  set int l2 bridge loop0 10 bvi 2
  set int ip address loop0 20.0.0.253/24
  set int mac address loop0 de:ad:0b:00:00:00
  set int state loop0 up
  clear l2fib

This is not the intended configuration of vBNG, as it is not supposed to contain any VXLAN endpoints. For now it is more of a proof-of-concept configuration.

michaelspedersen added a commit that referenced this issue Jul 24, 2018
No VXLAN and connected via TCP tunnel on localhost (low performance)
michaelspedersen added a commit that referenced this issue Jul 26, 2018
Added VPP host network and vhost-user interfaces to vBNG
michaelspedersen added a commit that referenced this issue Jul 27, 2018
vBNG and Pktgen VMs updated to use vhost-user for better performance
@michaelspedersen
Copy link
Collaborator

Investigate PCI pass-through:

  • Put on hold for now
  • We will likely create a separate ticket for this at a later time
  • Does not work well with Mellanox Connectx-3
  • Not yet tested with Mellanox Connectx-4

Save VM with vBNG software installed:

  • Not yet done
  • Idea is to create a common VPP image
  • Currently vBNG functionality is added through a few lines of VPP configuration

Validate test requirements:

  • VXLAN not needed yet (box-by-box).
  • Current solution uses UDP packets (IPv4)
  • 2 VMs requires: vBNG and Pktgen (since we don't need VXLAN)

michaelspedersen added a commit that referenced this issue Jul 27, 2018
vBNG and Pktgen VMs updated to use vhost-user for better performance
@taylor
Copy link
Collaborator

taylor commented Aug 1, 2018

SR-IOV or Passthrough Mode

  • DEFERRING. Will do another round of tests after this is figured out.

@taylor
Copy link
Collaborator

taylor commented Aug 1, 2018

DEFERRED: Save VM with vBNG software installed

  • If needed, Update scripts/vagrant config for using a saved vm
  • Document saving of vBNG VM (if anything is not generic)
  • Create minimal script for saving vBNG VM

Will create another ticket for a base VPP VM as well as an additional ticket for saving the vBNG VM

@lixuna lixuna closed this as completed Aug 1, 2018
michaelspedersen added a commit that referenced this issue Aug 1, 2018
Added CNF version and created scripts to handle VM and container tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants