[dpdk-users] VIRTIO for containers

Tan, Jianfeng jianfeng.tan at intel.com
Fri Oct 20 18:54:50 CEST 2017


Hi Zhike,


On 10/20/2017 5:24 PM, 王志克 wrote:
> [dpdk-users] VIRTIO for containers
>
> I read this thread, and try to do the same way (legacy containers 
> connect to ovs+dpdk). However, I meet following error when creating 
> ovs port.
>
> /ovs-vsctl add-port br0 virtiouser0 -- set Interface virtiouser0 
> type=dpdk options:dpdk-devargs=net_virtio_user0,path=/dev/vhost-net/
>
> ovs-vsctl: Error detected while setting up 'virtiouser0': Error 
> attaching device 'net_virtio_user0,path=/dev/vhost-net' to DPDK.See 
> ovs-vswitchd log for details.
>
> ovs-vsctl: The default log directory is "/var/log/openvswitch".
>

It should not try to connect this file /dev/vhost-net if this file 
exists, instead it will use ioctls on it. So please check if you have 
vhost and vhost-net ko probed into kernel.

Thanks,
Jianfeng

> Debug shows that it calls virtio_user_dev_init()->vhost_user_setup(), 
> and failed in connect() with target /dev/vhost-net. The errno is 
> ECONNREFUSED.
>
> Below command indeed shows no one is listening.
>
> /lsof | grep vhost-net/
>
> //
>
> In kernel OVS, I guess qemu-kvm would listne to /dev/vhost-net. But 
> for ovs_dpdk and container, what extra work need be done? Appreciate 
> any help.
>
> Br,
>
> Wang Zhike
>
>



More information about the users mailing list