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-devel

Re: Re: Re: [Xen-devel] Upgrage PV domU kernel?

To: Zhiyuan Shao <zyshao.maillist@xxxxxxxxx>
Subject: Re: Re: Re: [Xen-devel] Upgrage PV domU kernel?
From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Date: Mon, 30 Mar 2009 11:01:39 -0300
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 30 Mar 2009 07:02:12 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=yzuOyxYrQeL/Tyr1DUBzIDQN62m+GANBz1bCQFa4jz8=; b=XOsbVBK99LXNpgW6ATEcTtfauUUq50jgw0HlblA9J2UrQ4BIgDHJL9rtIEf+Df/gyE TWSSlULYTCWFF9uCalL/N+f4VYvIAt9/CdudwmQQHa7Y+Z11Z9ynZSXCXMeEP2MWax7T wYoaJted2o1AhF8FY9fk32IUMgP9PKxQ17aXA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=asBDrz5ciVYBWUf9GaGqiYZSlFN8QluZG2+rjPVoeIyD/1tbFAwym9YD4HQzOzivP2 axfutxmJXXq1278CEpaA+pFQ3Svt1kxS7rd1yC7Ex8IGgWctzHyZt/3bJbmKCKsZAwdW B1jpfPdzpjWgDBhIzedB+XwVAOF5Z11a6AnG4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200903302137152340156@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200903250858311253343@xxxxxxxxx> <6b7f6eb0903251055k13d5ca52i43861822a8683e03@xxxxxxxxxxxxxx> <200903260855529256817@xxxxxxxxx> <200903302001401718613@xxxxxxxxx> <6b7f6eb0903300622s759fb083sc77ca925271dcf@xxxxxxxxxxxxxx> <200903302137152340156@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
No, when you download your kernel source within your domU, you must:

tar xjf linux-2.6.29.tar.bz2
cd linux-2.6.29
make defconfig
make menuconfig

 --- Enable HIGHMEM64G, PARAVIRT_GUEST and XEN (only domU are available for 2.6.29) options and save it ---

make targz-pkg  # So you can copy the generated kernel package to other domUs and/or to dom0...

You can make a initramdisk, if you wish (If on Debian)

depmod 2.6.29
update-initramfs -k 2.6.29 -c

And copy your domU /boot/initrd.img-2.6.29 to your dom0 together your new compiled kernel.

Good luck!
Thiago


2009/3/30 Zhiyuan Shao <zyshao.maillist@xxxxxxxxx>
Using the default settings always when make (kernel) asks?
 
Thanks,
 
2009-03-30

Zhiyuan Shao

发件人: Thiago Camargo Martins Cordeiro
发送时间: 2009-03-30  21:22:05
收件人: Zhiyuan Shao
主题: Re: Re: Re: [Xen-devel] Upgrage PV domU kernel?
Have you enabled this options:

CONFIG_PARAVIRT_GUEST=y
CONFIG_XEN=y
CONFIG_HIGHMEM64G=y

...in your domU's config kernel?

Good luck!
Thiago

2009/3/30 Zhiyuan Shao <zyshao.maillist@xxxxxxxxx>
I tried this way, but seems it doesnot work.
 
[root@Dell1 test-pv]# xm cr -c 1-pv.cfg
Using config file "./1-pv.cfg".
Error: (2, 'Invalid kernel', "elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF notes or '__xen_guest' section found.\n")
The configure file of 1-pv.cfg:
 
[root@Dell1 test-pv]# cat 1-pv.cfg
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6.29"
 
# Optional ramdisk.
ramdisk = "/boot/initrd-2.6.29.img"
 
memory = 512
 
# A name for your domain. All domains must have different names.
name = "test-pv"
 
vcpus = 2
 
vif = [ 'ip=192.168.2.101, mac=00:16:3e:00:10:11, bridge=xenbr0' ]
 
disk = [ 'file:/root/test-pv/vm1disk,sda1,w' ]
 
# Set root device.
root = "/dev/sda1 ro"
 
extra = "4"
 
 
2009-03-30

Zhiyuan Shao

发件人: Thiago Camargo Martins Cordeiro
发送时间: 2009-03-26  01:55:58
收件人: zyshao.maillist
主题: Re: [Xen-devel] Upgrage PV domU kernel?
Hi Zyshao,

 You can download the latest kernel from http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2 within your domU, compile it as usual, copy vmlinuz (and initramdisk) to your dom0 (if you dont use PyGRUB) and start it!

Good luck!
Thiago

2009/3/24 zyshao.maillist <zyshao.maillist@xxxxxxxxx>
hi pals,
 
I need to run some HPC applications on the PV Guest (configured with multiple VCPUs and the application invokes also multiple processes to communicate with each other during the lifetime), and found that in some overcommitted cases, the application's performance degrades drastically. I got a Xen installation with both Dom0 and DomU running "vmlinuz-2.6.18.8-xen" kernel, i.e., the default configuration.
 
I am wondering if I can Upgrade the kernel of the PV Guest, i.e., domU, to run other alternative kernel, such as latest stable linux kernel, 2.6.28.8? By this way, it may be possible to avoid the performance sacrifice resulted by spin-lock problem.
 
Thanks in advance for any suggestions!
 
Zhiyuan Shao
 
 
2009-03-25
 

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




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>