From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mail.openembedded.org (Postfix) with ESMTP id 31A486011B for ; Tue, 17 Nov 2015 12:24:20 +0000 (UTC) Received: by wmww144 with SMTP id w144so23288729wmw.0 for ; Tue, 17 Nov 2015 04:24:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=OitwUPlltCuHRL+rcxLIvogydxQgJvhcL6ekiVnHwzE=; b=wmg7MWvjFGwHE8XOnFCInJeC1Fk2O1ILGDlftX62QbDqgY5/ZuAJeqGqQRr/S0oa/Y kUg1BCTHBP7zK3E1LodYTAKuubM0ncrFSqaOsNwhf+S4Jmb8IzlheNPnBI4viA/JIebz nHacgvn2hUXJqac0d2X/cbpLYefrZy55siZlvF0H2kGO9IBFJNQjVcslUj+WJuEozA5k Ef1X9GqnKwdkPBGusOjEChFS10zFz+/Dmz4KrjLgSw7Msgzfqt6mv5DQmV2CI/gO5BAd 7c/FPizxoWgg3PcNjSgRy4rWOZtIRR60q6EBdOIkLMGsTlq37tFe9HPGRQR0p5vaUnYl daLw== X-Received: by 10.28.126.215 with SMTP id z206mr2424023wmc.71.1447763061038; Tue, 17 Nov 2015 04:24:21 -0800 (PST) Received: from minint-s4ms3ka.neratec.local (mail.neratec.com. [46.140.151.2]) by smtp.gmail.com with ESMTPSA id h4sm39709414wjx.41.2015.11.17.04.24.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2015 04:24:20 -0800 (PST) Message-ID: <1447763059.4741.32.camel@gmail.com> From: Adrian Freihofer To: Aws Ismail Date: Tue, 17 Nov 2015 13:24:19 +0100 In-Reply-To: References: <1447536908-21449-1-git-send-email-adrian.freihofer@gmail.com> X-Mailer: Evolution 3.16.5 (3.16.5-3.fc22) Mime-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [meta-oe][PATCH 0/3] runqemu improve networking X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2015 12:24:23 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi Aws The interfaces of my virtual device are configured as: eth0: static IP, 192.168.7.2 (This IP is hard coded in many scripts of poky.) This interface is for debugging purpose, it is not available on my physical devices running in a productive environment. The interface is configured by the kernel command line provided by the runqemu script. This interface should (or must in case of NFS rootfs) be ignored by connman, networkmanager or what ever manages the network settings of your device. eth1: Configured by connman or networkmanager running on the virtual device. The part of the setup depends on the particular use case you need to emulate. In my setup the tap interfaces of the host ar part of a bridge. On the bridge a dnsmasq instance serves IP addresses. This part of my setup is not published. It is verry specific. But based on my patch set it should be easy to do something similar fitting your use case. The simplest approach might be a static IP address e.g. assigned by a bbappend file e.g. for connman. runqemu is started with additional parameters to create eth1: runqemu hostonly qemuparams="-device virtio-net-pci,netdev=netif1,mac=${macaddr1} -netdev tap,id=netif1,ifname=${HOST_TAP_NAME},script=no,downscript=no" Regards, Adrian On Mon, 2015-11-16 at 17:16 -0500, Aws Ismail wrote: > Hi Adrian, > > What's the runqemu line you are running with ? > > I am passing -net nic -net nic to the qemuparams line which works > fine, but the the two devices come up with no IP addresses. > > My full qemu line is: > > ROOTFS= runqemu qemux86-64 nographic > qemuparams="-cpu host --enable-kvm -m 4096 -net nic -net nic" > > Aws\ > > On Sun, Nov 15, 2015 at 1:01 AM, Aws Ismail wrote: > > Thanks Adrian for the patchset. I will test it and get back to you. > > > > Aws\ > > > > On Sat, Nov 14, 2015 at 4:35 PM, Adrian Freihofer > > wrote: > > > This patch series adds two features to runqemu: > > > - Support the emulation of more than one NIC > > > - Add a hostonly networking mode. This networking mode enables > > > the user to implement different virtual networking environments > > > such as a bridged network as discussed in #7887. > > > > > > Note: Without the first patch connman fails if the virtual device > > > provides more than one NIC. > > > > > > @Aws Ismail: I'm using this since more than one year. Would be great > > > if you could test this and provide feedback. > > > > > > Adrian Freihofer (3): > > > connman: fix qemu config > > > runqemu: add support for multiple NICs > > > runqemu: support hostonly net mode > > > > > > .../connman/connman-conf/qemuall/wired-setup | 6 ++-- > > > scripts/runqemu | 7 +++- > > > scripts/runqemu-gen-tapdevs | 11 ++++--- > > > scripts/runqemu-ifdown | 33 +++++++++++-------- > > > scripts/runqemu-ifup | 38 +++++++++++++--------- > > > scripts/runqemu-internal | 21 +++++++----- > > > 6 files changed, 72 insertions(+), 44 deletions(-) > > > > > > -- > > > 2.4.3 > > >