Skip to contentSkip to conversation

pygrub regression with latest xen-unstable test

DISCUSSION Fabio Fantoni 2 participants 9 messages Sep 15, 2014 – Sep 22, 2014

lore
Share & tools
lore
#0 lore raw

After updating to latest xen-unstable (commit 7d203b337fb2dcd148d2df850e25b67c792d4d0b) I'm unable to boot an old domU with grub 1 cfg. I not remember the previous unstable build tested that successfull boot it, probably is of 1-2 months ago or more.

#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty initrd /boot/initrd.img-2.6.26-2-xen-amd64

xl create /etc/xen/nagios.cfg
Parsing config from /etc/xen/nagios.cfg
libxl: error: libxl_bootloader.c:630:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.11.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [-1] exited with error status 1
libxl: error: libxl_create.c:1133:domcreate_rebuild_done: cannot (re-)build domain: -3

#/var/log/xen/bootloader.11.log
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst ESC(BESC)0ESC[1;24rESC[m^OESC[?7hESC[?1hESC=ESC[?1lESC>ESC[24;1H^MESC[?1lESC>Traceback (most recent call last):
File "/usr/lib/xen/bin/pygrub", line 894, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel

If you need more information and/or tests tell me and I'll post them.

Thanks for any reply.

#1 lore raw
Quoted 5 lines · Fabio Fantoni

After updating to latest xen-unstable (commit 7d203b337fb2dcd148d2df850e25b67c792d4d0b) I'm unable to boot an old domU with grub 1 cfg.
I not remember the previous unstable build tested that successfull boot it, probably is of 1-2 months ago or more.

According to the git log pygrub hasn't changed since late Jun, and in general changes very little. Could you look back over the history and see if you can identify the problem commit?

Thanks,
Ian.

Quoted 33 lines

#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty
initrd /boot/initrd.img-2.6.26-2-xen-amd64

xl create /etc/xen/nagios.cfg
Parsing config from /etc/xen/nagios.cfg
libxl: error: libxl_bootloader.c:630:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.11.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [-1] exited with error status 1
libxl: error: libxl_create.c:1133:domcreate_rebuild_done: cannot (re-)build domain: -3

#/var/log/xen/bootloader.11.log
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst ESC(BESC)0ESC[1;24rESC[m^OESC[?7hESC[?1hESC=ESC[?1lESC>ESC[24;1H^MESC[?1lESC>Traceback (most recent call last):
File "/usr/lib/xen/bin/pygrub", line 894, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel

If you need more information and/or tests tell me and I'll post them.

Thanks for any reply.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

Il 15/09/2014 16:49, Ian Campbell ha scritto:

Quoted 6 lines · Fabio Fantoni
Quoted 5 lines

After updating to latest xen-unstable (commit 7d203b337fb2dcd148d2df850e25b67c792d4d0b) I'm unable to boot an old domU with grub 1 cfg.
I not remember the previous unstable build tested that successfull boot it, probably is of 1-2 months ago or more.

Quoted 41 lines

According to the git log pygrub hasn't changed since late Jun, and in general changes very little. Could you look back over the history and see if you can identify the problem commit?

Thanks,
Ian.

Quoted 32 lines

#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty
initrd /boot/initrd.img-2.6.26-2-xen-amd64

xl create /etc/xen/nagios.cfg
Parsing config from /etc/xen/nagios.cfg
libxl: error: libxl_bootloader.c:630:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.11.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [-1] exited with error status 1
libxl: error: libxl_create.c:1133:domcreate_rebuild_done: cannot (re-)build domain: -3

#/var/log/xen/bootloader.11.log
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst ESC(BESC)0ESC[1;24rESC[m^OESC[?7hESC[?1hESC=ESC[?1lESC>ESC[24;1H^MESC[?1lESC>Traceback (most recent call last):
File "/usr/lib/xen/bin/pygrub", line 894, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel

If you need more information and/or tests tell me and I'll post them.

Thanks for any reply.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing. After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it. After I renamed menu.lst to grub.cfg and nagios booted correctly.
So the regression seems in parsing of grub1 cfg in menu.lst file but I not found how to solve it.

#3 lore raw
Quoted 5 lines · Fabio Fantoni

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Is the contents of this file grub1 or grub2 syntax?

Quoted 2 lines

So the regression seems in parsing of grub1 cfg in menu.lst file but I not found how to solve it.

Did you look back into the git history as I suggested?

Ian.

#4 lore raw

Il 16/09/2014 18:40, Ian Campbell ha scritto:

Quoted 8 lines · Fabio Fantoni
Quoted 6 lines

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Is the contents of this file grub1 or grub2 syntax?

The regression is in grub1 syntax in menu.lst file, with grub2 syntax in grub.cfg is ok.

Quoted 5 lines
Quoted 3 lines

So the regression seems in parsing of grub1 cfg in menu.lst file but I not found how to solve it.

Did you look back into the git history as I suggested?

Yes I did a fast look and did a fast tests to try to search the problem, I found only the details reported above.

Quoted 3 lines

Ian.

#5 lore raw
Quoted 8 lines · Fabio Fantoni

Il 16/09/2014 18:40, Ian Campbell ha scritto:

Quoted 7 lines · Fabio Fantoni
Quoted 6 lines

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Quoted 4 lines
Quoted 1 line

Is the contents of this file grub1 or grub2 syntax?

The regression is in grub1 syntax in menu.lst file, with grub2 syntax in grub.cfg is ok.

Please can you attach the actual problematic config file.

While searching my mbox for this thread I stumbled over:
http://lists.xen.org/archives/html/xen-devel/2014-09/msg01053.html which might be related?

Quoted 14 lines
Quoted 6 lines
Quoted 4 lines

So the regression seems in parsing of grub1 cfg in menu.lst file but I not found how to solve it.

Did you look back into the git history as I suggested?

Yes I did a fast look and did a fast tests to try to search the problem, I found only the details reported above.

Quoted 3 lines

Ian.

#6 lore raw

Il 22/09/2014 11:29, Ian Campbell ha scritto:

Quoted 9 lines · Fabio Fantoni
Quoted 8 lines

Il 16/09/2014 18:40, Ian Campbell ha scritto:

Quoted 7 lines · Fabio Fantoni
Quoted 6 lines

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

Is the contents of this file grub1 or grub2 syntax?

The regression is in grub1 syntax in menu.lst file, with grub2 syntax in grub.cfg is ok.

Please can you attach the actual problematic config file.

Already posted in first msg:
#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty initrd /boot/initrd.img-2.6.26-2-xen-amd64

Or you mean other config file?

Quoted 4 lines

While searching my mbox for this thread I stumbled over:
http://lists.xen.org/archives/html/xen-devel/2014-09/msg01053.html which might be related?

I'll try it on my next test build.

Quoted 10 lines
Quoted 9 lines
Quoted 4 lines
Quoted 3 lines

So the regression seems in parsing of grub1 cfg in menu.lst file but I not found how to solve it.

Did you look back into the git history as I suggested?

Yes I did a fast look and did a fast tests to try to search the problem, I found only the details reported above.

Quoted 2 lines

Ian.

#7 lore raw
Quoted 23 lines · Fabio Fantoni

Il 22/09/2014 11:29, Ian Campbell ha scritto:

Quoted 9 lines · Fabio Fantoni
Quoted 8 lines

Il 16/09/2014 18:40, Ian Campbell ha scritto:

Quoted 7 lines · Fabio Fantoni
Quoted 6 lines

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

Is the contents of this file grub1 or grub2 syntax?

The regression is in grub1 syntax in menu.lst file, with grub2 syntax in grub.cfg is ok.

Please can you attach the actual problematic config file.

Already posted in first msg:
#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty
initrd /boot/initrd.img-2.6.26-2-xen-amd64

Quoted 1 line

Or you mean other config file?

Was that the entire file? I thought it was just a snippet (it's not the autogenerated one from Debian, I don't think).

Ian.

#8 lore raw

Il 22/09/2014 11:44, Ian Campbell ha scritto:

Quoted 23 lines · Fabio Fantoni
Quoted 22 lines

Il 22/09/2014 11:29, Ian Campbell ha scritto:

Quoted 9 lines · Fabio Fantoni
Quoted 8 lines

Il 16/09/2014 18:40, Ian Campbell ha scritto:

Quoted 7 lines · Fabio Fantoni
Quoted 6 lines

I take fast look on latest pygrub changes, I changed the xvda1 of disk to xvda, tried also root in cfg but nothing.
After I tried to put grub2 cfg in menu.lst and gave "Unknown directive" warnings at boot, so read it.
After I renamed menu.lst to grub.cfg and nagios booted correctly.

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

Is the contents of this file grub1 or grub2 syntax?

The regression is in grub1 syntax in menu.lst file, with grub2 syntax in grub.cfg is ok.

Please can you attach the actual problematic config file.

Already posted in first msg:
#boot/grub/menu.lst
title Lenny 2.6.26
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-xen-amd64 ro root=/dev/xvda1 console=hvc0 xencons=tty
initrd /boot/initrd.img-2.6.26-2-xen-amd64

Quoted 7 lines
Quoted 1 line

Or you mean other config file?

Was that the entire file? I thought it was just a snippet (it's not the autogenerated one from Debian, I don't think).

Ian.

On old domUs installing grub1 was always failed, so I created menu.lst manually each domUs and always was working until xen-unstable of latest months. Grub2 on recent domUs instead install correctly and generate cfg automatically.
Major of pv domUs are debian, some ubuntu and rare are others (ipfire, clearos, fedora ecc...)