From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by dpdk.org (Postfix) with ESMTP id 450F437A6 for ; Wed, 10 Feb 2016 14:45:21 +0100 (CET) Received: by mail-lb0-f176.google.com with SMTP id bc4so10412148lbc.2 for ; Wed, 10 Feb 2016 05:45:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nickallen-org.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=qqf/CbZCum7woZYN1cDuNXRgC/T/+e8CWXzFneXN5L4=; b=ypv+wmzOO5jEkol7q3rki+G/DxL0QQis91BuirrT1qJOhCnAtQ2WpOWub+hKtKPTFo 9R9Vbz3gKrVqHFWird3/PE4YtueMCyk4wkW6/2Kf7mqB5eZp0KmkckizkP8//iYit12S wssracslloipH99F8FfFKzC+eJpche/TognODlFZeBpVgmnz2pMZZGzIIp/KSmnMJC5h cCTrP3GUJsi7j9b+qV7aigwle4JFgcheP9DdYDJT1y0sxNCM1NIJ9Vhr833Uf9JXTylw W7PVn1DZbHNwkIF3f92NsXXsnpQ45/ip8Y0qcKzrIP+iunZ4wT8fLoKJ1RU38jHKOyb9 J9uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=qqf/CbZCum7woZYN1cDuNXRgC/T/+e8CWXzFneXN5L4=; b=HZfVPwnsI5gODGcyqHywkDI2DrKeK2TOUC6xjSQU3ZkavROns9oQbKvLdB+Oc+MiGA TT/LZcanifkMcWwydJCQR4Lrh6jOEk2w20fTsjQi2NT3rVFtOS1fFQp2vXzKmdQzxZ8T /xRd1TEYrbMCznzbmjpcTPFKfmvJO1xtslC0njIRgCZywTxWXZrZaNu6Iu5gNGV6vmfj AKauYgu0L6qmASSell0rcTiMjrSE/zgdpFYayCrjP3wnnz4DVMxPhqoNEb+VQ6cgr69Y iJBwxG7BMi/0YIidO7IJFXUr0/LEmJQGHyH7Ws1L3Ir5tYFbgoDN0+13jKhPcZ6MiO0h O5TA== X-Gm-Message-State: AG10YOSphQUr5nEH2B+YrvOGMgs6yKH4EjsE3FwSSnpukEtxzcMJI8LQsb4SGk1JPA7UoBip+driAiKxcqeROQ== MIME-Version: 1.0 X-Received: by 10.112.63.200 with SMTP id i8mr15819269lbs.5.1455111920743; Wed, 10 Feb 2016 05:45:20 -0800 (PST) Received: by 10.112.52.200 with HTTP; Wed, 10 Feb 2016 05:45:20 -0800 (PST) Date: Wed, 10 Feb 2016 08:45:20 -0500 Message-ID: From: Nick Allen To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-users] Unable to Bind Device in VirtualBox VM X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2016 13:45:21 -0000 Problem: I am unable to bind a virtual NIC using DPDK 2.2.0 that I created inside of a Ubuntu 14.04 guest running in VirtualBox 5.0.14 on OS X 10.11.3 on a 2015 Macbook Pro. Here is the error that I am seeing. $ ./tools/dpdk_nic_bind.py --bind=vfio-pci 00:11.0 Error: bind failed for 0000:00:11.0 - Cannot bind to driver vfio-pci $ dmesg | tail -1 [ 413.613076] vfio-pci: probe of 0000:00:11.0 failed with error -22 Note: Based on my research, this is most often caused by not adding 'iommu=pt intel_iommu=on' to the kernel boot options. I believe that this is not the problem in my case. Background: I have been trying to follow the instructions provided at http://plvision.eu/blog/deploying-intel-dpdk-in-oracle-virtualbox/. First, I created the VM inside of VirtualBox and created two virtual NICs that are bridged using the 'Intel PRO/1000 MT Server (82545EM)'. I also turned on 'Promiscuous Mode: Allow All' for each. I then ran the following and then manually installed Ubuntu 14.04. VBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.1 1 VBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.2 1 After installing all of the dependencies, I ran the following commands to build DPDK on the VM. curl http://dpdk.org/browse/dpdk/snapshot/dpdk-2.2.0.tar.gz | tar -xvz cd dpdk-2.2.0 export DPDK_DIR=`pwd` sed 's/CONFIG_RTE_BUILD_COMBINE_LIBS=n/CONFIG_RTE_BUILD_COMBINE_LIBS=y/' -i config/common_linuxapp make install T=x86_64-ivshmem-linuxapp-gcc cd x86_64-ivshmem-linuxapp-gcc EXTRA_CFLAGS="-g -Ofast" make -j10 I appended the following to '/etc/default/grub'. I then ran 'update-grub2 && reboot'. GRUB_CMDLINE_LINUX="default_hugepagesz=1G hugepagesz=1G hugepages=16 iommu=pt intel_iommu=on" After the reboot I can see that the options took effect. $ cat /proc/cmdline BOOT_IMAGE=/vmlinuz-3.19.0-25-generic root=/dev/mapper/dpdk1--vg-root ro default_hugepagesz=1G hugepagesz=1G hugepages=16 iommu=pt intel_iommu=on I then using the 'tools/setup.sh' script to do the following: [18] Insert VFIO module [20] Setup hugepage mappings for non-NUMA systems [25] Setup VFIO permissions [24] Bind Ethernet device to VFIO module I am not able to bind the interface. I get the same result when I manually run the commands instead of using the 'tools/setup.sh' script. root@dpdk1:/home/vagrant/dpdk-2.2.0# ./tools/dpdk_nic_bind.py --status Network devices using DPDK-compatible driver ============================================ Network devices using kernel driver =================================== 0000:00:08.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth0 drv=e1000 unused=vfio-pci *Active* Other network devices ===================== 0000:00:11.0 '82545EM Gigabit Ethernet Controller (Copper)' unused=vfio-pci root@dpdk1:/home/vagrant/dpdk-2.2.0# ./tools/dpdk_nic_bind.py --bind=vfio-pci 00:11.0 Error: bind failed for 0000:00:11.0 - Cannot bind to driver vfio-pci root@dpdk1:/home/vagrant/dpdk-2.2.0# dmesg | tail -1 [ 2084.997657] vfio-pci: probe of 0000:00:11.0 failed with error -22 What am I doing wrong here? What else can I dig into?