WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] How to move from pygrub to pv-grub?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to move from pygrub to pv-grub?
From: Kai Schaetzl <maillists@xxxxxxxxxxxxx>
Date: Sun, 21 Dec 2008 23:25:19 +0100
Delivery-date: Sun, 21 Dec 2008 14:26:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-users@xxxxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users