This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [RFC][XM-TEST][PATCH] Change xm-test HVM disk.img to be

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [RFC][XM-TEST][PATCH] Change xm-test HVM disk.img to be an iso cdrom image with grub and an initramfs
From: Harry Butterworth <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 15:21:51 +0100
Delivery-date: Mon, 31 Jul 2006 07:22:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1153501645.8075.26.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1153501645.8075.26.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2006-07-21 at 18:07 +0100, Harry Butterworth wrote:
> I have had a certain amount of pain trying to get the HVM xm-tests to
> run on my ubuntu box.  The main problem was xm-test's reuse of the
> ubuntu kernel from /boot which doesn't have the ide driver or the ext2
> filesystem compiled in by default.  The lack of these drivers means that
> the xm-test HVM image which is an ext2 filesystem on an ide emulated
> drive doesn't boot so most of the HVM test suite fails.
> This patch changes the xm-test build process and the python test library
> such that the HVM image is built as an iso cdrom image containing grub
> and an initramfs.
> This seems to be the best way to fix the ubuntu boot problems and will
> hopefully be compatible with all the other distros as well.
> The advantages of this approach are as follows:
> 1) Using grub eliminates the requirement for lilo for HVM testing.
> 2) Creating a grub cdrom image rather than a hard disk image is more
> likely to work correctly with all the versions of grub we care about
> (some versions of grub have a problem with hard disk geometry
> apparently).
> 3) Using an initramfs image on the cdrom image should work with all 2.6
> kernels that xm-test is likely to encounter.  This is not dependent on
> any kernel config options being enabled so can't be compiled out as a
> module as was the problem with the ext2 image in the case of ubuntu.
> 4) Using an initramfs image with a ramdisk mounted for the root
> filesystem makes the HVM domU configuration much closer to the PV domU
> configuration which is likely to help us keep the test-cases common
> between HVM and PV.
> On ubuntu, with this patch most of the HVM tests now seem to work though
> I am getting some random failures that I think are probably not related
> to the patch.
> The patch must be tested on the other distributions before it can be
> applied.

This new version of the patch adds the af_packet module to the list of
modules installed on the ramdisk by default.  This gets a few of the
network tests working.

Signed-off-by: Harry Butterworth <butterwo@xxxxxxxxxx>

Attachment: xm-test-hvm-iso-grub-initramfs.patch
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>