Thomas Richard
2010-Jun-16 16:12 UTC
[Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
Hey all,
I tried to install xen 4.0.1-rc3pre on my ubuntu installation. The
installation seemed to work. I also compiled my own dom0 kernel
(2.6.32.15). The kernel works perfect when i boot it without xen.
However, when i want to start the xen hypervisor i get the following
error from grub: "Error: couldn''t open file", followed by
some lines
that say that the multiboot kernel should be loaded first.
This is my menu entry:
menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set root=''(hd2,2)''
multiboot (hd2,2)/boot/xen.gz /boot/xen.gz
module (hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat
root=/dev/sdc2 ro console=tty0 ro console=tty0
module (hd2,2)/boot/initrd.img-2.6.32.15-xenpci
}
I''m pretty sure that hd2,2 is correct as booting the linux kernel with
that drive as root works. I also tried without the /boot but that
didn''t help. Does anyone have an idea what causes this problem?
Thanks
Thomas Richard
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Bruce Edge
2010-Jun-16 16:28 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
On Wed, Jun 16, 2010 at 9:12 AM, Thomas Richard <thomas9999@gmail.com>wrote:> Hey all, > > I tried to install xen 4.0.1-rc3pre on my ubuntu installation. The > installation seemed to work. I also compiled my own dom0 kernel > (2.6.32.15). The kernel works perfect when i boot it without xen. > However, when i want to start the xen hypervisor i get the following > error from grub: "Error: couldn''t open file", followed by some lines > that say that the multiboot kernel should be loaded first. > > This is my menu entry: > menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" { > insmod ext2 > set root=''(hd2,2)'' >Drop the quotes from the above?> multiboot (hd2,2)/boot/xen.gz /boot/xen.gz > module (hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat > root=/dev/sdc2 ro console=tty0 ro console=tty0 >I had some problems with different xen / dom0 combinations not being able to handle all forms of root fs designations,. Try the "root=UUID= ... " format on the kernel command line. -Bruce module (hd2,2)/boot/initrd.img-2.6.32.15-xenpci> } > > I''m pretty sure that hd2,2 is correct as booting the linux kernel with > that drive as root works. I also tried without the /boot but that > didn''t help. Does anyone have an idea what causes this problem? > > Thanks > Thomas Richard > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Jun-16 16:29 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
This one should work:-
menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set
root=''(hd2,2)''
multiboot (hd2,2)/boot/xen.gz dummy=dummy
module
(hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat root=/dev/sdc2
ro console=tty0
module
(hd2,2)/boot/initrd.img-2.6.32.15-xenpci
}
My current env :-
menuentry "Xen 4.0 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set root=''(hd0,9)''
multiboot (hd0,9)/boot/xen.gz dummy=dummy
module (hd0,9)/boot/vmlinuz-2.6.32.15 dummy=dummy nopat root=/dev/sda9 ro
console=tty0
module (hd0,9)/boot/initrd.img-2.6.32.15
}
Boris.
--- On Wed, 6/16/10, Thomas Richard <thomas9999@gmail.com> wrote:
From: Thomas Richard <thomas9999@gmail.com>
Subject: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
To: xen-users@lists.xensource.com
Date: Wednesday, June 16, 2010, 12:12 PM
Hey all,
I tried to install xen 4.0.1-rc3pre on my ubuntu installation. The
installation seemed to work. I also compiled my own dom0 kernel
(2.6.32.15). The kernel works perfect when i boot it without xen.
However, when i want to start the xen hypervisor i get the following
error from grub: "Error: couldn''t open file", followed by
some lines
that say that the multiboot kernel should be loaded first.
This is my menu entry:
menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set root=''(hd2,2)''
multiboot (hd2,2)/boot/xen.gz /boot/xen.gz
module (hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat
root=/dev/sdc2 ro console=tty0 ro console=tty0
module (hd2,2)/boot/initrd.img-2.6.32.15-xenpci
}
I''m pretty sure that hd2,2 is correct as booting the linux kernel with
that drive as root works. I also tried without the /boot but that
didn''t help. Does anyone have an idea what causes this problem?
Thanks
Thomas Richard
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Thomas Richard
2010-Jun-16 16:45 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
I tried that one, but it doesn''t seem to work either (i''ve tried it before too) What''s the approximate size of xen-4.0.1-rc3-pre.gz? Thanks Thomas Richard 2010/6/16 Boris Derzhavets <bderzhavets@yahoo.com> This one should work:-> > > menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" { > insmod ext2 > set root=''(hd2,2)'' > multiboot (hd2,2)/boot/xen.gz dummy=dummy > > module (hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat > root=/dev/sdc2 ro console=tty0 > module (hd2,2)/boot/initrd.img-2.6.32.15-xenpci > } > > My current env :- > menuentry "Xen 4.0 / Ubuntu 10.04 kernel 2.6.32.15" { > insmod ext2 > set root=''(hd0,9)'' > multiboot (hd0,9)/boot/xen.gz dummy=dummy > module (hd0,9)/boot/vmlinuz-2.6.32.15 dummy=dummy nopat root=/dev/sda9 ro > console=tty0 > module (hd0,9)/boot/initrd.img-2.6.32.15 > } > > > Boris. > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Jun-16 16:57 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
-rw-r--r-- 1 root root 672055 2010-06-16 19:57 xen-4.0.1-rc3-pre.gz
lrwxrwxrwx 1 root root 20 2010-06-16 19:57 xen-4.0.gz ->
xen-4.0.1-rc3-pre.gz
lrwxrwxrwx 1 root root 20 2010-06-16 19:57 xen-4.gz ->
xen-4.0.1-rc3-pre.gz
lrwxrwxrwx 1 root root 20 2010-06-16 19:57 xen.gz ->
xen-4.0.1-rc3-pre.gz
--- On Wed, 6/16/10, Thomas Richard <thomas9999@gmail.com> wrote:
From: Thomas Richard <thomas9999@gmail.com>
Subject: Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
To: xen-users@lists.xensource.com
Date: Wednesday, June 16, 2010, 12:45 PM
I tried that one, but it doesn''t seem to work either (i''ve
tried it before too)
What''s the approximate size of xen-4.0.1-rc3-pre.gz?
Thanks
Thomas Richard
2010/6/16 Boris Derzhavets <bderzhavets@yahoo.com>
This one should work:-
menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set
root=''(hd2,2)''
multiboot (hd2,2)/boot/xen.gz dummy=dummy
module
(hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat root=/dev/sdc2
ro console=tty0
module
(hd2,2)/boot/initrd.img-2.6.32.15-xenpci
}
My current env :-
menuentry "Xen 4.0 / Ubuntu 10.04 kernel 2.6.32.15" {
insmod ext2
set root=''(hd0,9)''
multiboot (hd0,9)/boot/xen.gz dummy=dummy
module (hd0,9)/boot/vmlinuz-2.6.32.15 dummy=dummy nopat root=/dev/sda9 ro
console=tty0
module (hd0,9)/boot/initrd.img-2.6.32.15
}
Boris.
-----Inline Attachment Follows-----
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Bruce Edge
2010-Jun-16 16:59 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
On Wed, Jun 16, 2010 at 9:45 AM, Thomas Richard <thomas9999@gmail.com>wrote:> I tried that one, but it doesn''t seem to work either (i''ve tried it before > too) > What''s the approximate size of xen-4.0.1-rc3-pre.gz? >665788 Jun 13 09:19 xen-4.0.1-rc3-pre.gz> Thanks > Thomas Richard > > 2010/6/16 Boris Derzhavets <bderzhavets@yahoo.com> > > This one should work:- >> >> >> menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.15" { >> insmod ext2 >> set root=''(hd2,2)'' >> multiboot (hd2,2)/boot/xen.gz dummy=dummy >> >> module (hd2,2)/boot/vmlinuz-2.6.32.15-xenpci dummy=dummy nopat >> root=/dev/sdc2 ro console=tty0 >> module (hd2,2)/boot/initrd.img-2.6.32.15-xenpci >> } >> >> My current env :- >> menuentry "Xen 4.0 / Ubuntu 10.04 kernel 2.6.32.15" { >> insmod ext2 >> set root=''(hd0,9)'' >> multiboot (hd0,9)/boot/xen.gz dummy=dummy >> module (hd0,9)/boot/vmlinuz-2.6.32.15 dummy=dummy nopat root=/dev/sda9 ro >> console=tty0 >> module (hd0,9)/boot/initrd.img-2.6.32.15 >> } >> >> >> Boris. >> >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Richard
2010-Jun-16 17:09 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
Hm, mine is around the same size. I added the grub entry in /etc/grub.d/40_custom and ran update-grub afterwards (and after every change of course). That''s correct, right? I''m out of ideas about the possible problem. Op 16/06/2010 18:59, Bruce Edge schreef:> > On Wed, Jun 16, 2010 at 9:45 AM, Thomas Richard <thomas9999@gmail.com > <mailto:thomas9999@gmail.com>> wrote: > > I tried that one, but it doesn''t seem to work either (i''ve tried > it before too) > What''s the approximate size of xen-4.0.1-rc3-pre.gz? > > > 665788 Jun 13 09:19 xen-4.0.1-rc3-pre.gz > > > Thanks > Thomas Richard > > 2010/6/16 Boris Derzhavets <bderzhavets@yahoo.com > <mailto:bderzhavets@yahoo.com>> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Richard
2010-Jun-17 19:03 UTC
Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04)
I was finally able to fix my problem. For some strange reason when doing a multiboot i had to specify (hd1,2) instead of (hd2,2). Maybe i need to file a bugreport against grub for this. I can''t find any logical explanation for this. Greetings Thomas Op 16/06/2010 19:09, Thomas Richard schreef:> Hm, mine is around the same size. > > I added the grub entry in > /etc/grub.d/40_custom > > and ran update-grub afterwards (and after every change of course). > That''s correct, right? > I''m out of ideas about the possible problem. > > Op 16/06/2010 18:59, Bruce Edge schreef: >> >> On Wed, Jun 16, 2010 at 9:45 AM, Thomas Richard <thomas9999@gmail.com >> <mailto:thomas9999@gmail.com>> wrote: >> >> I tried that one, but it doesn''t seem to work either (i''ve tried >> it before too) >> What''s the approximate size of xen-4.0.1-rc3-pre.gz? >> >> >> 665788 Jun 13 09:19 xen-4.0.1-rc3-pre.gz >> >> >> Thanks >> Thomas Richard >> >> 2010/6/16 Boris Derzhavets <bderzhavets@yahoo.com >> <mailto:bderzhavets@yahoo.com>> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz
2010-Jun-17 22:42 UTC
[Xen-users] Re: Problem with grub2 and xen (Ubuntu 10.04)
17.06.2010 21:03, Thomas Richard wrote:> I was finally able to fix my problem. For some strange reason when doing > a multiboot i had to specify (hd1,2) instead of (hd2,2). Maybe i need to > file a bugreport against grub for this. I can''t find any logical > explanation for this. > > Greetings > ThomasI also think its a grub2 problem maybe in combination with some "exotic" hardware configurations (let me guess, you are using fakeraid on hd0 and hd1 with hd2 being a plain disk?) I''m encountering exactly the same issue, except that I *cannot* solve it by using (hd1,1) instead of the "real" (hd2,1). I know that there is no mistake in my grub config, I''m using the same kernel with the same grub config to boot on bare metal, but as soon as I add multiboot and xen there are stange errors: - when loading xen.gz like "(hd2,1)/boot/xen.gz" it does not work (error message same as Thomas: "need to load multiboot kernel first") - when entering the grub shell and trying to autocomplete (using tab) to /boot/xen.gz the system reboots itself while doing so - when loading xen.gz like "/xen.gz" (with a copy of xen.gz outside the boot dir) it loads xen, but then complains about no dom0 kernel being specified (this also persist when trying to take a copy of the vmlinuz outside of /boot to /) This is my first Ubuntu *and* grub2 system, usually I''m running Gentoo and grub... thought things (especially updates) may get less time consuming using Ubuntu... lesson learned and back to Gentoo! Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users