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: [Xen-devel] How Can I install xen 3.4.2 from source code

To: m00nlight <dot_wangyushi@xxxxxxxx>
Subject: Re: [Xen-devel] How Can I install xen 3.4.2 from source code
From: veerasena reddy <veeruyours@xxxxxxxxx>
Date: Thu, 21 Jul 2011 18:29:06 +0530
Cc: xen-devel-mailing-list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 Jul 2011 06:08:27 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=fr+7jHU9Y67P1SotRaQfwb8clXgkWRdCWOHaCWcO/xQ=; b=HdsJ8Xg630/vPyQ1rBtm+iQU7/OQcLnyaxFxhbOCF47f+Mi4AlH5Ruadcma+NRJXjm TXKheRUW0DcdZsBRj+hlqlCFqOGnhjdUu6/4mjPfvfnpbHtwhYZORBJfItUW/BCX5kwu v0dF4MT8WBFmhWWkCN7dXXgfzEVLRZWgwCHXI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E1EDB06.7030802@xxxxxxxx>
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: <4E1EDB06.7030802@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I could successfully install xen-3.4.3.4 on CENTOS-5.5 as dom0. May be it works for you too:
  1. Install centos-5.5 distribution with "customize now" option for packages during installation. i have selected the following in addition to default:
    • development:
      • gnome software development
      • development libraries
      • development tools
      • legacy software development
      • virtualization
    • base system: 
      • legacy software development
      • system tools
      • admin tools
      • x windows system
  2. by default this installs Centos kernel 2.6.18-194.el5xen as dom0 kernel and XEN hypervisor version 3.1.2-194
  3. Now download source RPM for xen version which you want to install
  4. Setup the rpm build environment (for details refer http://crashcourse.ca/content/working-source-rpms-under-centos)
    • #mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
    • #echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
    • #yum install transfig tetex-latex texi2html libaio-devel iasl xz-devel e4fsprogs-devel rpm-build redhat-rpm-config
  5. install xen-<version>.src.rpm to get .spec file
    • #rpm -i xen-<version>.src.rpm
    • this will create xen-3.4.3.spec file under /root/rpmbuild/SPECS/
  6. go to /root/rpmbuild/SPECS/ and execute following command to build the rpm sources
    • # rpmbuild -ba xen-3.4.3.spec
    • this may report some missing dependencies. Please do "yum install" of those and do "rpmbuild" again.
  7. this builds xen-<version> hypervisor and xen-tools in /root/rpmbuild/BUILD/xen-3.4.3/
  8. Go to /root/rpmbuild/BUILD/xen-3.4.3/ and install xen and tools
    • [root@localhost xen-3.4.3]# make install-xen install-tools
  9. Add a new grub entry (this to not to mess up the default one) with new xen version. My grub.conf looks as follows after this step:
title CentOS (2.6.18-194.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-194.el5
        module /vmlinuz-2.6.18-194.el5xen ro root=/dev/vg_centos/lvroot rhgb quiet
        module /initrd-2.6.18-194.el5xen.img
title CentOS (2.6.18-194.el5 and xen-3.4.3)
        root (hd0,0)
        kernel /xen-3.4.3.gz
        module /vmlinuz-2.6.18-194.el5xen ro root=/dev/vg_centos/lvroot rhgb quiet
        module /initrd-2.6.18-194.el5xen.img

Good Luck.

- VSR.
On Thu, Jul 14, 2011 at 5:33 PM, m00nlight <dot_wangyushi@xxxxxxxx> wrote:
Hello everyone:
       I am currently install xen 3.4.2 on centOS 5.5 with linux kernel version 2.6.18.8.
It works during the procedure make dist -j 4 and make install -j4, but when I make the
initrd image of xen it shows the following error:
       Looking for deps of module pata_marvell
       No module pata_marvell found for kernel 2.6.18.8-xen, aborting.
How can I fix it?

Thanks.


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