[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] libguestfs on Ubuntu 10.04 LTS (was: Re: appliance VM won't start, can't find /init, but /init is in the image.)



On Thu, Sep 01, 2011 at 02:32:30PM -0700, David Konerding wrote:
> 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.

It's possible (but a pain) to do all of this in your local directory.

You don't really need hivex.  If you don't have it then Windows guest
inspection features will be disabled.

You can run febootstrap from a locally compiled git copy.  You just
have to add two extra paths to $PATH before compiling libguestfs:

  PATH=/path/to/febootstrap/src:/path/to/febootstrap/helper:$PATH
  export PATH

(Note the path changed slightly in febootstrap >= 3.10)

Qemu is very easy to compile from upstream git.  You can run qemu from
a locally compiled git copy.  You need to write a tiny shell script
wrapper, and set an environment variable, see:

  http://libguestfs.org/guestfs.3.html#qemu_wrappers
  http://libguestfs.org/guestfs.3.html#libguestfs_qemu

You can download a recent Ubuntu kernel from an Ubuntu .deb (make sure
it's at least >= 2.6.36).  You can unpack this by hand (dpkg-deb) and
set some environment variables up so that libguestfs can find it:

  http://libguestfs.org/febootstrap-supermin-helper.8.html#febootstrap_kernel

Finally you can run libguestfs itself from the locally compiled git
copy without needing to install libguestfs.  Use the './run' script in
the top level directory.  For instructions, read the README file.

  http://libguestfs.org/README.txt

> If I want to go forward with testing this, should I just go to your
> git HEAD and live there?

All the changes are in git (in febootstrap.git and libguestfs.git)
except those two patches.  The two extra patches you need were
attached to that email, or you can get them from here:

  http://libguestfs.org/download/binaries/ubuntu1004-packages/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]