From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C60FEA0487 for ; Thu, 4 Jul 2019 16:43:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F4241BE52; Thu, 4 Jul 2019 16:43:26 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 9A4AB1BE4E for ; Thu, 4 Jul 2019 16:43:25 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id q4so3006651pgj.8 for ; Thu, 04 Jul 2019 07:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZXzBXZfsZf0Gwp1o5Cr9znQkJkxleFXsu1X5sogfHs0=; b=Qz9kG6zztnGcpl+j4JHXpCix96gLS4TvJ8X4WprcRfya+ASZRinCvuEbtvdtLv9hFK QU1DEcH6AOp+3T0URAOyhywpyHo34JPHPjv7ebmYkQTb7MLL2j9R3GO5ypuZJEKl0RnJ hfXGbJTDwHxxnQ+d96qtJVa2vAnm+DR6WbOngvGrSqyY4YkQHyYMrvb4QcN1GQo8XX+X +nd3lsnWsteA2NnGZTXhNvhLWgXi0VsCJv4+SjiQIw7p9hyZPvHr7b0LRsLhGq5CKoR1 dPmXwv8zVWJZtgPKXAm23I3eTCmU5+kvuNuSv2YBXNrzLUoaSnXUg3/944wWILdcoYl2 BxFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZXzBXZfsZf0Gwp1o5Cr9znQkJkxleFXsu1X5sogfHs0=; b=TQ5ztYVdoeVFaYDmYyWB32dJBdIHd2aYft+5/iiPhqwvBlMpraQWAsadN6aWBWgaKE vU/fnAKhSuG9EBloITQWX/qBhgvYngnGGjI6Z0EjZ1o0SeSQ68gmJ9IoWh2FkyIciYKP QRu5YT2WbjN0EGK1Hn+EG9W2poowFHpG4U9W9U9TRellVK8NnCxqohIEqj9bOHph61Z4 05S4+oTNyPoM0rNAucQkJaksY+y8Fv7AwTr/we4sXsX07PixBjzcRgV3bTffG2sAl2qo gb86YNqUbP3h+3eFe7V0/1JlMy2LQzRmgU3IwCMEFHWZIZVQdZiOCfnAWH+uIVMOoIjv gOjA== X-Gm-Message-State: APjAAAWlBORRhpd7klVgJexRA98BOUwpUd55uCVxJkQmdBM/rFbmzMrz 98aLnfEudQlaeYzXkPM66lh79Zpii+o= X-Google-Smtp-Source: APXvYqzKqt5IAMXha+9BUJkWrJeIt6Yl8HFTzsBtmORMd89L9ZYMfUWzFIOwdPYxBCyi184X/T9AHQ== X-Received: by 2002:a17:90a:2228:: with SMTP id c37mr20485622pje.9.1562251404792; Thu, 04 Jul 2019 07:43:24 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id k6sm6391238pfi.12.2019.07.04.07.43.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 07:43:24 -0700 (PDT) Date: Thu, 4 Jul 2019 07:43:20 -0700 From: Stephen Hemminger To: Shailja Pandey Cc: "dev@dpdk.org" Message-ID: <20190704074320.7208cf31@hermes.lan> In-Reply-To: <070016f7-4015-1088-1d84-da3d164d33e4@iitd.ac.in> References: <070016f7-4015-1088-1d84-da3d164d33e4@iitd.ac.in> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] Running dpdk application inside virtual machine created on VirtualBox X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 4 Jul 2019 11:28:13 +0530 Shailja Pandey wrote: > Hi, >=20 > I am trying to run dpdk application inside a virtual machine (Ubuntu=20 > 16.04) deployed in Oracle Virtualbox. The host machine is also the same=20 > Ubuntu 16.04. I am running l2fwd application in the VM and the packets=20 > are being generated using pktgen-DPDK running on other physical machine.= =20 > The issue I am facing is=C2=A0 that I am not able to redirect packets=20 > reaching the host machine to the virtual machine and hence the l2fwd=20 > application running inside VM shows zero packet counts. I am=20 > successfully binding network interfaces on virtual machine to use=20 > DPDK-compatible driver. I think I am missing something while binding the= =20 > physical network interfaces to the virtual machine. Some discussion=20 > forum suggests using device passthrough to achieve this. I am not able=20 > to figure out exactly what is to be done. Any help would be appreciated. >=20 > Output of lspci | grep Ether : >=20 > 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5720=20 > Gigabit Ethernet PCIe > 02:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5720=20 > Gigabit Ethernet PCIe > 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5720=20 > Gigabit Ethernet PCIe > 03:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5720=20 > Gigabit Ethernet PCIe > 04:00.0 Ethernet controller: Intel Corporation Ethernet Controller=20 > 10-Gigabit X540-AT2 (rev 01) > 04:00.1 Ethernet controller: Intel Corporation Ethernet Controller=20 > 10-Gigabit X540-AT2 (rev 01) > 05:00.0 Ethernet controller: Intel Corporation Ethernet Controller XL710= =20 > for 40GbE QSFP+ (rev 02) > 05:00.1 Ethernet controller: Intel Corporation Ethernet Controller XL710= =20 > for 40GbE QSFP+ (rev 02) >=20 >=20 Most virtualization environments impose network spoofing rules such that a guest is only allowed to receive and send packets for its own mac address. I am not familiar with Virtual Box settings, but there maybe a way to override this.