I installed the Xen-3.3.0 rpms from the gitco repo today on a new CentOS 5.2 machine. I''m using only pv-CentOS guests and everything works just fine as it did with Xen 3.2. (e.g. xm create and my domU starts with pygrub just fine). However, I see that pygrub is deprecated and that I should move to pv-grub. But I don''t get this running. I read the README in /etc/xen, the xmexample.pv-grub and also a few threads about pv-grub, for instance http://lists.xensource.com/archives/html/xen-devel/2008-08/msg00978.html and the blog post at http://blog.xen.org/index.php/2008/08/28/xen-33- feature-pv-grub/ (which isn''t really helpful as it is only a general overview). Whatever I do the domU just boots into the grubdom prompt and that''s it. If I try to specify a kernel I get this: grubdom> kernel (hd0,0)/boot/vmlinuz-2.6.18-92.1.22.el5xen Error 5: Partition table invalid or corrupt Of course, there is no partition table. A single partition doesn''t have a partition table. What am I supposed to hand over here? The path as it appears to the dom0 system? That''s the xm config file I use, very simple and straight-forward. I added the kernel, extra and root lines one by one following the xmexample.pv- grub file. No difference. domU starts fine if I use pygrub and comment those three extra lines. name = "dxx" maxmem = 512 memory = 512 vcpus = 1 #bootloader = "/usr/bin/pygrub" kernel="/usr/lib/xen/boot/pv-grub-x86_32.gz" extra = "(hd0,0)/boot/grub/grub.conf" root = "/dev/sda1 ro" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" disk = [ "phy:/dev/dom0/dxx,sda1,w", "phy:/dev/dom0/dxx-var,sda2,w", "file:/home2/swap/dxx.swap,sda3,w"] vif = [ "mac=00:16:3e:43:20:10" ] Thanks for any help. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Dec 21, 2008 at 5:25 PM, Kai Schaetzl <maillists@conactive.com> wrote:> I installed the Xen-3.3.0 rpms from the gitco repo today on a new CentOS > 5.2 machine. I''m using only pv-CentOS guests and everything works just > fine as it did with Xen 3.2. (e.g. xm create and my domU starts with > pygrub just fine). However, I see that pygrub is deprecated and that I > should move to pv-grub. But I don''t get this running. > > I read the README in /etc/xen, the xmexample.pv-grub and also a few > threads about pv-grub, for instance > http://lists.xensource.com/archives/html/xen-devel/2008-08/msg00978.html > and the blog post at http://blog.xen.org/index.php/2008/08/28/xen-33- > feature-pv-grub/ (which isn''t really helpful as it is only a general > overview). >For some reason that thread is broken on the xensource server: (a good place to check is xen.markmail.org) This might be the key bit of info you are missing: http://lists.xensource.com/archives/html/xen-devel/2008-08/msg01083.html If that is not it, let us know and we can dig into the issue some more. There may also be some patches that you need that happened after the 3.3 release, but one step at a time I guess. Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane wrote on Sun, 21 Dec 2008 17:40:31 -0500:> For some reason that thread is broken on the xensource server: > (a good place to check is xen.markmail.org) > > This might be the key bit of info you are missing: > http://lists.xensource.com/archives/html/xen-devel/2008-08/msg01083.htmlThanks for the pointer, but I definitely read each single message that''s shown on that starter page, including the two "subthreads". And I read this specific one, yes. The point is that I started by adding kernel, then extra, then root. Eacht time with the same effect of grubdom. So, removing root wouldn''t make a difference. As I see you were able to get the system booting by giving it the correct parameters. But that''s impossible here as it complains about the partition table. So, this must be something very different. What partition table does it mean? This is not an xvda-encapsulated drive, this is a normal ext3 formatted LVM partition. There''s no MBR and no partition table on it. What partition table where does pv-grub expect?> There may also be some patches that you need that happened after > the 3.3 release, but one step at a time I guess.Don''t make me cry ;-) I really don''t want to build my own Xen stuff. If that''s what is needed to get pv-grub going I just stick with pygrub as it is working perfectly :-) However, I would assume that pv-grub in a major release like 3.3 won''t have such a big bug that it doesn''t work at all. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Dec 21, 2008 at 6:35 PM, Kai Schaetzl <maillists@conactive.com> wrote:> Todd Deshane wrote on Sun, 21 Dec 2008 17:40:31 -0500: > >> For some reason that thread is broken on the xensource server: >> (a good place to check is xen.markmail.org) >> >> This might be the key bit of info you are missing: >> http://lists.xensource.com/archives/html/xen-devel/2008-08/msg01083.html > > Thanks for the pointer, but I definitely read each single message that''s > shown on that starter page, including the two "subthreads". And I read > this specific one, yes. The point is that I started by adding kernel, then > extra, then root. Eacht time with the same effect of grubdom. So, removing > root wouldn''t make a difference. As I see you were able to get the system > booting by giving it the correct parameters. But that''s impossible here as > it complains about the partition table. So, this must be something very > different. > What partition table does it mean? This is not an xvda-encapsulated drive, > this is a normal ext3 formatted LVM partition. There''s no MBR and no > partition table on it. What partition table where does pv-grub expect? >I would image that it works very much the same (with some limitations pointed out by Samuel in that thread and others) as GRUB. Can you test on a disk or disk image just to see if you can get a working case (not on a partition)? I think you would need some sort of MBR or similar, but I don''t know nor recall the details. Xen-devel/Samuel may be able to give you better answers if you don''t get answers on xen-users.>> There may also be some patches that you need that happened after >> the 3.3 release, but one step at a time I guess. > > Don''t make me cry ;-) I really don''t want to build my own Xen stuff. If > that''s what is needed to get pv-grub going I just stick with pygrub as it > is working perfectly :-) However, I would assume that pv-grub in a major > release like 3.3 won''t have such a big bug that it doesn''t work at all. >I don''t remember if there is a fatal issue or not. 3.3.1 is due out around the end of the month too. Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maximilian Wilhelm
2008-Dec-22 00:55 UTC
Re: [Xen-users] How to move from pygrub to pv-grub?
Anno domini 2008 Kai Schaetzl scripsit: Hi! [...]> I read the README in /etc/xen, the xmexample.pv-grub and also a few > threads about pv-grub, for instance > http://lists.xensource.com/archives/html/xen-devel/2008-08/msg00978.html > and the blog post at http://blog.xen.org/index.php/2008/08/28/xen-33- > feature-pv-grub/ (which isn''t really helpful as it is only a general > overview).> Whatever I do the domU just boots into the grubdom prompt and that''s it. > If I try to specify a kernel I get this:> grubdom> kernel (hd0,0)/boot/vmlinuz-2.6.18-92.1.22.el5xen> Error 5: Partition table invalid or corrupt[...] Without knowing anything about pvgrub nor how to set it up with Xen, but just having used grub in usual setups: How about using ''(hd0)'' instead? Ciao Max -- Follow the white penguin. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maximilian Wilhelm wrote on Mon, 22 Dec 2008 01:55:20 +0100:> How about using ''(hd0)'' instead?Ah, well, right, will try later today, now off for Christmas shopping. Thanks and everyone have nice holidays! Btw, I get garbled characters from your header displayed that should not display at all. X-GC-3.12: what is that? AFAIK, dots are not allowed in headers, that''s why my reader doesn''t like that line. Can you change that to use an underscore for instance? Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Several results starting with these parameters. It''s leading to nowhere. Exact same problem when using image files. kernel = "/usr/lib/xen/boot/pv-grub-x86_32.gz" extra = "(hd0)/boot/grub/grub.conf" #root = "/dev/sda1 ro" disk = [ "phy:/dev/dom0/dxx,sda1,w", "phy:/dev/dom0/dxx-var,sda2,w", "file:/home2/swap/dxx.swap,sda3,w"] grubdom> kernel (hd0,0)/boot/vmlinuz-2.6.18-92.1.22.el5xen Error 5: Partition table invalid or corrupt grubdom> kernel (hd0)/boot/vmlinuz-2.6.18-92.1.22.el5xen Error 17: Cannot mount selected partition grubdom> kernel /boot/vmlinuz-2.6.18-92.1.22.el5xen Error 21: Selected disk does not exist grubdom> find vmlinuz-2.6.18-92.1.22.el5xen Error 15: File not found grubdom> kernel /dev/sda1/boot/vmlinuz-2.6.18-92.1.22.el5xen Error 21: Selected disk does not exist grubdom> kernel /dev/dom0/dxx/vmlinuz-2.6.18-92.1.22.el5xen Error 21: Selected disk does not exist Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Dec 21, 2008 at 6:50 PM, Todd Deshane <deshantm@gmail.com> wrote:> I think you would need some sort of MBR or similar, but I don''t know > nor recall the details. Xen-devel/Samuel may be able to give you > better answers if you don''t get answers on xen-users. >If only I had a slightly better memory... Here is the trick that you might be missing: http://deshantm.livejournal.com/35488.html In particular take a closer look at: sudo grub --device-map=/dev/null < grub.input Hope that helps. Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane wrote on Mon, 22 Dec 2008 21:29:11 -0500:> http://deshantm.livejournal.com/35488.html > > In particular take a closer look at: > sudo grub --device-map=/dev/null < grub.inputOk, thanks. If I have some time in the next days or early next year I may play around with that in mind. But, frankly, if it is that complicated to get going with pv-grub I''d rather stay with pygrub as that works perfectly well. And I think pv-grub isn''t then ready for primetime at all. If it gets promoted as the successor for a deprecated pygrub it ought to be easy to move over to it. And there should be some more documentation on it as well. Maybe there''s some more coming with 3.3.1, at least I hope that. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kai Schaetzl wrote:> Btw, I get garbled characters from your header displayed that should not > display at all. > X-GC-3.12: what is that? AFAIK, dots are not allowed in headers, that''s > why my reader doesn''t like that line. Can you change that to use an > underscore for instance? > >I think your reader is broken. From RFC 2822, §2.2, Header Fields:> Header fields are lines composed of a field name, followed by a colon > (":"), followed by a field body, and terminated by CRLF. A field > name MUST be composed of printable US-ASCII characters (i.e., > characters that have values between 33 and 126, inclusive), except > colon.and in §3.6.8, Optional Fields, it gives the ABNF corresponding to that description so there''s no excuse for getting it wrong :-) I did wonder if the obsolete comment field had any restrictions over its non-obsolete counterpart, but it doesn''t. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users