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

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.