<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6278</bug_id>
          
          <creation_ts>2014-05-07 16:56:31 +0000</creation_ts>
          <short_desc>runqemu without /etc/resolv.conf</short_desc>
          <delta_ts>2020-02-03 17:29:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>virtual machines</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5322</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>3.1 M2</target_milestone>
          <dependson>5322</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Volker">lists.volker</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43151</commentid>
    <comment_count>0</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-05-07 16:56:31 +0000</bug_when>
    <thetext>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 &quot;dns-nameserver&quot; in /etc/network/interfaces might do the job:
   dns-nameservers 8.8.8.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64172</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-07-19 16:44:18 +0000</bug_when>
    <thetext>See bug#5322</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86284</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-03 17:29:28 +0000</bug_when>
    <thetext>yes, duplicate.

*** This bug has been marked as a duplicate of bug 5322 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>