Wind River Support Network

HomeDefectsLIN1021-123
Acknowledged

LIN1021-123 : [qemu] /etc/resolv.conf resets to default after a while

Created: May 17, 2021    Updated: May 25, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace

Description

This issue only happens on qemu with slirp mode.

$ setup.sh --machine qemux86 --dl-layers --distro wrlinux
 $ bitbake wrlinux-image-glibc
 $ runqemu qemux86 ext4 nographic slirp qemuparams="-m 2048"

When qemu boot:
 $ cat /etc/resolv.conf
 nameserver 10.0.2.3

But /etc/resolv.conf will reset to default after 10~20 minutes:

$ cat /etc/resolv.conf
 nameserver 8.8.8.8
 nameserver 1.0.0.1

nameserver 8.8.4.4
 nameserver 2606:4700:4700::1111
 nameserver 2001:4860:4860::8888
 nameserver 2606:4700:4700::1001
 nameserver 2001:4860:4860::8844

Steps to Reproduce

1) 
--machine qemux86 --dl-layers --distro wrlinux-cgl --templates feature/xfce feature/LAMP feature/gcc-sanitizers feature/ipv6 feature/linux-yocto-dev feature/userspace-next feature/toolchain-next feature/lttng feature/mariadb feature/ntp feature/package-management feature/system-stats feature/target-toolchain feature/tcpslice --layers meta-filesystems meta-security-compliance meta-virtualization --dl-layers
2). ./environment-setup-x86_64-wrlinuxsdk-linux

3) . ./oe-init-build-env

4) bitbake wrlinux-image-glibc-cgl

5) runqemu qemux86 ext4 nographic slirp qemuparams="-m 2048" bootparams="selinux=0"
Live chat
Online