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] xen3 domU on xen4 dom0

To: Todd Deshane <todd.deshane@xxxxxxx>
Subject: Re: [Xen-users] xen3 domU on xen4 dom0
From: Henrik Langos <hlangos-xen@xxxxxxxxxxxxxx>
Date: Tue, 8 Feb 2011 17:26:13 +0100
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 08 Feb 2011 08:30:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikNd2obD3XGqZzPgLorYi36ex_W_6MG-ceZme+G@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4D515083.9040208@xxxxxxxxxxxxxx> <AANLkTikNd2obD3XGqZzPgLorYi36ex_W_6MG-ceZme+G@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, Feb 08, 2011 at 03:26:50PM +0000, Todd Deshane wrote:
> On Tue, Feb 8, 2011 at 2:17 PM, Wolf Grossi <wg@xxxxxxxxxxxxxx> wrote:
> > Greetings!
> >
> > Trying to to run a xen3 domU on a xen4 dem0 I run into problems.
> >
...
> > With
> > xm create -c M08
> > I get the following error:
> >
> > XEN1:/etc/xen/vm # Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR:
> > Xen will only load images built for Xen v3.0\n')
> >
> > I do not uderstand the above error: the kernel to be loaded *is* a xen-3.0
> > kernel and should be taken from domU:/boot.
> >
> > Now I have the following questions:
> > 1) Can I run xen-3 domU's on a xen-4 dom0?

Yes. I am running a Debian Squeeze Xen 4.0.1 Hypervisor and 2.6.32-5-xen-amd64 
dom0.

On that I run a couple of older PVM machines that have an 2.6.26-2-xen-686 
kernel.
That is a 32bit kernel compiled for xen 3.2-1.

Tomorrow I'll try to get my old Etch VMs there too. (2.6.18 32bit domU made for 
Xen 3.0.3)

> > 2) If yes (hope so :-), what's wrong with the above install/config,
> >   or what have I missed?

I guess your pygrub doesn't find the right kernel on your VM's disk image.

Try to mount the image in dom0, copy the kernel and initrd to /boot/foo/

Edit your config file /etc/xen/vm/M08 and replace

 bootloader      = '/usr/lib/xen-default/bin/pygrub'

with

 #bootloader      = '/usr/lib/xen-default/bin/pygrub'
 root = '/boot/foo/vmlinuz-blah'
 ramdisk= '/boot/foo/initrd-blah'

Don't forget to umount the VM's disk image and try again
xm create /etc/xen/vm/M08

Good luck :-)

> 
> You need the "top" Xen version to run as an HVM guest on the bottom
> Xen. So, for your case, make your Xen3 Xen domU an HVM domain. That
> should work.
>
> Hope that helps.
> 
> Thanks,
> Todd

AFAIK pygrub is only for PVM, isn't it? So I assume that Wolf tries 
to get an older PVM guest to run on a relatively recent hypervisor/dom0

cheers
-henrik


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

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