* grub 2 and booting xen dom0
@ 2008-02-18 9:48 Matthew
2008-02-18 12:52 ` Pavel Roskin
0 siblings, 1 reply; 7+ messages in thread
From: Matthew @ 2008-02-18 9:48 UTC (permalink / raw)
To: grub-devel
Hi,
I'm trying to boot a xen-3.1.gz with grub2, but without any luck. The
only message I get is:
Error: Invalid magic number
after specifying
linux /boot/xen-3.0.gz dom0_mem=262144
Another question:
What should I use instead of the module command (from grub legacy).
The xen docs instruct to use:
title Xen 3.0 / XenLinux 2.6
kernel /boot/xen-3.0.gz dom0_mem=262144
module /boot/vmlinuz-2.6-xen0 root=/dev/sda4 ro console=tty0
module /boot/my_initrd.gz
for specifying the xenLinux kernel and initrd. For kernel we have the
linux command in grub2, but what (or how) to use insted of the module
(of course, with the former meaning as in grub legacy).
Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-18 9:48 grub 2 and booting xen dom0 Matthew
@ 2008-02-18 12:52 ` Pavel Roskin
2008-02-18 14:52 ` Robert Millan
2008-02-25 9:50 ` Matthew
0 siblings, 2 replies; 7+ messages in thread
From: Pavel Roskin @ 2008-02-18 12:52 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, 2008-02-18 at 10:48 +0100, Matthew wrote:
> The xen docs instruct to use:
>
> title Xen 3.0 / XenLinux 2.6
> kernel /boot/xen-3.0.gz dom0_mem=262144
> module /boot/vmlinuz-2.6-xen0 root=/dev/sda4 ro console=tty0
> module /boot/my_initrd.gz
>
>
> for specifying the xenLinux kernel and initrd. For kernel we have the
> linux command in grub2, but what (or how) to use insted of the module
> (of course, with the former meaning as in grub legacy).
"kernel" is "multiboot" in GRUB 2, not "linux", but "module" is still
"module". Also, you may want to try uncompressed images and modules.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-18 12:52 ` Pavel Roskin
@ 2008-02-18 14:52 ` Robert Millan
2008-02-25 9:50 ` Matthew
1 sibling, 0 replies; 7+ messages in thread
From: Robert Millan @ 2008-02-18 14:52 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Feb 18, 2008 at 07:52:10AM -0500, Pavel Roskin wrote:
> On Mon, 2008-02-18 at 10:48 +0100, Matthew wrote:
>
> > The xen docs instruct to use:
> >
> > title Xen 3.0 / XenLinux 2.6
> > kernel /boot/xen-3.0.gz dom0_mem=262144
> > module /boot/vmlinuz-2.6-xen0 root=/dev/sda4 ro console=tty0
> > module /boot/my_initrd.gz
> >
> >
> > for specifying the xenLinux kernel and initrd. For kernel we have the
> > linux command in grub2, but what (or how) to use insted of the module
> > (of course, with the former meaning as in grub legacy).
>
> "kernel" is "multiboot" in GRUB 2, not "linux",
Well, it can even be "linux"! Too bad "kernel" in GRUB Legacy meant so
many things ;-)
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-18 12:52 ` Pavel Roskin
2008-02-18 14:52 ` Robert Millan
@ 2008-02-25 9:50 ` Matthew
2008-02-25 11:38 ` Bean
1 sibling, 1 reply; 7+ messages in thread
From: Matthew @ 2008-02-25 9:50 UTC (permalink / raw)
To: The development of GRUB 2
Pavel Roskin wrote:
> "kernel" is "multiboot" in GRUB 2, not "linux", but "module" is still
> "module". Also, you may want to try uncompressed images and modules.
>
The multiboot hint was very usefull, thanks...
But strange undeterministic things happen now... :(
snippet from my grub.cfg:
menuentry "xen" {
multiboot /boot/xen-3.0.gz dom0_mem=512M
module /boot/vmlinuz-2.6.22-14-xen root=/dev/mapper/mainVG-rootLV ro
module /boot/initrd.img-2.6.22-14-xen
}
when I try to boot this directly, it says:
"error: you need to load multiboot kernel first"
When I type manually (go to the grub command line after bios boot)
multiboot /boot/xen-3.0.gz dom0_mem=512M
it loads the xen and complains about not having any xenlinux
kernel specified
When I type:
multiboot /boot/xen-3.0.gz dom0_mem=512M
module /boot/vmlinuz-2.6.22-14-xen
It starts booting, but complains about the root device (which is
obvious)
But when I type:
multiboot /boot/xen-3.0.gz dom0_mem=512M
module /boot/vmlinuz-2.6.22-14-xen root=/dev/mapper/mainVG-rootLV ro
It starts booting but sometimes the error message is same as
previous one (like there is no root option), sometimes there is wierd
characters in root=....
It looks like grub is not passing the arguments after file in
module command correctly to the kernel. (But take it just as my guess)
Has anybody some hints what to do/try next?
Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-25 9:50 ` Matthew
@ 2008-02-25 11:38 ` Bean
2008-02-28 10:19 ` Robert Millan
0 siblings, 1 reply; 7+ messages in thread
From: Bean @ 2008-02-25 11:38 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Feb 25, 2008 at 5:50 PM, Matthew <Matthew@centrum.sk> wrote:
>
> Pavel Roskin wrote:
> > "kernel" is "multiboot" in GRUB 2, not "linux", but "module" is still
> > "module". Also, you may want to try uncompressed images and modules.
> >
> The multiboot hint was very usefull, thanks...
> But strange undeterministic things happen now... :(
>
> snippet from my grub.cfg:
>
> menuentry "xen" {
> multiboot /boot/xen-3.0.gz dom0_mem=512M
> module /boot/vmlinuz-2.6.22-14-xen root=/dev/mapper/mainVG-rootLV ro
> module /boot/initrd.img-2.6.22-14-xen
> }
>
>
> when I try to boot this directly, it says:
> "error: you need to load multiboot kernel first"
>
> When I type manually (go to the grub command line after bios boot)
> multiboot /boot/xen-3.0.gz dom0_mem=512M
> it loads the xen and complains about not having any xenlinux
> kernel specified
>
> When I type:
> multiboot /boot/xen-3.0.gz dom0_mem=512M
> module /boot/vmlinuz-2.6.22-14-xen
> It starts booting, but complains about the root device (which is
> obvious)
>
> But when I type:
> multiboot /boot/xen-3.0.gz dom0_mem=512M
> module /boot/vmlinuz-2.6.22-14-xen root=/dev/mapper/mainVG-rootLV ro
> It starts booting but sometimes the error message is same as
> previous one (like there is no root option), sometimes there is wierd
> characters in root=....
> It looks like grub is not passing the arguments after file in
> module command correctly to the kernel. (But take it just as my guess)
>
>
> Has anybody some hints what to do/try next?
The old multiboot loader doesn't set the boot device, perhaps you can
try my patch and see if it works:
--
Bean
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-25 11:38 ` Bean
@ 2008-02-28 10:19 ` Robert Millan
2008-02-28 11:38 ` Bean
0 siblings, 1 reply; 7+ messages in thread
From: Robert Millan @ 2008-02-28 10:19 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Feb 25, 2008 at 07:38:35PM +0800, Bean wrote:
>
> The old multiboot loader doesn't set the boot device, perhaps you can
> try my patch and see if it works:
You forgot to attach it.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub 2 and booting xen dom0
2008-02-28 10:19 ` Robert Millan
@ 2008-02-28 11:38 ` Bean
0 siblings, 0 replies; 7+ messages in thread
From: Bean @ 2008-02-28 11:38 UTC (permalink / raw)
To: The development of GRUB 2
On Thu, Feb 28, 2008 at 6:19 PM, Robert Millan <rmh@aybabtu.com> wrote:
> On Mon, Feb 25, 2008 at 07:38:35PM +0800, Bean wrote:
> >
> > The old multiboot loader doesn't set the boot device, perhaps you can
> > try my patch and see if it works:
>
> You forgot to attach it.
It's in the thread "Handling command line option for core.img and g2ldr".
--
Bean
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-02-28 11:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 9:48 grub 2 and booting xen dom0 Matthew
2008-02-18 12:52 ` Pavel Roskin
2008-02-18 14:52 ` Robert Millan
2008-02-25 9:50 ` Matthew
2008-02-25 11:38 ` Bean
2008-02-28 10:19 ` Robert Millan
2008-02-28 11:38 ` Bean
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.