Lee Revell
2015-Mar-13 16:58 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On 03/13/2015 12:21 PM, Richard W.M. Jones wrote:> So what's happening is that /etc/resolv.conf in the appliance never > gets created. >Is the /dev/tcp test by IP evidence that the problem goes deeper than name resolution?> Run `./run virt-rescue --network --scratch' on the Ubuntu host and see if: > > - either dhclient or dhcpcd exists in the appliance > > - they work when you run them, or if there is an error message > > - if running one of them creates /etc/resolv.conf >><rescue> which dhclient /sbin/dhclient ><rescue> /sbin/dhclient ><rescue> ls /etc/resolv.conf ls: cannot access /etc/resolv.conf: No such file or directory ><rescue> which dhcpcd ><rescue> Would there be any point in testing latest code from git? Lee
Richard W.M. Jones
2015-Mar-13 17:29 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On Fri, Mar 13, 2015 at 12:58:52PM -0400, Lee Revell wrote:> On 03/13/2015 12:21 PM, Richard W.M. Jones wrote: > >So what's happening is that /etc/resolv.conf in the appliance never > >gets created. > > > > Is the /dev/tcp test by IP evidence that the problem goes deeper > than name resolution? > > >Run `./run virt-rescue --network --scratch' on the Ubuntu host and see if: > > > > - either dhclient or dhcpcd exists in the appliance > > > > - they work when you run them, or if there is an error message > > > > - if running one of them creates /etc/resolv.conf > > > > ><rescue> which dhclient > /sbin/dhclient > ><rescue> /sbin/dhclient > ><rescue> ls /etc/resolv.conf > ls: cannot access /etc/resolv.conf: No such file or directoryI wonder why dhclient doesn't create /etc/resolv.conf .> ><rescue> which dhcpcd > ><rescue> > > Would there be any point in testing latest code from git?I think you were testing 1.29.29, which is only a few days old. There haven't been any changes to the appliance. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Lee Revell
2015-Mar-13 17:47 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On 03/13/2015 01:29 PM, Richard W.M. Jones wrote:>>> <rescue> ls /etc/resolv.conf >> ls: cannot access /etc/resolv.conf: No such file or directory > > I wonder why dhclient doesn't create /etc/resolv.conf . >Would an strace of dhclient from inside the appliance help? Lee
Lee Revell
2015-Mar-13 20:59 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On 03/13/2015 01:29 PM, Richard W.M. Jones wrote:> > I wonder why dhclient doesn't create /etc/resolv.conf . >FWIW, I've also found that on the fedora 21 host, supermin passes all 8 "make check" tests. On the Ubuntu 14.04 host, it fails 2 of 8. The log is attached. Additionally there are other weird differences, like /etc/passwd and /etc/shadow and many other /etc files present in the working appliance are missing on the non-working one. Lee
Possibly Parallel Threads
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize