WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Fc5 guest on FC6 host

To: Robin Bowes <robin-lists@xxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Fc5 guest on FC6 host
From: Hilton Day <xlot@xxxxxxxxxxxxxxxxx>
Date: Wed, 25 Oct 2006 13:16:55 +1000
Delivery-date: Tue, 24 Oct 2006 20:17:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <ehmj45$huj$1@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <ehmj45$huj$1@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
Robin,

The kernel-xen package is PAE-enabled kernel in FC5 too I believe, so you need to upgrade the kernel in your domU to that. (however, the kernel-xen0 and kernel-xenU packages, as you've found, aren't PAE)

I see 2 alternatives here (in both cases, back up the domU image first using dd or similar):

1. Try the FC5 to FC6 upgrade process by running xenguest-install with FC6, against the FC5 disk image. I'm not sure if the upgrade process works

or 2. More involved, but using rpm to install the PAE-enabled kernel-xen from FC5.. read on :)

You can do that by mounting the domU's filesystem - either using lomount if you're using a file-based image, or kpartx if you're using an LVM-based image.

e.g. to mount the partitions in an Logical volume called "domU1" which resides in a physical volume "LogVol00", I'd use something like:

kpartx -av /dev/LogVol00/domU1

It'll then create mapper entries in /dev/mapper/ to each partition which you can in turn mount inside the dom0. (if the domU's virtual disk is also LVM-based, you can use kpartx again on the entry in /dev/mapper that corresponds to the LV partition - although this can get messy if you've left volume names as the default in all dom's).

You'll need to mount the root partition, and /boot and maybe also create a /proc filesystem (mount -t proc proc /mnt/domUroot/proc).

Fetch yourself the rpm for kernel-xen from an updates repository, then use rpm with the --root flag to upgrade the kernel.. e.g. something like

rpm -ivh --root /mnt/domUroot kernel-xen-2.6.18-1.2200.fc5.i686.rpm

Once that completes, you should be able to unmount all the partitions, and use "kpartx -dv /dev/LogVol00/domU1" to remove the mapper entries. Once they're gone, try booting the domU and it should work.

Man pages for each of the commands above will help if you get stuck on syntax or semantics :)

HTH

Hilton.

Robin Bowes wrote:
Hi,

I have a test box running FC5 (kernel-xen0-2.6.18-1.2200.fc5) with a FC5
guest system.

I upgraded the host to FC6, and am now running the FC6 Xen kernel
(kernel-xen-2.6.18-1.2798.fc6).

I am now unable to run the guest system. I see the following msgs in the
log:

ERROR: Non PAE-kernel on PAE host.
ERROR: Error constructing guest OS

I've googled and found this [1]:

Q. When creating a guest the message "Invalid argument" is displayed.

A. This usually indicates that the kernel image you are trying to boot
is incompatible with the hypervisor. This will be seen if trying to run
a FC5 (non-PAE) kernel on FC6 (which is PAE only), or if trying to run a
bare metal kernel.

[1] http://fedoraproject.org/wiki/FedoraXenQuickstartFC6


I'm guessing the fix is to upgrade the guest O/S to FC6 too. However, I
am currently unable to boot it as it won't boot under FC6 and the FC6
version of Xen won't run under the FC5 kernel.

Any suggestions as to how I might fix this? Or did I basically do things
in the wrong order, i.e. should I have upgraded the guest O/S first?

Thanks,

R.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>