Bug 6278

Summary: runqemu without /etc/resolv.conf
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Volker <lists.volker>
Component: virtual machinesAssignee: Ross Burton <ross.burton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: Medium+ CC: jessica.zhang, poky.bs.watcher, poky.watcher, richard.purdie, ross.burton, sgw
Version: 2.0   
Target Milestone: 3.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Bug Depends on: 5322    
Bug Blocks:    

Description Volker 2014-05-07 16:56:31 UTC
runqemu does not come with any nameserver configuration in /etc/resolv.conf


There might be multiple ways to get the nameserver to the qemu environment:

1. by grepping the current host OS /etc/resolv.conf -- that does not work with some resent Linux distributions which have their own DNS wrapper and list 127.0.0.1 as nameserver
2. by a variable that has to be set in local.conf
3. by using a default setting like the google dns (there are other alternatives, too)


If the interfaces file supports it (sorry, did not check it here and the man page does not list this feature even on systems where it works), then the hidden directive "dns-nameserver" in /etc/network/interfaces might do the job:
   dns-nameservers 8.8.8.8
Comment 1 Saul Wold 2016-07-19 16:44:18 UTC
See bug#5322
Comment 2 Ross Burton 2020-02-03 17:29:28 UTC
yes, duplicate.

*** This bug has been marked as a duplicate of bug 5322 ***