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

Re: [Xen-users] How to build a PV domU kernel


  • To: Pasi Kärkkäinen <pasik@xxxxxx>
  • From: lei yang <yanglei.fage@xxxxxxxxx>
  • Date: Fri, 14 May 2010 00:10:28 +0800
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 13 May 2010 09:12:01 -0700
  • 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=Spm3M11TFR2t+gWRHENFcZyZVeIU368BDU/swHcWUcSjJlxXXyQ8bUhHdLr3fxls/o jBBzZm7z9JcfBnVj8lj7BAnb5xXzvXV6PBKktNLjvi8qMMkhjDHQOl5ZiL9qY8K7uoYS cxZkNm4EGbTGQx6IJep7+4TgVEQIKBzyZOiHg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



On Thu, May 13, 2010 at 11:53 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Thu, May 13, 2010 at 11:47:03PM +0800, lei yang wrote:
>    On Thu, May 13, 2010 at 8:33 PM, Pasi Kärkkäinen <[1]pasik@xxxxxx> wrote:
>
>      On Thu, May 13, 2010 at 11:13:00AM +0800, lei yang wrote:
>      >    Hi All,
>      >
>      >    I download a xen 4.0.0, after I run "make world" I got a 2.6.33.1
>      kernel,
>      >    it should be a kernel for Dom0, my question is " how to get a domU
>      kernel
>      >    for 2.6.33.1"
>      >
>
>      The same kernel can be used also for domU.
>
>
>    a.I'm confused by this in the readme of xen4.0.0, I saw we can get domU
>    with "   KERNELS="linux-2.6-xen0 linux-2.6-xenU"" when run "make", and I
>    got two kernel one is for dom0, anther is domU, the size of dom0 is bigger
>    than domU, do you mean we can ignor this(KERNELS="linux-2.6-xen0
>    linux-2.6-xenU), just use one dom0 kernel for domU?
>

Those options are required for building the linux-2.6.18-xen based "old" xenlinux kernels.
If you don't specify KERNELS= at all, and only use "make world", it'll build you a pvops kernel.

>    b. if I saw some document, they tell "the dom0 need the patch for xen "
>    eg:wget
>    [2]http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>    , my question is "does domU kernel need this patch?
>

If you want to build a Xenlinux based domU kernel, then you need that patch.
pvops kernels don't require that patch.

See http://wiki.xensource.com/xenwiki/XenDom0Kernels for more information.
That says Dom0Kernels, but it also applies for domU kernels.

 
do you mean the Dom0 kernel *image* can be used for DomU? one quick quesion here"
dom0 enabled CONFIG_XEN_DOM0=y , if we use dom0 kernel image for domU, do we need to disable this CONFIG_XEN_DOM0
 
Thanks
Lei
 
 
You can see the two different types described there (Xenlinux and pvops).

>
>    c.if domU does not use that patch, and I download a kernel from
>    [3]kernel.org, which kernel config need to be opened for
>     pvops Xen domU,
>

You don't need a special config for upstream/kernel.org pvops based domU kernel.
You just need to enable the pvops Xen domU related options.
>    d.which kernel version is the latest one for dom0 kernel support, I go to
>    [4]http://code.google.com/p/gentoo-xen-kernel/updates/list , I find the
>    latest patch for dom0 is xen-patches-2.6.33-1.tar.bz2, does it mean the
>    *official* latest one is 2.6.33? and how about domU,which is the
>    latest kernel version for domU, I think it may be the latest one in
>    [5]kernel.org(2.6.43-r6)
>

The latest Xenlinux patches are for 2.6.33, yes.
I'd recommend using 2.6.32 instead, since that's the long term supported kernel,
and it's picked up by multiple Linux distros.

Also the latest recommended pvops based dom0 kernel is 2.6.32,
it's available in Jeremy's xen.git xen/stable-2.6.32.x branch.
>    Sorry to ask for so many quesion, I'm new to xen
>

No problems.

-- Pasi

>    Thanks
>    Lei
>
>
>
>
>
>      Or then you can grab a kernel from [6]kernel.org and build it with pvops
>      Xen domU support
>      enabled.
>
>      Or you can get any of the other xenlinux source trees.
>      -- Pasi
>
>    --
>    "We learn from failure, not from success!"
>
> References
>
>    Visible links
>    1. mailto:pasik@xxxxxx
>    2. http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>    3. http://kernel.org/
>    4. http://code.google.com/p/gentoo-xen-kernel/updates/list
>    5. http://kernel.org/
>    6. http://kernel.org/



--
"We learn from failure, not from success!"
_______________________________________________
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®.