Skip to content

oniro-linux IPv4 address not set by default on qemu

The module affected

oniro-linux network configuration.

What is the action to reproduce the bug?

  1. build oniro-image-base (other images could be affected too, not tested)
  2. run ifconfig

What is the result you see?

The network interface enp0s1 does not have a IPv4 address, and there is no other interface with one.

What is the result you expect?

The network interface has the correct IPv4 address shown when running qemu:
runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8

Frequency?

Always.

Tested version

  • Images: oniro-image-base and oniro-image-base-tests
  • Flavour: linux

Do you know any workaround of this issue?

Run ifconfig enp0s1 192.168.7.2.
This will set the IPv4 correctly but sometimes it resets (not easily reproducible).
If the IP is not 192.168.7.2 the host is not reachable (tested with ssh).

Do you have a fix for this issue?

No.

Edited by Luca Favaretto
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information