pradeep singh rautela
2008-Feb-01 08:57 UTC
[Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
Hi I thought linux 2.6.24 kernel can be booted as a PV guest kernel under Xen. So I have these two important options enabled in my guest PV kernel config i.e CONFIG_VIRTUALIZATION=y CONFIG_PARAVIRT_GUEST=y Apart from this i also enabled support for Blockfront and Netfront drivers AFAIR. Unfortunately i was not able to boot it successfully. I get this error - Using config file "./elf.pv". Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') My domain0 is a 32-bit kernel and I am trying to boot a 32 bit PV guest.Underlying hardware is a 64-bit Pentium D processor on an Intel motherboard. What am i missing here? Any help? Do i need to take care of something special? Thanks, --Pradeep -- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, 2008-02-01 at 14:27 +0530, pradeep singh rautela wrote:> Using config file "./elf.pv". > Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'')Which output file are you using as your kernel? Currently arch/*/boot/bzImage doesn''t work -- you have to use the vmlinux file from the top level. You can strip and compress it if you like. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-01 12:54 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
On 01/02/2008, Ian Campbell <Ian.Campbell@citrix.com> wrote:> > On Fri, 2008-02-01 at 14:27 +0530, pradeep singh rautela wrote: > > Using config file "./elf.pv". > > Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') > > Which output file are you using as your kernel? Currently > arch/*/boot/bzImage doesn''t work -- you have to use the vmlinux file > from the top level. You can strip and compress it if you like. >Thanks Ian. Now i am stuck with this error message :-/ root@helvella:/opt/repo/images/elf# xm create elf.pv -c Using config file "./elf.pv". Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') Sorry for my stupid query but is there something special i need to do with 2.6.24 kernel? Thanks, --Pradeep> Ian. > > >-- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2008-Feb-01 19:49 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
pradeep singh rautela wrote:> Hi > > I thought linux 2.6.24 kernel can be booted as a PV guest kernel under Xen. > So I have these two important options enabled in my guest PV kernel config i.e > CONFIG_VIRTUALIZATION=y > CONFIG_PARAVIRT_GUEST=y >Did you also enable CONFIG_XEN? Not much will happen without that. J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-04 04:31 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
Hi Jeremy, On 02/02/2008, Jeremy Fitzhardinge <jeremy@goop.org> wrote:> pradeep singh rautela wrote: > > Hi > > > > I thought linux 2.6.24 kernel can be booted as a PV guest kernel under Xen. > > So I have these two important options enabled in my guest PV kernel config i.e > > CONFIG_VIRTUALIZATION=y > > CONFIG_PARAVIRT_GUEST=y > > > > Did you also enable CONFIG_XEN? Not much will happen without that.I cannot find any such config option in my config-2.6.24. luser@helvella:/boot$ grep CONFIG_XEN config-2.6.24 luser@helvella:/boot$ grep XEN config-2.6.24 luser@helvella:/boot$ grep PARA config-2.6.24 CONFIG_PARAVIRT_GUEST=y luser@helvella:/boot$ grep -i CONFIG_XEN config-2.6.24 luser@helvella:/boot$ grep -i XEN config-2.6.24 Looks like I am missing something here.Why is the option missing in my config file? Pardon my stupidity but It ll be helpful if you can explain why is the option missing? Thanks, --Pradeep> J >-- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2008-Feb-04 04:53 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
pradeep singh rautela wrote:> Hi Jeremy, > On 02/02/2008, Jeremy Fitzhardinge <jeremy@goop.org> wrote: > >> pradeep singh rautela wrote: >> >>> Hi >>> >>> I thought linux 2.6.24 kernel can be booted as a PV guest kernel under Xen. >>> So I have these two important options enabled in my guest PV kernel config i.e >>> CONFIG_VIRTUALIZATION=y >>> CONFIG_PARAVIRT_GUEST=y >>> >>> >> Did you also enable CONFIG_XEN? Not much will happen without that. >> > > I cannot find any such config option in my config-2.6.24. > > luser@helvella:/boot$ grep CONFIG_XEN config-2.6.24 > luser@helvella:/boot$ grep XEN config-2.6.24 > luser@helvella:/boot$ grep PARA config-2.6.24 > CONFIG_PARAVIRT_GUEST=y > luser@helvella:/boot$ grep -i CONFIG_XEN config-2.6.24 > luser@helvella:/boot$ grep -i XEN config-2.6.24 > > Looks like I am missing something here.Why is the option missing in my > config file? > Pardon my stupidity but It ll be helpful if you can explain why is the > option missing? >Not sure. Could you send your whole .config? Are you compiling a 64-bit kernel? J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-04 09:00 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
On 04/02/2008, Jeremy Fitzhardinge <jeremy@goop.org> wrote: [snip]> >> Did you also enable CONFIG_XEN? Not much will happen without that. > >> > > > > I cannot find any such config option in my config-2.6.24. > > > > luser@helvella:/boot$ grep CONFIG_XEN config-2.6.24[...]> > Pardon my stupidity but It ll be helpful if you can explain why is the > > option missing? > > > > Not sure. Could you send your whole .config? Are you compiling a > 64-bit kernel?No I am compiling a 32 bit kernel. And AFAIK PV guests cannot be 64 bit yet, isn''t it? Please find my .config as an attachment to this mail. BTW, i tried to have a look at the Kconfig files in the source directory and here is my naive interpretation. - if PARAVIRT_GUEST is "y", arch/x86/xen/Kconfig will be read.But i did not get the submenu related to Xen.I got menu option(s) only related to VMI and Lguest. Thanks, Pradeep -- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, 2008-02-04 at 14:30 +0530, pradeep singh rautela wrote:> CONFIG_M586=y > # CONFIG_M586TSC is not set > # CONFIG_M586MMX is not set > # CONFIG_M686 is not setI think you need to select M686 for Xen support to be available as an option. arch/x86/xen/Kconfig: config XEN bool "Xen guest support" select PARAVIRT depends on X86_32 depends on X86_CMPXCHG && X86_TSC && !NEED_MULTIPLE_NODES && !(X86_VISWS || X86_VOYAGER) arch/x86/Kconfig: config X86_TSC def_bool y depends on ((MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64 Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-04 10:14 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
On 04/02/2008, Ian Campbell <Ian.Campbell@citrix.com> wrote:> > On Mon, 2008-02-04 at 14:30 +0530, pradeep singh rautela wrote: > > CONFIG_M586=y > > # CONFIG_M586TSC is not set > > # CONFIG_M586MMX is not set > > # CONFIG_M686 is not set > > I think you need to select M686 for Xen support to be available as an > option.Thanks Ian that solved my problem. So this means I cannot compile a Linux PV guest kernel for generic 6x86 processors? Regards, --Pradeep> > arch/x86/xen/Kconfig: > config XEN > bool "Xen guest support" > select PARAVIRT > depends on X86_32 > depends on X86_CMPXCHG && X86_TSC && !NEED_MULTIPLE_NODES && !(X86_VISWS || X86_VOYAGER) > > arch/x86/Kconfig: > config X86_TSC > def_bool y > depends on ((MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64 > > Ian. > >-- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-04 11:36 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
Hi Ian, On 04/02/2008, pradeep singh rautela <rautelap@gmail.com> wrote: [...]> > > > I think you need to select M686 for Xen support to be available as an > > option. > > Thanks Ian that solved my problem.It solved the problem of booting. xm list shows the domU state to be running(r). But the system appears to be responding very slow to operations.Plus a xm console PV-domainU-name does not gives me anything.It appears to just hang there waiting for something. Also starting with xm create pvdomain.cfg -c does not give me anything but an endless wait with terminal completely frozen. Looks like a still a lot of stuff need to be added into upstream kernel.yes/no? Thanks, --Pradeep> > Regards, > --Pradeep > > > > arch/x86/xen/Kconfig: > > config XEN > > bool "Xen guest support" > > select PARAVIRT > > depends on X86_32 > > depends on X86_CMPXCHG && X86_TSC && !NEED_MULTIPLE_NODES && !(X86_VISWS || X86_VOYAGER) > > > > arch/x86/Kconfig: > > config X86_TSC > > def_bool y > > depends on ((MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64 > > > > Ian. > > > > > > > -- > Pradeep Singh Rautela > http://eagain.wordpress.com > http://emptydomain.googlepages.com >-- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stephan Seitz
2008-Feb-04 13:23 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
pradeep singh rautela schrieb:> On 04/02/2008, Ian Campbell <Ian.Campbell@citrix.com> wrote: >> On Mon, 2008-02-04 at 14:30 +0530, pradeep singh rautela wrote: >>> CONFIG_M586=y >>> # CONFIG_M586TSC is not set >>> # CONFIG_M586MMX is not set >>> # CONFIG_M686 is not set >> I think you need to select M686 for Xen support to be available as an >> option.Hi, does this mean, the xen capabilities in 2.6.24 vanilla are only possible on 32bit? Thanks in advance, Stephan -- Stephan Seitz Senior System Administrator *netz-haut* e.K. multimediale kommunikation zweierweg 22 97074 würzburg fon: +49 931 2876247 fax: +49 931 2876248 web: www.netz-haut.de <http://www.netz-haut.de/> registriergericht: amtsgericht würzburg, hra 5054 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2008-Feb-04 13:34 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
[snip]> >> I think you need to select M686 for Xen support to be available as an > >> option. > > Hi, > > does this mean, the xen capabilities in 2.6.24 vanilla are only possible on 32bit? >No, AFAIK PV xen capabilities in 2.6.24 vanilla kernel are possible only in 32 bit mode not on 32 bit.you can always run a 32 bit PV guest on a 64 bit dom0 and Xen. I guess 64 bit PV support is not yet existent, though Keir will be the best person to say the current status. Please CMIIW. Thanks, --Pradeep [...] -- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Daniel P. Berrange
2008-Feb-04 14:17 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
On Mon, Feb 04, 2008 at 02:23:19PM +0100, Stephan Seitz wrote:> pradeep singh rautela schrieb: > >On 04/02/2008, Ian Campbell <Ian.Campbell@citrix.com> wrote: > >>On Mon, 2008-02-04 at 14:30 +0530, pradeep singh rautela wrote: > >>>CONFIG_M586=y > >>># CONFIG_M586TSC is not set > >>># CONFIG_M586MMX is not set > >>># CONFIG_M686 is not set > >>I think you need to select M686 for Xen support to be available as an > >>option. > > does this mean, the xen capabilities in 2.6.24 vanilla are only possible on > 32bit?Yes. 64-bit paravirt_ops and 64-bit Xen impl on pv_ops are still work in progress. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2008-Feb-22 16:42 UTC
Re: [Xen-devel] Cannot boot 2.6.24 kernel as PV guest.
pradeep singh rautela wrote:> Hi Ian, > On 04/02/2008, pradeep singh rautela <rautelap@gmail.com> wrote: > [...] > >>> I think you need to select M686 for Xen support to be available as an >>> option. >>> >> Thanks Ian that solved my problem. >> > > It solved the problem of booting. > xm list shows the domU state to be running(r). > > But the system appears to be responding very slow to operations.Plus a > xm console PV-domainU-name does not gives me anything.It appears to > just hang there waiting for something. > Also starting with xm create pvdomain.cfg -c does not give me > anything but an endless wait with terminal completely frozen. > > Looks like a still a lot of stuff need to be added into upstream kernel.yes/no? >You should be getting further than this. Does xm list show the domain is running (''-''), blocked (''b'') or crashed (''c'')? If you put "console=hvc0 earlyprintk=xen" on the kernel command line, and start it with "xm create -c PV-domainU-name", what - if anything - appears? Are you running on a 64-bit Xen? J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel