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

Re: [Xen-devel] How Can I install xen 3.4.2 from source code



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.