Skip to contentSkip to conversation

Xen-unstable failed to start Sid pv domU with pygrub after latest upgrades

DISCUSSION Fabio Fantoni 2 participants 3 messages Nov 8, 2013

lore
Share & tools
lore
#0 lore raw

This morning I booted correctly Sid (Debian unstable) pv domU with xl and with pygrub on xen-unstable commit 68bd172e6fa565899c846eb72755c8ffd8562c8a. After an aptitude full-upgrade, the Sid domU fails to boot:

Quoted 5 lines

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

On attachment /var/log/xen/bootloader.11.log.
Replacing the domU's grub.cfg with minimal grub1 configuration solve the boot problem. If you need more details/tests tell me and I'll post them.

Thanks for any reply.

Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown directive menuentry_id_option
WARNING:root:Unknown directive else
WARNING:root:Unknown directive menuentry_id_option
WARNING:root:Unknown directive export
WARNING:root:Unknown directive font
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive font
WARNING:root:Unknown directive load_video
WARNING:root:Unknown directive terminal_output
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown directive source
WARNING:root:Unknown directive elif
WARNING:root:Unknown directive source (B)0[?7h[?1h=[?1h=[?1l> [?1l>Traceback (most recent call last):
File "/usr/lib/xen/bin/pygrub", line 886, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel

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

#1 lore raw
Quoted 7 lines · Fabio Fantoni

This morning I booted correctly Sid (Debian unstable) pv domU with xl and with pygrub on xen-unstable commit 68bd172e6fa565899c846eb72755c8ffd8562c8a. After an aptitude full-upgrade, the Sid domU fails to boot:

Quoted 5 lines

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

Quoted 6 lines

On attachment /var/log/xen/bootloader.11.log.
Replacing the domU's grub.cfg with minimal grub1 configuration solve the boot problem. If you need more details/tests tell me and I'll post them.

Thanks for any reply.

Can you also attach the grub file which didn't work?

-George

#2 lore raw

Il 08/11/2013 12:46, George Dunlap ha scritto:

Quoted 12 lines · Fabio Fantoni
Quoted 11 lines

This morning I booted correctly Sid (Debian unstable) pv domU with xl and with pygrub on xen-unstable commit 68bd172e6fa565899c846eb72755c8ffd8562c8a. After an aptitude full-upgrade, the Sid domU fails to boot:

Quoted 5 lines

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

On attachment /var/log/xen/bootloader.11.log.
Replacing the domU's grub.cfg with minimal grub1 configuration solve the boot problem. If you need more details/tests tell me and I'll post them.

Quoted 6 lines
Quoted 2 lines

Thanks for any reply.

Can you also attach the grub file which didn't work?

-George

Thanks for reply, domU's grub.cfg not working with pygrub on attachment.

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates

# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then

    saved_entry="${chosen}"
    save_env saved_entry

fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else

    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus

fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 3ab55964-09d1-4853-be38-661b5a476a14
else
search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
fi

    font="/usr/share/grub/unicode.pf2"

fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###

menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3ab55964-09d1-4853-be38-661b5a476a14' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
	else
	  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
	fi
	echo	'Caricamento Linux 3.11-1-amd64...'
	linux	/boot/vmlinuz-3.11-1-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro console=tty0 quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.11-1-amd64
}
submenu 'Opzioni avanzate per Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-3ab55964-09d1-4853-be38-661b5a476a14' {
	menuentry 'Debian GNU/Linux, con Linux 3.11-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-1-amd64-advanced-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.11-1-amd64...'
		linux	/boot/vmlinuz-3.11-1-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro console=tty0 quiet
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.11-1-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.11-1-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-1-amd64-recovery-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.11-1-amd64...'
		linux	/boot/vmlinuz-3.11-1-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro single console=tty0
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.11-1-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.10-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-advanced-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.10-3-amd64...'
		linux	/boot/vmlinuz-3.10-3-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro console=tty0 quiet
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.10-3-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.10-3-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-recovery-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.10-3-amd64...'
		linux	/boot/vmlinuz-3.10-3-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro single console=tty0
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.10-3-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.10-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-2-amd64-advanced-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.10-2-amd64...'
		linux	/boot/vmlinuz-3.10-2-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro console=tty0 quiet
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.10-2-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.10-2-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-2-amd64-recovery-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.10-2-amd64...'
		linux	/boot/vmlinuz-3.10-2-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro single console=tty0
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.10-2-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.2.0-4-amd64...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro console=tty0 quiet
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-3ab55964-09d1-4853-be38-661b5a476a14' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  3ab55964-09d1-4853-be38-661b5a476a14
		else
		  search --no-floppy --fs-uuid --set=root 3ab55964-09d1-4853-be38-661b5a476a14
		fi
		echo	'Caricamento Linux 3.2.0-4-amd64...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=3ab55964-09d1-4853-be38-661b5a476a14 ro single console=tty0
		echo	'Caricamento ramdisk iniziale...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the

# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

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