From 943f4cb8411ec16e466b0bb48bd6bcdbc526f442 Mon Sep 17 00:00:00 2001 From: Alexander Egorenov Date: Thu, 27 Oct 2022 06:50:57 +0200 Subject: vm/qemu: prevent network device renaming on s390x arch This is a temporary work-around for s390x until it supports CONFIG_CMDLINE. Failing to do so might cause a failure to establish a SSH connection when syz-ci tests a built image. syz-ci output: -------------- building kernel... testing image... VM boot failed with: can't ssh into the instance failure log: ------------ failed to run ["ssh" "-p" "34490" ... "root@localhost" "pwd"]: exit status 255 Connection timed out during banner exchange Connection to 127.0.0.1 port 34490 timed out qemu dmesg ---------- [ 6.646475] virtio_net virtio0 eno1: renamed from eth0 Signed-off-by: Alexander Egorenov --- vm/qemu/qemu.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index defd1a970..d9933fa05 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -200,6 +200,10 @@ var archConfigs = map[string]*archConfig{ RngDev: "virtio-rng-ccw", CmdLine: []string{ "root=/dev/vda", + // The following kernel parameters is a temporary + // work-around for not having CONFIG_CMDLINE on s390x. + "net.ifnames=0", + "biosdevname=0", }, }, "freebsd/amd64": { -- cgit mrf-deployment