Kernel 3 Kompilierungsproblem unter XEN

bit-teufel

bit-teufel

Eroberer
Hallo,

Ich habe eine openSuse 12.1 und SLES 11 SP1 unter XEN 4.1.2 im HVM Modus laufen.
Wenn ich für die beiden System einen neuen Kernel (3.2.1) komipilieren möchte
hängt sich das System beim booten des neuen Kernel auf. Es kann die root Partition nicht finden.

Befor der neue Kernel implementiert ist und gebootet werden kann kommt beim
Kommando "mkinitrd -v -k vmlinux-3.2.1 -i initrd-3.2.1" folgender Fehler bzw. Warnmeldungen :

Kernel image: /boot/vmlinux-3.2.1
Initrd image: /boot/initrd-3.2.1
Root device: /dev/hda3 (mounted on / as ext3)
Resume device: /dev/hda2
[BLOCK] /dev/hda -> xenblk
[MODULES] 02-start.sh: xen-vbd ata_piix ata_generic piix ide_pci_generic processor thermal fan xen-vnif jbd ext3 xen_vbd edd xennet xenblk
[MODULES] 02-start.sh:
[MODULES] 03-storage.sh: ext3
[MODULES] 11-block.sh: xenblk
[MODULES] 11-usb.sh: usbcore
[MODULES] 11-usb.sh: ohci_hcd
[MODULES] 11-usb.sh: uhci-hcd
[MODULES] 11-usb.sh: ehci_hcd
[MODULES] 11-usb.sh: usbhid
[MODULES] Unsupported kernel (3.2.1-default)
modprobe: Module xen_vbd not found.
WARNING: no dependencies for kernel module 'xen-vbd' found.
modprobe: Module xen_vnif not found.
WARNING: no dependencies for kernel module 'xen-vnif' found.
modprobe: Module xen_vbd not found.
WARNING: no dependencies for kernel module 'xen_vbd' found.
modprobe: Module xennet not found.
WARNING: no dependencies for kernel module 'xennet' found.
Kernel Modules: scsi_mod libata ata_piix ata_generic ide-core piix ide-pci-generic hwmon thermal_sys processor thermal fan jbd mbcache ext3 edd xen-blkfront usb-common usbcore ohci-hcd ehci-hcd uhci-hcd hid usbhid
[MOUNT] Root: /dev/hda3
Features: block usb resume.userspace resume.kernel
Shared libs: /lib/udev/activate_vg is a script
/lib/udev/bluetooth.sh is a script
/lib/udev/bluetooth_serial is a script
/lib/udev/collect_lvm is a script
/lib/udev/firmware.sh is a script
/lib/udev/idedma.sh is a script
/lib/udev/iwlwifi-led.sh is a script
/lib/udev/kpartx_id is a script
/lib/udev/packagekit-firmware.sh is a script
/lib/udev/path_id is a script
/lib/udev/write_cd_rules is a script
/lib/udev/write_net_rules is a script
/lib/mkinitrd/bin/ipconfig.sh is a script
/sbin/ifup is a script
/lib/mkinitrd/bin/ipconfig.sh is a script
/lib/mkinitrd/bin/linuxrc is a script
lib64/ld-2.11.1.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libblkid.so.1.1.0 lib64/libc-2.11.1.so lib64/libcom_err.so.2.1 lib64/libdl-2.11.1.so lib64/libe2p.so.2.3 lib64/libext2fs.so.2.4 lib64/libgcc_s.so.1 lib64/libgcrypt.so.11.4.4 lib64/libgpg-error.so.0.4.0 lib64/liblzo2.so.2.0.0 lib64/libm-2.11.1.so lib64/libncurses.so.5.6 lib64/libpthread-2.11.1.so lib64/libreadline.so.5.2 lib64/librt-2.11.1.so lib64/libselinux.so.1 lib64/libsepol.so.1 lib64/libutil-2.11.1.so lib64/libuuid.so.1.3.0 lib64/libvolume_id.so.1.0.1 lib64/libz.so.1.2.3 usr/lib64/libdirect-1.2.so.0.3.0 usr/lib64/libdirectfb-1.2.so.0.3.0 usr/lib64/libfusion-1.2.so.0.3.0 usr/lib64/libglib-2.0.so.0.2200.5 usr/lib64/libpcre.so.0.0.1 usr/lib64/libsplashy.so.1.0.0 usr/lib64/libsplashycnf.so.1.0.0 lib64/libnss_dns-2.11.1.so lib64/libnss_dns.so.2 lib64/libnss_files-2.11.1.so lib64/libnss_files.so.2 lib64/libgcc_s.so.1

###########################################

Hier meine Kernel .config :

cat /usr/src/linux-3.2.1/.config | grep -i -e "xen" -e "virtua"
CONFIG_XEN=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_PVHVM=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=128
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_DEBUG_FS=y
CONFIG_PCI_XEN=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=m
CONFIG_XEN_BLKDEV_BACKEND=m
CONFIG_NETXEN_NIC=m
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_NETDEV_BACKEND=m
CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
CONFIG_HVC_XEN=y
CONFIG_XEN_WDT=m
CONFIG_REGULATOR_VIRTUAL_CONSUMER=m
CONFIG_FB_VIRTUAL=m
CONFIG_XEN_FBDEV_FRONTEND=y
# Xen driver support
CONFIG_XEN_BALLOON=y
CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_GNTDEV=y
CONFIG_XEN_GRANT_DEV_ALLOC=m
CONFIG_SWIOTLB_XEN=y
CONFIG_XEN_PCIDEV_BACKEND=m
CONFIG_DEBUG_VIRTUAL=y
CONFIG_VIRTUALIZATION=y

Kann mir jemand weiterhelfen ? oder Tips geben

Vielen Dank im Voraus
B.-D.
 
Bitte verwend code tags.

Ich seh da eigentlich nichts, dass aussieht, wie eine Fehler. Was erwartest du dir von dem Befehl und was fehlt dir?
 
Die Fehlermeldung beim booten lautet
Could not find /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2

Ich dachte eventuell durch die Warnungen:
modprobe: Module xen_vbd not found.
WARNING: no dependencies for kernel module 'xen-vbd' found

Kann er irgendwelche Module nicht finden.
 
Hi

Zeig mal die Variable INITRD_MODULES aus /etc/sysconfig/kernel
Zeig mal deine grub.conf

Braucht man die xen Module in seiner Ramdisk?

Falls ja, existieren es die Module in /lib/modules/<kernelversion>?
 
Hallo,

hier die Einstellungen:

"cat /etc/sysconfig/kernel" ->

## Path: System/Kernel
## Description:
## Type: string
## Command: /sbin/mkinitrd
#
# This variable contains the list of modules to be added to the initial
# ramdisk by calling the script "mkinitrd"
# (like drivers for scsi-controllers, for lvm or reiserfs)
#
INITRD_MODULES="xen-vbd ata_piix ata_generic piix ide_pci_generic processor thermal fan xen-vnif jbd ext3 xen_vbd edd"

## Type: string(yes)
## Command: /sbin/mkinitrd
## Default: ""
#
#
# This variable disables the initialization of KMS in the initrd
# by not including the modules required for KMS even though KMS is
# supported on the underlying hardware.
# After changing run mkinitrd again.
#
NO_KMS_IN_INITRD="no"

#
## Type: string
## Command: /sbin/mkinitrd
#
# This variable contains the list of modules to be added to the initial
# ramdisk that is created for unprivilegd Xen domains (domU); you may need
# drivers for virtual block and network devices in addition to filesystem
# and device-mapper modules.
#
DOMU_INITRD_MODULES="xennet xenblk"

## Type: string
## ServiceRestart: boot.loadmodules
#
# This variable contains the list of modules to be loaded
# once the main filesystem is active
# You will find a few default modules for hardware which
# can not be detected automatically.
#
MODULES_LOADED_ON_BOOT=""

## Type: string
## Default: ""
#
# The file name of a binary ACPI Differentiated System Description Table
# (DSDT). This table is appended to the initial ram disk (initrd) that
# the mkinitrd script creates. If the kernel finds that its initrd
# contains a DSDT, this table replaces the DSDT of the bios. If the file
# specified in ACPI_DSDT is not found or ACPI_DSDT is empty/not specified,
# no DSDT will be appended to the initrd.
# Example path /etc/acpi/DSDT.aml
# You can also override Secondary System Description Tables (SSDTs).
# Add DSDT and SSDT files separated by spaces, e.g. "DSDT.aml SSDT1.aml"
# The files must be named DSDT.aml and/or SSDT[1-9]*.aml.
# For compatiblity reasons, if only one file is added it is assumed it is
# the DSDT and will be used as such, in future the above naming scheme
# will be enforce.
# Be aware that overriding these tables can harm your system.
# Only do this if you know what you are doing and file a bug on
# bugzilla.kernel.org so that the root cause of the issue will get fixed.
ACPI_DSDT=""

## Type: string(yes)
## Default: ""
#
# Skip doing a minimal preparation of the /usr/src/linux source tree so
# that most header files can be directly included. If set, /usr/src/linux
# will not be touched.
#
SKIP_RUNNING_KERNEL=""

##########################################################################################################
"cat /etc/grub.conf" ->

setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0)
quit

##########################################################################################################
"cat /boot/grub/menu.lst" ->

# Modified by YaST2. Last modification on Di Jan 10 12:46:26 CET 2012
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux-3.2.1###
title SUSE Linux Enterprise Server 11 SP1 - 3.2.1
root (hd0,0)
kernel /boot/bzImage-3.2.1 root=/dev/hda3 resume=/dev/hda2 crashkernel=128M-:64M showopts vga=normal
initrd /boot/initrd-3.2.1

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
root (hd0,0)
kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/hda3 resume=/dev/hda2 crashkernel=128M-:64M showopts vga=normal
initrd /initrd-2.6.32.12-0.7-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
root (hd0,0)
kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/hda3 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
initrd /initrd-2.6.32.12-0.7-default

##########################################################################################################

find /lib/modules/3.2.1-default -iname "*xen*" ->

/lib/modules/3.2.1-default/kernel/drivers/net/ethernet/qlogic/netxen
/lib/modules/3.2.1-default/kernel/drivers/net/ethernet/qlogic/netxen/netxen_nic.ko
/lib/modules/3.2.1-default/kernel/drivers/net/xen-netback
/lib/modules/3.2.1-default/kernel/drivers/net/xen-netback/xen-netback.ko
/lib/modules/3.2.1-default/kernel/drivers/xen
/lib/modules/3.2.1-default/kernel/drivers/xen/xen-gntalloc.ko
/lib/modules/3.2.1-default/kernel/drivers/xen/xen-pciback
/lib/modules/3.2.1-default/kernel/drivers/xen/xen-pciback/xen-pciback.ko
/lib/modules/3.2.1-default/kernel/drivers/block/xen-blkfront.ko
/lib/modules/3.2.1-default/kernel/drivers/block/xen-blkback
/lib/modules/3.2.1-default/kernel/drivers/block/xen-blkback/xen-blkback.ko
/lib/modules/3.2.1-default/kernel/drivers/watchdog/xen_wdt.ko
##########################################################################################################


Vielen Dank im Voraus
B.-D.
 
Was mir auffällt:

1. 'xen-vbd' steht zwei mal in INITRD_MODULES
2. xen Module existieren nicht in /lib/modules/3.2.1-default, darum auch das Warning beim erstellen der Ramdisk
3. In deinem 1. Post heißt dein Kernel Image /boot/vmlinux-3.2.1 in deiner menu.lst /boot/bzImage-3.2.1. Da stimmt was nicht. Ersetze mal bzImage-3.2.1 durch vmlinux-3.2.1
 
Was mir auffällt:

1. 'xen-vbd' steht zwei mal in INITRD_MODULES
2. xen Module existieren nicht in /lib/modules/3.2.1-default, darum auch das Warning beim erstellen der Ramdisk
3. In deinem 1. Post heißt dein Kernel Image /boot/vmlinux-3.2.1 in deiner menu.lst /boot/bzImage-3.2.1. Da stimmt was nicht. Ersetze mal bzImage-3.2.1 durch vmlinux-3.2.1

Wenn ich vmlinux-3.2.1 anstelle bzImage-3.2.1 in der menu.lst eintrage kommt der Fehler:
Error 13: Invalid or unsupportet executable format.
Press any key to contiunue ...

Benötige ich für die Gast Betriebssysteme im HVM Modus extra spezille Treiber ?
 
Hmm

Keine Ahnung...mit XEN kenne ich mich nicht so gut aus...
Funktioniert es bisweilen?

Poste mal noch deine /etc/fstab und fdisk -l
Ich habe das Gefühl da stimmt was nicht mit der Plattenzuordnung.
 
Hallo,

die config Einstellungen der fstab sind von mir nicht verändert worden. Unter dem out of the box SLES11 Kernel ( 2.6.32.12-0.7) funktioniert alles.

xensles11:~ # cat /etc/fstab
/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext3 acl,user_xattr 1 1
/dev/hda1 /boot ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0


xensles11:~ # fdisk -l

Disk /dev/hda: 104.9 GB, 104853405696 bytes
255 heads, 63 sectors/track, 12747 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00096670

Device Boot Start End Blocks Id System
/dev/hda1 * 1 652 5237158+ 83 Linux
/dev/hda2 653 1957 10482412+ 82 Linux swap / Solaris
/dev/hda3 1958 12747 86670675 83 Linux

Disk /dev/hdc: 3036 MB, 3036372992 bytes
255 heads, 63 sectors/track, 369 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/hdc doesn't contain a valid partition table

Disk /dev/sda: 104.9 GB, 104853405696 bytes
255 heads, 63 sectors/track, 12747 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00096670

Device Boot Start End Blocks Id System
/dev/sda1 * 1 652 5237158+ 83 Linux
/dev/sda2 653 1957 10482412+ 82 Linux swap / Solaris
/dev/sda3 1958 12747 86670675 83 Linux
 
Hi
Entferne in der Menü.lst bei kernel /boot/... Und initrd /boot/... Das /boot. Durch root (hd0,0) bist du schon auf der boot Partition .
Dann muss dass doch ...falls nicht poste nochmal die jetzt neue Menu.lst
 
Geht leider immer noch nicht.

xensles11:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Mon Jan 23 18:43:23 CET 2012
default 2
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux-3.2.1###
title SUSE Linux Enterprise Server 11 SP1 - 3.2.1
root (hd0,0)
kernel /bzImage-3.2.1 root=/dev/hda3 resume=/dev/hda2 crashkernel=128M-:64M showopts vga=normal
initrd /initrd-3.2.1

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 11 SP1 - 3.2.1
root (hd0,0)
kernel /vmlinuz-3.2.1-default root=/dev/hda3 resume=/dev/hda2 splash=silent crashkernel=128M-:64M showopts
initrd /initrd-3.2.1-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux Enterprise Server 11 SP1 - 3.2.1
root (hd0,0)
kernel /vmlinuz-3.2.1-default root=/dev/hda3 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
initrd /initrd-3.2.1-default


###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
root (hd0,0)
kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/hda3 resume=/dev/hda2 crashkernel=128M-:64M showopts vga=normal
initrd /initrd-2.6.32.12-0.7-default


###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
root (hd0,0)
kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/hda3 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
initrd /initrd-2.6.32.12-0.7-default
 

Ähnliche Themen

X startet nichtmehr

OpenSUSE 12.1: Gnucash startet nicht mehr

Windows clients können nicht mehr auf lange laufendes System zugreifen

XFCE freezes at startup

HDMI Soundausgabe 2

Zurück
Oben