* [PATCH] runqemu-internal: add NIC to kernel parameters
@ 2014-05-27 10:22 Adrian Freihofer
2014-05-29 11:15 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Freihofer @ 2014-05-27 10:22 UTC (permalink / raw)
To: openembedded-core
Fixes [YOCTO #6356]
Problem: If QEMU parameters are extended to emulate additional
network interfaces, NFS boot does not work. Example:
runqemu ... qemuparams="-net nic,model=virtio... -net tap, ..."
This is solved by extending the kernel parameters by "::eth0:on"
---
scripts/runqemu-internal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index d317dfd..30d6514 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -249,7 +249,7 @@ else
n1=$(($n0 * 2 + 1))
n2=$(($n1 + 1))
- KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0"
+ KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0::eth0:on"
QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no"
if [ "$KVM_ACTIVE" = "yes" ]; then
QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] runqemu-internal: add NIC to kernel parameters
2014-05-27 10:22 [PATCH] runqemu-internal: add NIC to kernel parameters Adrian Freihofer
@ 2014-05-29 11:15 ` Richard Purdie
2014-05-29 12:02 ` Stefan Stanacar
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2014-05-29 11:15 UTC (permalink / raw)
To: Adrian Freihofer; +Cc: openembedded-core
On Tue, 2014-05-27 at 12:22 +0200, Adrian Freihofer wrote:
> Fixes [YOCTO #6356]
>
> Problem: If QEMU parameters are extended to emulate additional
> network interfaces, NFS boot does not work. Example:
> runqemu ... qemuparams="-net nic,model=virtio... -net tap, ..."
> This is solved by extending the kernel parameters by "::eth0:on"
> ---
> scripts/runqemu-internal | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
> index d317dfd..30d6514 100755
> --- a/scripts/runqemu-internal
> +++ b/scripts/runqemu-internal
> @@ -249,7 +249,7 @@ else
> n1=$(($n0 * 2 + 1))
> n2=$(($n1 + 1))
>
> - KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0"
> + KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0::eth0:on"
> QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no"
> if [ "$KVM_ACTIVE" = "yes" ]; then
> QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
Unfortunately this results in failures in all our automated sanity
tests:
https://autobuilder.yoctoproject.org/main/builders/nightly-ipk/builds/94/steps/Running%20Sanity%20Tests_1/logs/stdio
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] runqemu-internal: add NIC to kernel parameters
2014-05-29 11:15 ` Richard Purdie
@ 2014-05-29 12:02 ` Stefan Stanacar
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Stanacar @ 2014-05-29 12:02 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1754 bytes --]
On May 29, 2014 2:16 PM, "Richard Purdie" <
richard.purdie@linuxfoundation.org> wrote:
>
> On Tue, 2014-05-27 at 12:22 +0200, Adrian Freihofer wrote:
> > Fixes [YOCTO #6356]
> >
> > Problem: If QEMU parameters are extended to emulate additional
> > network interfaces, NFS boot does not work. Example:
> > runqemu ... qemuparams="-net nic,model=virtio... -net tap, ..."
> > This is solved by extending the kernel parameters by "::eth0:on"
> > ---
> > scripts/runqemu-internal | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
> > index d317dfd..30d6514 100755
> > --- a/scripts/runqemu-internal
> > +++ b/scripts/runqemu-internal
> > @@ -249,7 +249,7 @@ else
> > n1=$(($n0 * 2 + 1))
> > n2=$(($n1 + 1))
> >
> > -
KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0"
> > +
KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0::eth0:on"
> > QEMU_TAP_CMD="-net
tap,vlan=0,ifname=$TAP,script=no,downscript=no"
> > if [ "$KVM_ACTIVE" = "yes" ]; then
> > QEMU_NETWORK_CMD="-net nic,model=virtio
$QEMU_TAP_CMD,vhost=on"
>
> Unfortunately this results in failures in all our automated sanity
> tests:
>
It should be noted that minimal images do have network so this might upset
connman...
Cheers,
Stefan
>
https://autobuilder.yoctoproject.org/main/builders/nightly-ipk/builds/94/steps/Running%20Sanity%20Tests_1/logs/stdio
>
> Cheers,
>
> Richard
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
[-- Attachment #2: Type: text/html, Size: 2637 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-29 12:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 10:22 [PATCH] runqemu-internal: add NIC to kernel parameters Adrian Freihofer
2014-05-29 11:15 ` Richard Purdie
2014-05-29 12:02 ` Stefan Stanacar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.