qemuboot: predictable network interface names
PATCH 1/1 qemuboot: predictable network interface names
From: Joe Slater <[email protected]>
Allow interface renaming if 'pni-names' is a distro feature.
We do not add QB_NO_PNI to QB_CMDLINE_IP_SLIRP because renaming was never suppressed for slirp.
--- meta/classes-recipe/qemuboot.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes-recipe/qemuboot.bbclass +4 -1
@@ -101,8 +101,11 @@ QB_DEFAULT_FSTYPE ?= "ext4" QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" QB_OPT_APPEND ?= "" QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" + +QB_NO_PNI ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pni-names', '', 'net.ifnames=0', d)}" QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" -QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0" +QB_CMDLINE_IP_TAP ?= "${QB_NO_PNI} ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8" + QB_ROOTFS_EXTRA_OPT ?= "" QB_GRAPHICS ?= "" QB_NFSROOTFS_EXTRA_OPT ?= ""
Signature · 1 line
2.25.1
I'm pretty sure this is the cause of those failures:
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6396/steps/14/logs/stdio
Quoted 43 lines · Joe Slater via lists.openembedded.org
From: Joe Slater <[email protected]>
Allow interface renaming if 'pni-names' is a distro feature.
We do not add
QB_NO_PNItoQB_CMDLINE_IP_SLIRPbecause renaming was never suppressed for slirp.Signed-off-by Joe Slater <[email protected]>--- meta/classes-recipe/qemuboot.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/classes-recipe/qemuboot.bbclass +4
-1@@ -101,8 +101,11 @@ QB_DEFAULT_FSTYPE ?= "ext4" QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" QB_OPT_APPEND ?= "" QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" + +QB_NO_PNI ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pni-names', '', 'net.ifnames=0', d)}" QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" -QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0" +QB_CMDLINE_IP_TAP ?= "${QB_NO_PNI} ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8" + QB_ROOTFS_EXTRA_OPT ?= "" QB_GRAPHICS ?= "" QB_NFSROOTFS_EXTRA_OPT ?= ""Signature · 11 lines
2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#194963): https://lists.openembedded.org/g/openembedded-core/message/194963 Mute This Topic: https://lists.openembedded.org/mt/104182965/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Looking at qemurunner.py, it seems it will not find the ip info if net.ifnames precedes it. I will submit a V2 of the patch.
Joe
Quoted 71 lines
-----Original Message-----
From: Alexandre Belloni <[email protected]>
Sent: Tuesday, February 6, 2024 11:12 AM
To: Slater, Joseph <[email protected]>
Cc: [email protected]; MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 1/1] qemuboot: predictable network interface namesI'm pretty sure this is the cause of those failures:
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6396/steps/1
4/logs/stdioQuoted 18 lines · Joe Slater via lists.openembedded.org
From: Joe Slater <[email protected]>
Allow interface renaming if 'pni-names' is a distro feature.
We do not add
QB_NO_PNItoQB_CMDLINE_IP_SLIRPbecause renaming was never suppressed for slirp.Signed-off-by Joe Slater <[email protected]>--- meta/classes-recipe/qemuboot.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/classes-recipe/qemuboot.bbclass +0
-0meta/classes-recipe/qemuboot.bbclass QB_DEFAULT_FSTYPE ?= "ext4" · line 101
Quoted 1 line
meta/classes-recipe/qemuboot.bbclass +0
-0@@ -101,8 +101,11 @@ QB_DEFAULT_FSTYPE ?= "ext4" QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -devicevirtio-rng-pci,rng=rng0"
meta/classes-recipe/qemuboot.bbclass QB_DEFAULT_FSTYPE ?= "ext4"
Quoted 4 lines
meta/classes-recipe/qemuboot.bbclass +2
-0QB_OPT_APPEND ?= "" QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" + +QB_NO_PNI ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pni-names', '','net.ifnames=0', d)}"
meta/classes-recipe/qemuboot.bbclass QB_DEFAULT_FSTYPE ?= "ext4" · line 105
Quoted 2 lines
meta/classes-recipe/qemuboot.bbclass +0
-1QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" -QB_CMDLINE_IP_TAP ?="ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8. 8.8.8 net.ifnames=0"
meta/classes-recipe/qemuboot.bbclass QB_DEFAULT_FSTYPE ?= "ext4" · line 107
Quoted 1 line
meta/classes-recipe/qemuboot.bbclass +1
-0+QB_CMDLINE_IP_TAP ?= "${QB_NO_PNI}ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8. 8.8"
Quoted 9 lines
meta/classes-recipe/qemuboot.bbclass +1
-1+ QB_ROOTFS_EXTRA_OPT ?= "" QB_GRAPHICS ?= "" QB_NFSROOTFS_EXTRA_OPT ?= "" --2.25.1
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#194963):https://lists.openembedded.org/g/openembedded-core/message/194963
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/104182965/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsubQuoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
--
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering
https://bootlin.com