[dpdk-dev] DPDK passthrough to container in virtual machine

Periyasamy Palanisamy periyasamy.palanisamy at ericsson.com
Tue Oct 2 14:42:08 CEST 2018


Hi,

I'm trying to do OVS DPDK vhost port passthrough to a container resides in the VM.

Here are steps followed:

1. Add DPDK port into OVS integration bridge.
2. Bring up an Ubuntu VM using virsh with vhostuser interface configuration.
    <interface type='vhostuser'>
      <mac address='52:54:00:cd:ef:44'/>
      <source type='unix' path='/var/run/openvswitch/vhost-user-2' mode='client'/>
      <model type='virtio'/>
      <driver queues='4'/>
      <alias name='net2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/>
    </interface>
3. In the VM, convert this virtio port into DPDK network device.

How this DPDK interface can attached with docker container ?
After the configuration, I would like to run a sample DPDK application (example: testpmd) on the container.

Thanks,
Periyasamy




More information about the dev mailing list