Bug 6278 - runqemu without /etc/resolv.conf
Summary: runqemu without /etc/resolv.conf
Status: RESOLVED DUPLICATE of bug 5322
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: virtual machines (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 3.1 M2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on: 5322
Blocks:
  Show dependency tree
 
Reported: 2014-05-07 16:56 UTC by Volker
Modified: 2020-02-03 17:29 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***