Preamble:
dom0: Xen 3.0.4 running on Ubuntu 6.06 x86_64.
domU: Xen 3.0.4 or 3.1.0 kernel booting from host pygrub. File backed.
-------------
I am having this strange problem getting pygrub to load consistently.
When I start a domU, I sometimes get this.
Error: Boot loader didn't return any data!
... and nothing else. When I look in the xend-debug.log log, I see this.
Traceback (most recent call last):
File "/usr/bin/pygrub", line 481, in ?
g = Grub(file, isconfig)
File "/usr/bin/pygrub", line 151, in __init__
self.read_config(file, isconfig)
File "/usr/bin/pygrub", line 330, in read_config
raise RuntimeError, "we couldn't find grub config file in the image
provided."
RuntimeError: we couldn't find grub config file in the image provided.
But the strange part is, that it is intermittent. I just keep retrying
xm create -c xmguest-www
evenetually it does works. This is a real pain if I have to reboot the
host and only a few domU startup properly. To make it worse, I can only
retry so many times before the dom0 starts acting funny and I have to
reboot dom0. I think there is a memory leak or something.
Here is the domU config.
===========================================
# -*- mode: python; -*-
memory = 256
name = "www"
vif = ['bridge=xenbr0']
disk =
['file:/vserver/www/guest_base2G.img,hda1,w','file:/vserver/www/guest_swap256M.img,hda2,w','phy:data/gallery,hda3,w']
bootloader = '/usr/bin/pygrub'
===========================================
Here is the grub.conf in the domU.
===========================================
default 2
timeout 5
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
boot
title Xen 3.0.4 vmlinuz-2.6.16.33-xen
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.33-xen root=/dev/hda1 ro splash
savedefault
boot
title Xen 3.1.0 vmlinux-syms-2.6.18-xen
root (hd0,0)
kernel /boot/vmlinux-syms-2.6.18-xen root=/dev/hda1 ro splash
savedefault
boot
===========================================
Is there anything I should change? I also see the following, but this
should not be a problem.
WARNING:root:Unknown image directive savedefault
WARNING:root:Unknown image directive boot
Thanks,
Greg
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|