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

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Fc5 guest on FC6 host
From: Robin Bowes <robin-lists@xxxxxxxxxxxxxx>
Date: Wed, 25 Oct 2006 11:06:13 +0100
Delivery-date: Wed, 25 Oct 2006 03:06:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <453ED727.1050907@xxxxxxxxxxxxxxxxx>
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> <453ED727.1050907@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20061006)
Hilton Day wrote:
> 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 :)

Hilton,

Thanks for the detailed instructions.

I wasn't going to bother fixing this as it's only a test system - I
thought I'd just make a mental note to use kernel-xen on my guests in
future. But, the challenge got too much for me so I had a go!

Here's what I did:

mkdir /mnt/guest1
losetup /dev/loop0 /home/xen/disks/guest1
kpartx -av /dev/loop0
vgchange -ay
mount /dev/VolGroup00/LogVol00 /mnt/guest1
mount /dev/mapper/loop0p1 /mnt/guest1/boot/
mount -t proc proc /mnt/guest1/proc
mount -t sysfs sys /mnt/guest1/sys
wget http://example.com/path/to/kernel-xen-2.6.18-1.2200.fc5.i686.rpm
rpm -ivh --root /mnt/guest1 kernel-xen-2.6.18-1.2200.fc5.i686.rpm
perl -pi -e 's/^default=1/default=0/' /mnt/guest1/boot/grub/grub.conf
umount /mnt/guest1/sys
umount /mnt/guest1/dev
umount /mnt/guest1/proc
umount /mnt/guest1/boot
umount /mnt/guest1
vgchange -an VolGroup00
kpartx -dv  /dev/loop0
losetup -d /dev/loop0

I then tried to start the guest:

# xm create /etc/xen/auto/guest1
Using config file "/etc/xen/auto/guest1".
Going to boot Fedora Core (2.6.18-1.2200.fc5xen)
  kernel: /xen.gz-2.6.18-1.2200.fc5-PAE
Error: (22, 'Invalid argument')

I see this msg in xend-debug.log:

ERROR: Not a Xen-ELF image: No ELF notes or '__xen_guest' section found.
ERROR: Error constructing guest OS

So, the kernel's installed but it won't boot.

Any further ideas?

R.


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

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