Hey folks, I have a non-VT/Pacifica box. I have happily running PVM domUs with distro kernels. I need to test some mainline code (unrelated to virtualization). Xen 3.1 x86_64 in dom0. So, I build a mainline 32bit kernel with CONFIG_XEN. The files in arch/i386/xen seem to be built just fine, but I can''t figure out what object to boot. bzImage fails with: ---------------------------------------------------------------------- Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') ---------------------------------------------------------------------- I also tried vmlinux.bin, which gets the same. I tried arch/i386/boot/compressed/vmlinux, but that gets: ---------------------------------------------------------------------- Error: (2, ''Invalid kernel'', "elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF notes or ''__xen_guest'' section found.\n") ---------------------------------------------------------------------- Lastly I tried vmlinux from the toplevel kernel source directory, and that just appears to hang the domU. What am I doing wrong? Is there a particular make target I''m supposed to use? A particular kernel image file I''m not seeing? Joel -- Life''s Little Instruction Book #407 "Every once in a while, take the scenic route." Joel Becker Principal Software Developer Oracle E-mail: joel.becker@oracle.com Phone: (650) 506-8127 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I have a non-VT/Pacifica box. I have happily running PVM domUs > with distro kernels. I need to test some mainline code (unrelated to > virtualization). Xen 3.1 x86_64 in dom0. So, I build a mainline 32bit > kernel with CONFIG_XEN. The files in arch/i386/xen seem to be built > just fine, but I can''t figure out what object to boot. bzImage fails > with: > > ---------------------------------------------------------------------- > Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') > ---------------------------------------------------------------------- > > I also tried vmlinux.bin, which gets the same. I tried > arch/i386/boot/compressed/vmlinux, but that gets: > > ---------------------------------------------------------------------- > Error: (2, ''Invalid kernel'', "elf_xen_note_check: ERROR: Not a Xen-ELF > image: No ELF notes or ''__xen_guest'' section found.\n") > ---------------------------------------------------------------------- > > Lastly I tried vmlinux from the toplevel kernel source > directory, and that just appears to hang the domU. > What am I doing wrong? Is there a particular make target I''m > supposed to use? A particular kernel image file I''m not seeing?First off, I take it you''ve compiled the guest with PAE? Only PAE guests will run under x86_64 Xen. Second, you should be fine off using the top level vmlinux / vmlinuz. bzImage won''t (yet) work. Thirdly, confusingly, vanilla 3.1 doesn''t properly handle pre-3.1-era 32-bit guest kernels. I believe changes to fix this are in the unstable tree... If the mainline kernel doesn''t use the latest post-3.1 interfaces then maybe this is the problem you''re seeing. In which case a newer Xen / tools (and possibly dom0) might solve it. These are my guesses; I''ve not tried Xen64, nor using a mainline kernel myself, though so YMMV, sorry. 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
On Fri, Aug 24, 2007 at 03:55:24PM +0100, Mark Williamson wrote:> First off, I take it you''ve compiled the guest with PAE? Only PAE guests will > run under x86_64 Xen.I''ll check on that.> Second, you should be fine off using the top level vmlinux / vmlinuz. bzImage > won''t (yet) work.The toplevel vmlinux is 66MB! How to shrink it? Is strip(1) safe?> Thirdly, confusingly, vanilla 3.1 doesn''t properly handle pre-3.1-era 32-bit > guest kernels. I believe changes to fix this are in the unstable tree... If > the mainline kernel doesn''t use the latest post-3.1 interfaces then maybe > this is the problem you''re seeing. In which case a newer Xen / tools (and > possibly dom0) might solve it.This was Linus'' mainline git tree as of my email. I "hope" that''s new enough :-)> These are my guesses; I''ve not tried Xen64, nor using a mainline kernel > myself, though so YMMV, sorry.Thanks, I''ll let you know how it turns out! Joel -- Life''s Little Instruction Book #94 "Make it a habit to do nice things for people who will never find out." Joel Becker Principal Software Developer Oracle E-mail: joel.becker@oracle.com Phone: (650) 506-8127 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Aug 24, 2007 at 03:49:24PM -0700, Joel Becker wrote:> On Fri, Aug 24, 2007 at 03:55:24PM +0100, Mark Williamson wrote: > > First off, I take it you''ve compiled the guest with PAE? Only PAE guests will > > run under x86_64 Xen. > > I''ll check on that.PAE is, indeed, enabled. Joel -- "Vote early and vote often." - Al Capone Joel Becker Principal Software Developer Oracle E-mail: joel.becker@oracle.com Phone: (650) 506-8127 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users