Shawn Greig
2015-Jun-30 15:41 UTC
Re: [Libguestfs] Issue with virt-builder on Ubuntu 14.04
Rich you're right, I forgot to run make. I added 'set -x' and reran make and then ran 'virt-builder -v -x' and it seems to hang at dhclient (see attached log). Shawn On Tue, Jun 30, 2015 at 9:17 AM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Tue, Jun 30, 2015 at 09:07:25AM -0600, Shawn Greig wrote: > > - I tried forcing TCG and it gets to the same spot and stops. > > That excludes the possibility that it's a KVM or kernel bug > (probably). > > > - running make quickcheck passes the tests (see attached) > > > > - I tried a different kernel (3.13.0-49-generic) and again it passes the > > quickcheck but virt-builder hangs. > > Add 'virt-builder -v -x' flags and see where it's hanging. > > > - I added 'set -x' to the top of the init script and I don't see any > > additional output (see attached) > > Somehow this didn't have any effect. You probably didn't do a 'make' > before the 'make quickcheck'. It would still be useful to see the > 'set -x' output to see if a particular command is hanging. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-df lists disk usage of guests without needing to install any > software inside the virtual machine. Supports Linux and Windows. > http://people.redhat.com/~rjones/virt-df/ >
Richard W.M. Jones
2015-Jun-30 15:53 UTC
Re: [Libguestfs] Issue with virt-builder on Ubuntu 14.04
On Tue, Jun 30, 2015 at 09:41:45AM -0600, Shawn Greig wrote:> Rich you're right, I forgot to run make. I added 'set -x' and reran make > and then ran 'virt-builder -v -x' and it seems to hang at dhclient (see > attached log).> + dhclient --version > + dhclient > /sbin/dhclient-script: line 31: /etc/fstab: No such file or directoryYup, dhclient has been an ongoing problem. Most recently: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775514 https://bugzilla.redhat.com/show_bug.cgi?id=1224795 It may help to run dhclient in the appliance under strace to see where exactly it has stopped. The appliance should contain strace (check for it in appliance/packagelist.in and appliance/supermin.d/packages), and if it does you can just edit the appliance/init script like this: - dhclient + strace dhclient The other option is to use dhcpcd, but that also requires patching the init script. 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
Shawn Greig
2015-Jun-30 17:50 UTC
Re: [Libguestfs] Issue with virt-builder on Ubuntu 14.04
Yeah, it's definitely an issue with dhclient. I patched the init script to use dhcpcd instead and everything is working as expected now. I've attached a log containing the strace of dhclient if that helps you or someone else in the future. Thanks for all your help Rich. Shawn On Tue, Jun 30, 2015 at 9:53 AM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Tue, Jun 30, 2015 at 09:41:45AM -0600, Shawn Greig wrote: > > Rich you're right, I forgot to run make. I added 'set -x' and reran make > > and then ran 'virt-builder -v -x' and it seems to hang at dhclient (see > > attached log). > > > + dhclient --version > > + dhclient > > /sbin/dhclient-script: line 31: /etc/fstab: No such file or directory > > Yup, dhclient has been an ongoing problem. Most recently: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775514 > https://bugzilla.redhat.com/show_bug.cgi?id=1224795 > > It may help to run dhclient in the appliance under strace to see where > exactly it has stopped. The appliance should contain strace (check > for it in appliance/packagelist.in and appliance/supermin.d/packages), > and if it does you can just edit the appliance/init script like this: > > - dhclient > + strace dhclient > > The other option is to use dhcpcd, but that also requires patching the > init script. > > 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 >