<br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 5:21 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
David,<br>
<br>
Better late than never ...  I have fixed all the problems with the<br>
Ubuntu 10.04 LTS build, and libguestfs works and passes the testsuite.<br>
<br></blockquote><div><br></div><div>Great!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There were several problems stopping this.  As you diagnosed,<br>
'apt-cache depends --recurse' is simply broken in this version of<br>
Ubuntu.  I first tried to backport the newer version, but it has far<br>
too many dependencies that would also have to be updated.  Instead I<br>
pushed a workaround into febootstrap:<br>
<br>
<a href="http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=e4c7daf8bcdcf094719b3169ed79aece64a933bd" target="_blank">http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=e4c7daf8bcdcf094719b3169ed79aece64a933bd</a><br>

<a href="http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=72101b100aa33b0b9879f9b18edfdd88c1aa2755" target="_blank">http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=72101b100aa33b0b9879f9b18edfdd88c1aa2755</a><br>

<a href="http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=3ac623701e5fe5ce94b22b4f40f72ee0161d5184" target="_blank">http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=3ac623701e5fe5ce94b22b4f40f72ee0161d5184</a><br>

<br></blockquote><div><br></div><div>Thanks.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Also, as you were very close to diagnosing, there were a few problems<br>
with the appliance init script.  This version of Ubuntu does not<br>
create a /sys directory, so mounting /sys failed, and that caused a<br>
cascade of other failures.  The fix is simple:<br>
<br>
<a href="http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=5b012024c49672cc69635ff01f9b9e4f87de1c65" target="_blank">http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=5b012024c49672cc69635ff01f9b9e4f87de1c65</a><br>

<br>
Ubuntu has an old version of gettext, so you need to apply a patch to<br>
po/<a href="http://Makefile.in.in" target="_blank">Makefile.in.in</a> (patch not upstream, attached).<br>
<br>
udev is too old.  Even with fixed udev rules for creating<br>
virtio-serial ports, the symlinks aren't being created.  Instead of<br>
trying to work out why this was, I just hacked the daemon to look for<br>
the port directly (patch not upstream, attached).<br>
<br>
Those were the code changes.<br>
<br>
I also had to manually backport and build the following packages from<br>
oneiric:<br>
<br>
- hivex_1.2.7-1build1 [not strictly required]<br>
- qemu-kvm_0.14.1+noroms-0ubuntu3<br>
- vgabios_0.6c-2ubuntu3<br>
<br>
I also had to install linux-image-2.6.38-10-server from lucid-updates,<br>
and fix the broken permissions, see<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725" target="_blank">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725</a> .<br>
<br>
With all that lot, it works and passes the test suite.<br>
<br>
I'm going to put some proper instructions and sources and binaries on<br>
the website later.<br>
<br></blockquote><div><br></div><div>Thanks.  unfortunately, I can't (by security policy) install unapproved packages on my system (even if they are backported).  I did build hivex and qemu-kvm from scratch on my machine previously.</div>
<div><br></div><div>If I want to go forward with testing this, should I just go to your git HEAD and live there?</div><div><br></div><div>Dave</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Rich.<br>
<font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones
virt-df" target="_blank">http://people.redhat.com/~rjones<br>
virt-df</a> lists disk usage of guests without needing to install any<br>
software inside the virtual machine.  Supports Linux and Windows.<br>
<a href="http://et.redhat.com/~rjones/virt-df/" target="_blank">http://et.redhat.com/~rjones/virt-df/</a><br>
</font></blockquote></div><br>