Hi Imam,
I have not found any docs on this, and maybe hidden in some of the
issuess/PR, but this is how I do it
Have a CentOS 7 physical or Virtual machine, I then went through this
process
yum install
http://elrepo.org/linux/elrepo/el7/x86_64/RPMS/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum -y install mstflint ipmitool screen glibc.i686 usbutils bc ntp
dosfstools mdadm \
vconfig bridge-utils lldpad libgcc.i686 efibootmgr rpm-build
reiserfs-utils
git clone g...@github.com:ocfplc/xcat-core.git
git checkout centos7_genbase
cd xcat-core/xCAT-genesis-builder
./buildrpm
Hopefully, if everything goes to plan, the above then should produce the
following output
cp: omitting directory ‘/root/xcat-core/xCAT-genesis-builder/debian’
Creating the initramfs in /tmp/xcatgenesis.12797.rfs using dracut ...
nfs sunrpc e1000 e1000e virtio_net virtio_pci igb ines sfc mlx4_en cxgb3
cxgb4 tg3 bnx2 bnx2x bna ixgb ixgbe qlge mptsas mpt2sas mpt3sas ata_piix
megaraid_sas virtio_blk ahci ibmaem xhci_hcd sd_mod pmcraid be2net vfat
ext3 ext4 btrfs reiserfs usb_storage scsi_wait_scan kvm kvm-intel
kvm-amd ipmi_powernv ipmi_si ipmi_devintf qlcnic xfs mlx5_core hfi1
macvlan macvtap 8021q bridge bonding vmxnet3 cpufreq_ondemand
acpi-cpufreq powernow-k8 cdc_ether mptctl mlx4_ib ib_umad reiserfs
ibmveth ibmvscsi ehea dm-mod sg i40e rtc-opal mlx5_core hfi1
Expanding the initramfs into
/tmp/xcatgenesis.12797/opt/xcat/share/xcat/netboot/genesis/x86_64/fs ...
160965 blocks
Adding kernel /boot/vmlinuz-x86_64 ...
/media/psf/Home/gitRepos/xcat/xcat-core/xCAT-genesis-builder
Tarring /tmp/xcatgenesis.12797/opt into
/root/rpmbuild/SOURCES/xCAT-genesis-base-x86_64.tar.bz2 ...
Building xCAT-genesis-base rpm from
/root/rpmbuild/SOURCES/xCAT-genesis-base-x86_64.tar.bz2 and
/media/psf/Home/gitRepos/xcat/xcat-core/xCAT-genesis-builder/xCAT-genesis-base.spec
...
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29UmjW
+ umask 022
+ cd /root/rpmbuild/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fdtXXl
+ umask 022
+ cd /root/rpmbuild/BUILD
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.LEoPCL
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '['
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
'!=' / ']'
+ rm -rf
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
++ dirname
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ rm -rf
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ mkdir -p
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ cd
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ tar jxf /root/rpmbuild/SOURCES/xCAT-genesis-base-x86_64.tar.bz2
+ cd -
/root/rpmbuild/BUILD
+ :
Processing files: xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.noarch
Provides: xCAT-genesis-base-x86_64 = 2:2.13ocf-snap201711221628
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
Wrote:
/root/rpmbuild/SRPMS/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.src.rpm
Wrote:
/root/rpmbuild/RPMS/noarch/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.uxZFYQ
+ umask 022
+ cd /root/rpmbuild/BUILD
+ /usr/bin/rm -rf
/root/rpmbuild/BUILDROOT/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.x86_64
+ exit 0
Your final rpm should then be in
/root/rpmbuild/RPMS/noarch/xCAT-genesis-base-x86_64-2.13ocf-snap201711221628.noarch.rpm
I hope this works for you
regards,
Arif
On 21/11/2017 19:33, Imam Toufique wrote:
> Thanks, Arif!
>
> Is there any documentation on building and install genesis? Can you
> share, please?
>
> thanks.
>
>
>
> On Tue, Nov 21, 2017 at 4:47 AM, Arif Ali via xCAT-user
> <xcat-user@lists.sourceforge.net
> <mailto:xcat-user@lists.sourceforge.net>> wrote:
>
> Hi all,
>
>
>
> I have pinged that issue on github, hopefully there will be a new
> genesis for us in 2.13.9
>
>
>
> I did build a genesis in December last year, with a few extras for
> centos7 here,
>
> http://yum.ocf.co.uk/rh7/xCAT-genesis-base-x86_64-2.13ocf-snap201612061622.noarch.rpm
>
> <http://yum.ocf.co.uk/rh7/xCAT-genesis-base-x86_64-2.13ocf-snap201612061622.noarch.rpm>,
> if anyone is interested in testing and using.
>
>
>
> For testing, I could build a newer one, if anyone is interested.
> There are a few people on this list already do this in-house
>
>
>
> Regards,
>
> Arif
>
>
>
> *From: *Imam Toufique <techie...@gmail.com
> <mailto:techie...@gmail.com>>
> *Reply-To: *xCAT Users Mailing list
> <xcat-user@lists.sourceforge.net
> <mailto:xcat-user@lists.sourceforge.net>>
> *Date: *Saturday, 11 November 2017 at 07:56
> *To: *xCAT Users Mailing list <xcat-user@lists.sourceforge.net
> <mailto:xcat-user@lists.sourceforge.net>>
> *Subject: *Re: [xcat-user] update xCAT genesis kernel
>
>
>
> Hi Zhao,
>
>
>
> By when do you anticipate this to be done? just wondering... is
> there going to a new xcat release out for this?
>
>
>
> thanks.
>
>
>
> On Thu, Nov 9, 2017 at 6:19 PM, Er Tao Zhao <erta...@cn.ibm.com
> <mailto:erta...@cn.ibm.com>> wrote:
>
> Hi, Nathan
>
>
>
> The new xCAT-genesis-base to include all drivers have not yet
> available, will be done in weeks.
>
>
>
>
>
> Thx!
>
> Best Regards,
> -----------------------------------
> Zhao Er Tao
>
> IBM China System and Technology Laboratory, Beijing
> Tel:(86-10)82450485
> Email: erta...@cn.ibm.com <mailto:erta...@cn.ibm.com>
> Address: 1/F, 28 Building,ZhongGuanCun Software Park,
> No.8 DongBeiWang West Road, Haidian District,
> Beijing, 100193, P.R.China
>
>
>
>
>
> ----- Original message -----
> From: Nathan Harper <nathan.har...@cfms.org.uk
> <mailto:nathan.har...@cfms.org.uk>>
> To: xCAT Users Mailing list
> <xcat-user@lists.sourceforge.net
> <mailto:xcat-user@lists.sourceforge.net>>
> Cc:
> Subject: [xcat-user] update xCAT genesis kernel
> Date: Thu, Nov 9, 2017 8:20 PM
>
>
> Hi,
>
>
>
> I've got some brand new systems which I'm trying to get up
> and running. Unfortunately, the xcat genesis image does
> not include the drivers for any of the network interfaces
> in the nodes (Intel or Mellanox ethernet), so discovery fails.
>
>
>
> I found some discussion in this thread about a CentOS 7
> genesis image
> (https://github.com/xcat2/xcat-core/issues/2258
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_xcat2_xcat-2Dcore_issues_2258&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=otKwjk0agnSxhXpYas4BvbYu49OrBu691nZO5mzuBZ0&e=>)
>
>
>
> Did this ever make it's way in? Alternatively, is there a
> simple way to give an upgraded kernel?
>
>
>
> --
> *Nathan Harper*// IT Systems Lead
>
> *e: *nathan.har...@cfms.org.uk
> <mailto:nathan.har...@cfms.org.uk> // *t: *0117 906 1104//
> *m: *07875 510891// *w: *www.cfms.org.uk
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cfms.org.uk-2522&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=rUeHroGn-1WxRARHwFO5eAI2J_1rwMw5YB4QhZhmefU&e=>
> //
> CFMS Services Ltd// Bristol & Bath Science Park//Dirac
> Crescent//Emersons Green//Bristol//BS16 7FR
> *Error! Filename not specified.*
>
> CFMS Services Ltd is registered in England and Wales No
> 05742022 - a subsidiary of CFMS Ltd
> CFMS Services Ltd registered office // Victoria House //
> 51 Victoria Street // Bristol // BS1 6AD
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's
> most
> engaging tech sites, Slashdot.org!
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=1U7nZn1v-NEV-r1mrBgefAzsMbq5XmMaBZI4NOeZyQw&e=
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=1U7nZn1v-NEV-r1mrBgefAzsMbq5XmMaBZI4NOeZyQw&e=>
>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> <mailto:xCAT-user@lists.sourceforge.net>
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=0t1TBX6fqQrmzJcyJ_KTvJe7sn_S0M3hMqpgadRC9Ag&e=
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=GXZJILRYuh625D1P_w_8vxyNDAEGDWoFmPVwQ0NBUcY&m=XnTurmS-VzKOmiT1KQx-2Rh8kXqKprQ82QrFbSAnPdg&s=0t1TBX6fqQrmzJcyJ_KTvJe7sn_S0M3hMqpgadRC9Ag&e=>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> <http://sdm.link/slashdot>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> <mailto:xCAT-user@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> <https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
>
>
>
>
> --
>
> Regards,
>
> */Imam Toufique/*
>
> */213-700-5485 <tel:%28213%29%20700-5485>/*
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> <mailto:xCAT-user@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> <https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
>
>
>
> --
> Regards,
> */Imam Toufique/*
> /*213-700-5485*/
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
--
regards,
Arif Ali
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user