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] pygrub fails to load sometimes?? memory leak??

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] pygrub fails to load sometimes?? memory leak??
From: "Gregory Gee" <gregory.gee@xxxxxxxxxxxx>
Date: Wed, 7 Nov 2007 23:26:42 -0500 (EST)
Delivery-date: Wed, 07 Nov 2007 20:24:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: gregory.gee@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.5.1
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] pygrub fails to load sometimes?? memory leak??, Gregory Gee <=