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

Re: [Xen-users] cross compile and kernels.

To: ccmail111 <ccmail111@xxxxxxxxx>
Subject: Re: [Xen-users] cross compile and kernels.
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Sat, 20 Feb 2010 10:45:06 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 19 Feb 2010 19:46:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <907889.88483.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <907889.88483.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Feb 20, 2010 at 1:56 AM, ccmail111 <ccmail111@xxxxxxxxx> wrote:
> "How to choose a Xen dom0 kernel?
> •       You should always match Xen hypervisor and Xen dom0 kernel versions."
>
> Does above mean Hypervisor has a Linux Kernel too and dom0 has a Linux kernel 
> and domU can have any kernel ?

It means you should match hypervisor and dom0 kernel versions. Note
that it's SHOULD, not MUST.

For example, RHEL's kernel-xen linux source contains code that was
built for RH's special version of xen 3.1.x. It's designed to work
with xen hypervisor version 3.1.

You CAN, however, use that same kernel as dom0 kernel for Xen 3.4.x.
The downside is that some newer features (like scsi-passthru) will be
unusable since the dom0 kernel can't support  those features.

official xen.org's kernel contains support for latest version of Xen.

> 2) Case: I have:
> my compile machine has Fedora
> Plan to use debian for dom0 and RH for domU.
>
> Would this work:
>
> 1) On Fedora (compile server) - first compile dom0 kernel (debian) - thus 
> cross compile.

That's not cross-compile.
But yes, you should be able to compile hypervisor and dom0 kernel
anywhere as long as they can produce the same arch as target server
(x86, x86_64).

>  2) Then get a machine running debian OS and compile dom0 tools. If not, is 
> it possible to cross compile tools also like (1) above (on Fedora compile 
> server) ?

userland tools is a bit tricky as it involves libraries. You should
compile it on the same environment as your running dom0.

You could always create a debian chroot environment on top of Fedora though.

>  3) domU: similar to (1) above - cross compile RH kernel on Fedora gcc and 
> tools ?

You don't need to. Just use RHEL's kernel-xen for domU.

-- 
Fajar

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

<Prev in Thread] Current Thread [Next in Thread>