[FFE] testdrive should support booting uec images

Bug #619974 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testdrive (Ubuntu)
Fix Released
Wishlist
Andres Rodriguez

Bug Description

Binary package hint: testdrive

Under the cloud-images-sans-cloud [1] spec, I've done work to make the UEC images bootable outside of a EC2 or UEC compatible cloud. That includes launching them directly with kvm.

With this functionality exposed, the UEC images now provide a very useful ready-to-boot image (already installed), similar to what the live-cd's provide for desktop. For ubuntu, kubuntu, and other ubuntu flavors, testdrive makes it very easy for someone to "test drive" a new release.

I would like to modify test drive to support booting the UEC images. In general this will be low impact on existing testdrive functionality as the code for uec-images will take a different path.

--
[1] https://blueprints.launchpad.net/ubuntu/+spec/server-maverick-cloud-images-sans-cloud

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: testdrive-cli 3.0-0ubuntu1
ProcVersionSignature: User Name 2.6.35-15.21-virtual 2.6.35.1
Uname: Linux 2.6.35-15-virtual x86_64
Architecture: amd64
Date: Wed Aug 18 16:38:33 2010
Ec2AMI: ami-06957f6f
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-maverick-daily-amd64-server-20100817.manifest.xml
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.large
Ec2Kernel: aki-427d952b
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: testdrive

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

+1, from me. Andres, are you looking at this, or should Scott branch TestDrive and hack it in? I think per IRC conversation today, it should be pretty doable. Would one of the two of you assign yourself this bug?

Changed in testdrive (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Andres Rodriguez (andreserl) wrote :

I think I can work on most of it (if not all). I'm gonna start working on integrating the available UEC images into the code so that they are displayed in the UI's, once the manifest is available. When that is done I think we can work together with Scott on making them available to sync/run.

For now, I'll assign this to me.

Changed in testdrive (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: Triaged → In Progress
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

I mentioned this to Andreas yesterday, but just to have text in this bug:
- Each "uec image tarball" is a tarfile with files explained at http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-builds/annotate/head%3A/README.files
- to boot one of these in test drive:
  # the .img files are largely sparse, so using 'tar -S' is quite desirable.
  tar -Sxvzf tarball.tar.gz
  bname=$(echo *.img) && bname=${bname%.img}
  # It is not necessary to use a qcow backing image, but useful to keep the
  # .img file pristine
  qemu-img create -f qcow2 -b ${bname}.img.dist disk.img
  kvm -boot a -fda ${name}-floppy -drive file=disk.img,if=virtio

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Notes:

Should also support testdrive -u <proto>://path/image.tar.gz

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 3.1-0ubuntu1

---------------
testdrive (3.1-0ubuntu1) natty; urgency=low

  * UI Improvements. Thanks to Andrew (and471).
  * testdrive-cli: Add support to change ISO image repository.
  * Support for UEC Images: (LP: #619974)
    - testdrive-cli: Added initial support.
  * Improve the way the downloading widget is displayed. (LP: #618166)
  * testdrive-gtk: Fix preferences dialog issue. (LP: #630364)
  * testdrive/testdrive.py: Fix loading of CACHE_ISO if changed.
  * Allow Mobile ISO's to be TestDrived. (LP: #645052)
  * Fix some identation issues that appeared with new quickly version, and
    some minor cleanups.
 -- Andres Rodriguez <email address hidden> Wed, 20 Oct 2010 16:41:15 -0400

Changed in testdrive (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.