Nico Prenzel
2007-Oct-01 15:26 UTC
[Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
Hey folks, this is my first contact to XEN-users list. So please be patient if I missed something. I''ve searched a lot before writing this email. My problem: I do have a non-VT/Pacifica box (an old IBM Laptop). There I''ve got already Xen installed (Dom0, 2.6.18-xen0). Now I''ve tried to use the newest vanilla kernel from Kernel.org (at this time: 2.6.23-rc8). As commonly known this Kernel now does include the DomU patches needed to run this kernel as DomU under Dom0. So, I''ve compiled the 2.6.23-rc8 with the XEN specific settings, stated somewhere at user or devel list (i''ll include all my config settings to this email) and tried to start my newly compiled and created xen-domain. But I do get the following error after issuing: xm create /etc/xen/szpn0005.intern.pn-systeme.de.cfg -c Using config file "/etc/xen/szpn0005.intern.pn-systeme.de.cfg". Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') The first time I tried to build an DomU from the same kernel sources used for the Dom0. At this time all went fine and the DomU went up fine. So my general procedure could not be totaly wrong. So, what need to be done to run the new 2.6.23.* as DomU at top of default Dom0? PS: I''ll attach all xen-logs/configs and kernel configs that could make sense. Thanks & Greetings. NicoP. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Prenzel
2007-Oct-08 14:49 UTC
[Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
[This email is either empty or too large to be displayed at this time]
Nico Prenzel
2007-Oct-09 11:35 UTC
[Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
Hello Mark, you''ve been absolutely right. If I do boot the newly created 2.6.23-rc8 kernel I see in the early stages an message stating: [Linux-bzImage] So, it looks like i''am trying to boot an bzImage linux kernel. At my linux-source directory, I''ve found one big vmlinux (45 MB). But this file also gives me the same error message. If i do issue the following command, i do get the following (I''ve now switched to 2.6.23-rc9): debian:/home/linux-2.6.23-rc9# objdump -j __xen_guest -s ./vmlinux ./vmlinux: file format elf32-i386 With my 2.6.18 (default DomU) i do get the following output: debian:/home/xen-3.1# objdump -j __xen_guest -s ./build-linux-2.6.18-xen_x86_32/vmlinux ./build-linux-2.6.18-xen_x86_32/vmlinux: file format elf32-i386 Contents of section __xen_guest: 0000 47554553 545f4f53 3d6c696e 75782c47 GUEST_OS=linux,G 0010 55455354 5f564552 3d322e36 2c58454e UEST_VER=2.6,XEN 0020 5f564552 3d78656e 2d332e30 2c564952 _VER=xen-3.0,VIR 0030 545f4241 53453d30 78433030 30303030 T_BASE=0xC000000 0040 302c454c 465f5041 4444525f 4f464653 0,ELF_PADDR_OFFS 0050 45543d30 78433030 30303030 302c5649 ET=0xC0000000,VI 0060 52545f45 4e545259 3d307843 30313030 RT_ENTRY=0xC0100 0070 3030302c 48595045 5243414c 4c5f5041 000,HYPERCALL_PA 0080 47453d30 78313031 2c464541 54555245 GE=0x101,FEATURE 0090 533d7772 69746162 6c655f70 6167655f S=writable_page_ 00a0 7461626c 65737c77 72697461 626c655f tables|writable_ 00b0 64657363 72697074 6f725f74 61626c65 descriptor_table 00c0 737c6175 746f5f74 72616e73 6c617465 s|auto_translate 00d0 645f7068 79736d61 707c7061 655f7067 d_physmap|pae_pg 00e0 6469725f 61626f76 655f3467 627c7375 dir_above_4gb|su 00f0 70657276 69736f72 5f6d6f64 655f6b65 pervisor_mode_ke 0100 726e656c 2c504145 3d796573 5b657874 rnel,PAE=yes[ext 0110 656e6465 642d6372 335d2c4c 4f414445 ended-cr3],LOADE 0120 523d6765 6e657269 6300 R=generic. debian:/home/xen-3.1#>>What version of Xen are you running?I''ve installed the latest xen form testing. Until now: 3.1.1-rc3 Xen-tools: 3.8>>Can you stick the kernel online >>somewhere so others can have a go at booting it on their systems?Currently, I''ve got no webpage active. So, at this time I think the build process from vanilla kernel isn''t doing the right thing. Greetings. NicoP. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Prenzel
2007-Oct-10 12:58 UTC
[Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
Hello, as you can see here, the problem could be reproduced by others too. [Xen-users] Boot error with 2.6.23 domU http://lists.xensource.com/archives/html/xen-users/2007-10/msg00266.html Any ideas to solve this? Regards, NicoP. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Oct-11 01:29 UTC
Re: [Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
> At my linux-source directory, I''ve found one big vmlinux (45 MB). But this > >>Can you stick the kernel online > >>somewhere so others can have a go at booting it on their systems? > > Currently, I''ve got no webpage active. So I''ve packaged the created kernel > here: >Hmmm. The kernel vmlinuz you sent me doesn''t register as a valid gzip file, so maybe it is a bzImage. Anyhow, I get "invalid argument" from Linux too, which is what I''d expect. By the way, there''s work being done to modify the bzImage format so that it contains the information necessary for it to boot directly on Xen. But it''s of a tricky process. I''ve not tried building a kernel.org kernel for Xen recently but I might be able to have a good at it and see what happens... Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Oct-11 03:31 UTC
Re: [Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
[This email is either empty or too large to be displayed at this time]
Nico Prenzel
2007-Oct-11 18:37 UTC
Antwort: Re: [Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
Thanks Mark, i''ve tried to boot your vmlinuz you''ve sent me and magic.. it works! Kernel name is something with "*maw48*". Summary the results: - my Dom0 could boot 2.6.23-kernels - xen 3.1.1-rc3 is capable of running 2.6.23-kernels - one more point is, that you''ve compiled your kernel with 4.1.2 (Ubuntu), me with 4.1.1-21 (Debian) Next, i''ll try to compile a kernel (final 2.6.23) and try to strip/gzip it and try to boot. Do you''ve set some non-default kernel settings to the kernel you''ve sent me? PS: I''ll keep at it since it will work with my configuration. :-) Cheers, NicoP "M.A. Williamson" <maw48@hermes.cam.ac.uk> schrieb am 11.10.2007 05:31:22:> > At my linux-source directory, I''ve found one big vmlinux (45 MB). Butthis> > file also gives me the same error message. > > That''s odd; if Xen support was built in correctly I''d expect that towork.> > > If i do issue the following command, i do get the following (I''ve now > > switched to 2.6.23-rc9): > > debian:/home/linux-2.6.23-rc9# objdump -j __xen_guest -s ./vmlinux > > > > ./vmlinux: file format elf32-i386 > > My vmlinux gives me back this too... > > I think this is because the newer way of specifying XenLinux informationis> via elf notes. The kernel.org merge omits legacy stuff. > > If you do readelf -n ./vmlinux you ought to see some Linux stuff comeback.> > > >>What version of Xen are you running? > > > > I''ve installed the latest xen form testing. Until now: 3.1.1-rc3 > > Xen-tools: 3.8 > > I''m running something ancient like 3.0.3. I''m in the process ofupgrading ;-)> > > So, at this time I think the build process from vanilla kernel isn''tdoing> > the right thing. > > I tried the build with the 2.6.23 release and successfully booted it onmy> system. I didn''t bother giving it any disks, just ran it long enough tosee> some console output... > > Bear in mind that the mainline Linux implementation of Xen uses more / > different common infrastructure and thus does things in different waysto the> XenLinux the Xen project releases directly. For instance, the consoledevice> used by mainline Linux to talk to the Xen console driver is hvc0 (acommon> hypervisor console device) rather than something Xen-specific. > > So even once you''ve got a kernel that Xen will start, you''ll need to > pass "console=hvc0" on the command line if you want it to talk to youduring> boot ;-) This confused me for a bit tonight until I figured it out! > > > > Anyhow, the release of 2.6.23 should *definitely* give you a vmlinuxthatcan> boot. Most of the size comes from symbols information, so if you stripthe> vmlinux it''ll come down to a couple of megabytes first, anyhow. I then > gzipped mine and renamed it to vmlinuz, then successfully booted that > (1.4Meg) kernel image under Xen - which worked fine too. I''m not sureif> there''s a sanctioned way to get do the strip / gzip in the kernel build > process, but doing it manually worked for me! > > Maybe you could try again, possibly with the 2.6.23 release, and wecould try> and debug any problems you see there? > > Cheers, > Mark > > PS. I''ve attached the vmlinuz I just built for reference. This oneisbuilt> to use PAE, so if you have a non-PAE Xen then it won''t boot. > > --_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Oct-15 15:39 UTC
Re: [Xen-users] "''Invalid kernel'', ''xc_dom_find_loader: no loader found\n" with new vanilla 2.6.23-rc8
What image are you trying to boot? You can''t boot the bzImage (yet), but the vmlinux should be bootable. I''ve managed to get the SMP version of the 2.6.23 release booting over here successfully. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users