杨林
2010-Aug-24 16:33 UTC
[Xen-users] Problem on upgrade domU kernel to PV Linux kernel 2.6.31.14
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@lists.xensource.com
http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Aug-27 01:56 UTC
Re: [Xen-users] Problem on upgrade domU kernel to PV Linux kernel 2.6.31.14
On Tue, Aug 24, 2010 at 11:33 PM, 杨林 <lin.eric.yang@gmail.com> wrote:> 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=yWhat are you trying to do? HVM guest behaves (mostly) like a normal physical machine, so you wouldn''t need a special kernel for HVM domU, or have CONFIG_PARAVIRT_GUEST on. In fact, if your domU is Centos, it''s best just to use Centos'' default kernel. Then again, if your domU is Centos, it''s better performance-wise to convert it to PV domU. If for some reason you need to run it as HVM, and your domU distro uses newer kernels (like Ubuntu) or you want to upgrade to newer kernel version, you might want to use PV drivers to improve I/O performance: http://wiki.xensource.com/xenwiki/XenLinuxPVonHVMdrivers -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users