All Projects → clearcontainers → sriov

clearcontainers / sriov

Licence: Apache-2.0 License
Simple standalone Docker Plugin implementation to demonstrate Clear Containers with SRIOV

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to sriov

sriov-cni
DPDK & SR-IOV CNI plugin
Stars: ✭ 209 (+736%)
Mutual labels:  nfv, sriov
vga-passthrough
Up to date (2021) reference for setting up a VGA passthrough on (Ubuntu) Linux.
Stars: ✭ 171 (+584%)
Mutual labels:  vfio
Runtime Spec
OCI Runtime Specification
Stars: ✭ 2,316 (+9164%)
Mutual labels:  runc
vnf-asterisk
Documentation, configuration, reference material and other information around an Asterisk-based VNF
Stars: ✭ 38 (+52%)
Mutual labels:  nfv
project-template
Template Files for New OCI Projects
Stars: ✭ 14 (-44%)
Mutual labels:  runc
coord-sim
Lightweight flow-level simulator for inter-node network and service coordination (e.g., in cloud/edge computing or NFV).
Stars: ✭ 33 (+32%)
Mutual labels:  nfv
Cri O
Open Container Initiative-based implementation of Kubernetes Container Runtime Interface
Stars: ✭ 3,758 (+14932%)
Mutual labels:  runc
LEDs-single-gpu-passthrough
Single GPU passthrough guide 单显卡直通教程资源
Stars: ✭ 87 (+248%)
Mutual labels:  vfio
katana-slice manager
5G Network E2E Slice Manager
Stars: ✭ 61 (+144%)
Mutual labels:  nfv
docker-sriov-plugin
Docker networking plugin for SRIOV and passthrough interfaces
Stars: ✭ 70 (+180%)
Mutual labels:  sriov
podman-static
static podman binaries and container image
Stars: ✭ 108 (+332%)
Mutual labels:  runc
vfio-ioctls
Safe wrappers for VFIO
Stars: ✭ 14 (-44%)
Mutual labels:  vfio
iovisor-ovn
IOVisor OVN integration
Stars: ✭ 62 (+148%)
Mutual labels:  nfv
susanow
Thread based NFVi on DPDK
Stars: ✭ 27 (+8%)
Mutual labels:  nfv
sdn-nfv-papers
This is a paper list about Resource Allocation in Network Functions Virtualization (NFV) and Software-Defined Networking (SDN).
Stars: ✭ 40 (+60%)
Mutual labels:  nfv
Ctop
Top-like interface for container metrics
Stars: ✭ 12,188 (+48652%)
Mutual labels:  runc
k8s-rdma-sriov-dev-plugin
Kubernetes Rdma SRIOV device plugin
Stars: ✭ 92 (+268%)
Mutual labels:  sriov
opnfv-cloudify-clearwater
vIMS Clearwater deployment and lifecycle management with Cloudify Orchestrator
Stars: ✭ 32 (+28%)
Mutual labels:  nfv
Book k8sInfra
< 컨테이너 인프라 환경 구축을 위한 쿠버네티스/도커 >
Stars: ✭ 176 (+604%)
Mutual labels:  runc
go-runc
runc bindings for Go
Stars: ✭ 115 (+360%)
Mutual labels:  runc

sriov

Simple standalone Docker Plugin implementation to demonstrate Clear Containers with SRIOV

For more details about Clear Containers https://github.com/clearcontainers https://clearlinux.org/clear-containers

This plugin supports Docker containers with runc or Clear Containers as the OCI runtime. The plugin is responsible for assigning a SRIOV Virtual Function (VF) into the container namespace.

In the case of runc containers, the VF is directly usable by the container.

In the case of clear containers, if clear containers detect a VF in the namespace, the runtime will unbind the VF from the host, bind it to VFIO and assign it to the clear container using PCI device pass thro. The clear container runtime which support SRIOV can be found at https://github.com/clearcontainers/runtime

How to use this plugin

  1. Build this plugin.

     go build
    
  2. Ensure that your plugin is discoverable https://docs.docker.com/engine/extend/plugin_api/#/plugin-discovery

     sudo cp sriov.json /etc/docker/plugins
    
  3. Start the plugin

     sudo ./sriov &
    
  4. Identify the network interface name of the SRIOV NIC Physical Function (PF) that is connected to the physical network of interest.

  5. Try plugin with Docker runc containers

     #Create a virtual network on physical network b2b with vlanid 100
     sudo docker network create -d sriov --internal --opt pf_iface=eth0 --opt vlanid=100 vfnet
    
     #Create container on the network vfnet
     sudo docker run --net=vfnet -itd busybox top
    
     #Check that your containers are running
     sudo docker ps
    
     #Cleanup
     sudo docker stop $(sudo docker ps -a -q)
     sudo docker rm $(sudo docker ps -a -q)
     sudo docker network rm vfnet
    
  6. Try plugin with Docker Clear containers For Clear Containers, the steps to create network and container are essentially the same. However, before we create Clear Container using SRIOV, host OS needs to boot with intel_iommu=on and have vfio-pci module loaded.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].