From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id AD7B31B24B for ; Fri, 20 Oct 2017 18:55:12 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2017 09:55:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,405,1503385200"; d="scan'208,217";a="911980162" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.255.30.27]) ([10.255.30.27]) by FMSMGA003.fm.intel.com with ESMTP; 20 Oct 2017 09:54:51 -0700 To: =?UTF-8?B?546L5b+X5YWL?= , "avi.cohen@huawei.com" , "dpdk-ovs@lists.01.org" , "users@dpdk.org" References: <6DAF063A35010343823807B082E5681F41D22305@mbx05.360buyAD.local> From: "Tan, Jianfeng" Message-ID: <0d678703-5fbc-c999-0009-4b4b1dfcb20a@intel.com> Date: Sat, 21 Oct 2017 00:54:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <6DAF063A35010343823807B082E5681F41D22305@mbx05.360buyAD.local> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] VIRTIO for containers X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 16:55:13 -0000 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 > >