xcat-core icon indicating copy to clipboard operation
xcat-core copied to clipboard

xCAT genesis shell is not booting while using custom xCAT genesis base

Open sakshiarora13 opened this issue 2 years ago • 4 comments

Followed following steps to create an rpm file for xcat genesis base and boot to genesis image shell: (https://github.com/xcat2/xcat-core/blob/master/xCAT-genesis-builder/README.md)

  1. Check current xcat-genesis-base installation: rpm -qa | grep xCAT
  2. Delete current xcat-genesis-base installation: rpm -e --nodeps xCAT-genesis-base-x86_64-2.16.4-snap202305151346.noarch
  3. Configure epel repo: sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
  4. Git clone xcat-core: git clone -b master https://github.com/xcat2/xcat-core.git
  5. cd xcat-core/xCAT-genesis-builder
  6. Create rpm file: ./buildrpm
  7. Install new rpm: cd /root/rpmbuild/RPMS/ rpm -ivh *.rpm
  8. Re-install xCAT genesis-scripts: yum install xCAT-genesis-scripts-x86_64
  9. mknb x86_64
  10. Set node for shell: nodeset node00002 shell
  11. Reset the system: rpower node00002 reset

image

It doesnt boot to xcat genesis image and gives following 2 errors:

  1. rsyslogd: getaddrinfo failed obtaining local hostname - using '(none)' instead.
  2. xcat.genesis.doxcat: Unable to find boot device ( Maybe the xCAT genesis kernel is missing the driver for your NIC?)

sakshiarora13 avatar May 17 '23 09:05 sakshiarora13

@sakshiarora13 Was there a reason why you wanted your own version of xCAT-genesis-base ? Did the one shipped with xCAT not work ?

gurevichmark avatar May 17 '23 14:05 gurevichmark

The one shipped with xCAT is working fine. I want to configure RAID before provisioning server with OS. For the same, I want to install few binaries in the custom xCAT-genesis-base.

sakshiarora13 avatar May 18 '23 16:05 sakshiarora13

@sakshiarora13 one workaround you can use is as below:

  • store the addon tools and custom scripts in xcat-master:/install/custom/dell-raid
  • Boot the node into shell using the upstream genesis
  • Open a terminal on the node (I usually did rcons $NODE, then ctrl-A c to open a new screen session parallel to the genesis screen session)
  • Copy the folder /install/custom/dell-raid from the MN to the node.
  • Run everything as required on the node.

samveen avatar May 19 '23 04:05 samveen

I am also facing this issue. Tried creating genesis image using tagged branch 2.16.4. Unable to boot genesis image with custom genesis base in x86_64 architecture. genesis boot is stuck at below error in the screenshot: image

xCAT genesis base image for x86_64 is not updated after 2.14.5 version. Refer below screenshot. image

@samveen @gurevichmark Can you please help me in this?

abhishek-sa1 avatar Aug 14 '23 15:08 abhishek-sa1