[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Problem on upgrade domU kernel to PV Linux kernel 2.6.31.14


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: 杨林 <lin.eric.yang@xxxxxxxxx>
  • Date: Wed, 25 Aug 2010 00:33:30 +0800
  • Delivery-date: Thu, 26 Aug 2010 10:35:58 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=D8X5lVW97F3IXCznFVwpmb4Lr0NAs9Vfq695hyV4DJgzKpWLAF8nvHLPh3K1yXZQbB udopNYQj6znBzXGV5CkgI1PIqaWNRphXw/4yuK+QfH/zMSfeTs7mLplSbM0nlvxIBxW4 +7/fC5AvLqKqK5p8juM+qk1wHKZaTvlyMv4BQ=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi, all,

 

Currently my xen environment is:

xen 4.0.0 on RHEL5.3

dom0: kernel.org 2.6.31.5 with xen-patches-2.6.31-10

HVM domU: 2.6.18

 

Blow is my domU building steps, according to http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen

1. download kernel.org 2.6.31.14 and copy it to HVM guest disk image

2. "make defconfig" and enable building option 

CONFIG_PARAVIRT_GUEST=y

CONFIG_XEN=y

CONFIG_HVC_DRIVER=y

CONFIG_HVC_XEN=y

CONFIG_XEN_BLKDEV_FRONTEND=y

CONFIG_XEN_NETDEV_FRONTEND=y

3. make and copy arch/x86/boot/bzImage to /boot

4. make modules_install and mkinitrd initrd.img 2.6.31.14

But lack of USB driver, error message: "No module ehci-hcd found for kernel". Since the USB drivers are by default compiled in the PV-OPS kernel, not as modules. So I config those UBS option as blow:

CONFIG_SCSI_BUSLOGIC=M

CONFIG_USB_HCD_UHCI=M

CONFIG_USB_EHCI_HCD=M

CONFIG_USB_OHCI_HCD=M

CONFIG_ATA_PIIX=M

5. reboot HVM domU to kernel 2.6.31.14 but meet kernel panic

mount: could not find filesystem '/dev/root'

setuproot: moving /dev failed: No such file or directory

setuproot: error mounting /proc: No such file or directory

setuproot: error mounting /sys: No such file or directory

switchroot: mount failed: No such file or directory

Kernel panic - not syncing: Attempted to kill init!

It seems initrd.img does not contain correct driver. Do I need enable other options in kernel config? Really appreciate your suggestion.

 

Blow is my HVM config file for your consideration:

import os, re

arch = os.uname()[4]

if re.search('64', arch):

    arch_libdir = 'lib64'

else:

    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"

builder='hvm'

memory = 1024

vcpus=1

pae=1

cpus = "0"        # all vcpus run on CPU0

disk = [ 'file:/root/sdp/img/ia64.img,hda,w' ]

 

Best regards,

Lin.

 

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.