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] Problem on upgrade domU kernel to PV Linux kernel 2.6.31.14

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem on upgrade domU kernel to PV Linux kernel 2.6.31.14
From: 杨林 <lin.eric.yang@xxxxxxxxx>
Date: Wed, 25 Aug 2010 00:33:30 +0800
Delivery-date: Thu, 26 Aug 2010 10:35:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=VYOHHZICYJ2fIOFSN43KIJTzFtZjikqApg0myaJUUKw=; b=m2bpW7CfvZzbDguotpp5PQcUt3t/4mSYrmLH2JUpjPpcVP1P2AzMltgt+CBBfun9DS ubXUuFeKvhZ3I/YTBp9nFTC3UyWO0owE1Bkc+Pir6XDNdZMDe7MZB1Vq4oR8pYfvGgs3 L8f2+sODk62Bhyjz8og1vltIwQGB1zeNgB4I0=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

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
<Prev in Thread] Current Thread [Next in Thread>