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

Re: [Libguestfs] Trying to package Oz for Ubuntu

[ CCing to Hilko who is the Debian maintainer, and the libguestfs
  mailing list. ]

On Tue, Dec 11, 2012 at 04:18:20PM -0600, Steve Loranz wrote:
> Chris / Richard,
> I'm trying to get a package of Oz together for Ubuntu so that I can
> ultimately get an imagefactory package built for Ubuntu as well. I'm
> stuck on libguestfs at this point and was hoping one of you might be
> able to point me in the right direction.
> I'm working on Ubuntu 12.10 and the steps I'm taking are:
> 1) sudo apt-get install build-essential python-dev kvm libguestfs-tools python-libvirt python-pycurl python-parted python-guestfs python-libxml2 python-m2crypto genisoimage mtools openssh-client
> 2) check my versions of febootstrap and seabios
> ---
> >>> dpkg -s febootstrap seabios
> Package: febootstrap
> Status: install ok installed
> Priority: optional
> Section: admin
> Installed-Size: 1364
> Maintainer: Ubuntu Developers <ubuntu-devel-discuss lists ubuntu com>
> Architecture: amd64
> Version: 3.17-1
> Depends: e2fslibs (>= 1.42), libc6 (>= 2.15), libcomerr2 (>= 1.01), aptitude, cpio
> Description: tool for building supermin appliances.
>  febootstrap is a tool for building supermin appliances. These are
>  tiny appliances [similar to virtual machines], usually around 100KB
>  in size, which get fully instantiated on-the-fly in a fraction of a
>  second when one of them is booted.
> Original-Maintainer: Debian Libvirt Maintainers <pkg-libvirt-maintainers lists alioth debian org>
> Homepage: http://people.redhat.com/~rjones/febootstrap/
> Package: seabios
> Status: install ok installed
> Priority: extra
> Section: misc
> Installed-Size: 353
> Maintainer: Ubuntu Developers <ubuntu-devel-discuss lists ubuntu com>
> Architecture: all
> Version: 1.7.0-1
> Conflicts: qemu-system (<< 0.14.0)
> Description: Legacy BIOS implementation
>  SeaBIOS is a legacy BIOS implementation, aimed at supporting not only
>  emulated hosts such as QEMU, but also real hardware.
>  .
>  Note, however, that SeaBIOS does not handle early initialization of core
>  chipsets, so don't even think of flashing it to your board (look at
>  Coreboot for that).
> Original-Maintainer: Debian QEMU Team <pkg-qemu-devel lists alioth debian org>
> Homepage: http://www.seabios.org
> ---
> This seems compatible with the guidance for Ubuntu 12.04 on http://libguestfs.org/guestfs-faq.1.html#binaries so far.
> 3) sudo chmod 0644 /boot/vmlinuz*
> 4) git clone https://github.com/aeolus-incubator/templates.git
> 5) git clone https://github.com/clalancette/oz.git
> 6) ~/oz$ sudo python setup.py install
> 7) sudo oz-install -d3 templates/web_servers/Apache/fedora-16/apache_httpd_f16_bare.xml
> This is where I'm running into problems.  Here is the output:
> ---
> libvirt bridge name is virbr0
> Libvirt type is kvm
> Original URL http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/x86_64/os/ resolved to http://fedora.mirrors.tds.net/pub/fedora/releases/16/Everything/x86_64/os/
> Name: ApacheWebServer, UUID: f22c6a4a-b08d-47f0-ab5d-eeb104286ddd
> MAC: 52:54:00:bc:d8:de, distro: Fedora
> update: 16, arch: x86_64, diskimage: /var/lib/libvirt/images/ApacheWebServer.dsk
> nicmodel: virtio, clockoffset: utc
> mousetype: ps2, disk_bus: virtio, disk_dev: vda
> icicletmp: /var/lib/oz/icicletmp/ApacheWebServer, listen_port: 53452
> Original ISO path: /var/lib/oz/isos/Fedora16x86_64-url.iso
> Modified ISO cache: /var/lib/oz/isos/Fedora16x86_64-url-oz.iso
> Output ISO path: /var/lib/libvirt/images/ApacheWebServer-url-oz.iso
> ISO content path: /var/lib/oz/isocontent/ApacheWebServer-url
> Checking for guest conflicts with ApacheWebServer
> Generating install media
> Fetching the original media
> Attempting to get the lock for /var/lib/oz/isos/Fedora16x86_64-url.iso
> Got the lock, doing the download
> Original install media available, using cached version
> Copying ISO contents for modification
> Setting up guestfs handle for ApacheWebServer
> Adding ISO image /var/lib/oz/isos/Fedora16x86_64-url.iso
> Launching guestfs
> Cleaning up after install
> Traceback (most recent call last):
>   File "/usr/local/bin/oz-install", line 143, in <module>
>     guest.generate_install_media(force_download)
>   File "/usr/local/lib/python2.7/dist-packages/oz/RedHat.py", line 739, in generate_install_media
>     return self._iso_generate_install_media(fetchurl, force_download)
>   File "/usr/local/lib/python2.7/dist-packages/oz/Guest.py", line 1581, in _iso_generate_install_media
>     self._copy_iso()
>   File "/usr/local/lib/python2.7/dist-packages/oz/Guest.py", line 1278, in _copy_iso
>     gfs.launch()
>   File "/usr/lib/python2.7/dist-packages/guestfs.py", line 244, in launch
>     return libguestfsmod.launch (self._o)
> RuntimeError: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib/x86_64-linux-gnu/guestfs)
> ---
> It appears that update-guestfs-appliance is being run as part of the
> libguestfs-tools install and I select yes when it prompts to create
> a supermin [appliance] but I'm still getting this exception.
> What am I missing here?

You need to run 'libguestfs-test-tool' and paste the complete,
unedited output into your reply.

I suspect the problem may be that update-guestfs-appliance is in fact
not being run for some reason.


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.

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