4 Replies Latest reply on Feb 17, 2017 2:18 AM by Mauro Ciuti

    Provisioning a physical server with RedHat using SAN and Kickstart

    Mauro Ciuti

      I'm having issues provisioning a physical server with RedHat 6.1 using a kickstart file which worked when installing from media using the same SAN.


      Here is the kickstart I'm using:




      lang en_US

      keyboard uk

      network --device ??NET_DEVICE?? --bootproto dhcp --hostname ??HOST_NAME??

      url --url http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/rhel61

      rootpw --iscrypted ??ROOT_PASSWORD??

      firewall --disabled

      authconfig --enableshadow passalgo=sha512

      timezone --utc America/New_York

      bootloader --location=mbr --driveorder=/dev/disk/by-id/scsi-10000000c990673e --append="crashkernel=auto rhgb quiet"


      clearpart --all --initlabel

      #clearpart --drives=disk/by-id/scsi-10000000c990673e

      #clearpart --drives=disk/by-id/scsi-10000000c990673f

      #ignoredisk --only-use=disk/by-id/scsi-10000000c990673e

      part /boot --fstype=ext4 --size=500 --ondisk=/dev/disk/by-id/scsi-10000000c990673e

      part swap --size 1024 --fstype swap --ondisk=/dev/disk/by-id/scsi-10000000c990673e

      part / --grow --size=1 --ondisk=/dev/disk/by-id/scsi-10000000c990673e

      #volgroup vg_prax --pesize=4096 pv.253002

      #logvol / --fstype=ext4 --name=lv_root --vgname=vg_prax --maxsize=51200

      #logvol swap --name=lv_swap vg_name=vg_prax --grow --size=1024 --maxsize=50448

      repo --name="Red Hat Enterprise Linux" --baseurl=cdrom:sr0 --cost=100






      cp /etc/rc.d/rc.local /etc/rc.d/rc.local.bak

      echo "chmod +x /root/provscript" >> /etc/rc.d/rc.local

      echo "/root/provscript" >> /etc/rc.d/rc.local

      touch /root/provscript

      echo DHCP_HOSTNAME=PraxRH123 >> /etc/sysconfig/network

      echo PraxRH123 >> /etc/hosts

      echo "sh /root/rscd.sh -silent">> /root/provscript

      echo "echo \"* rw,user=root\" > /usr/lib/rsc/exports">> /root/provscript

      echo "echo ??LINUX_USERS_FILE_ENTRY?? > /usr/lib/rsc/users">> /root/provscript

      echo "cd /root" >> /root/provscript

      echo "tar -xvf bmilinux.tar">> /root/provscript

      echo "chmod +x bmilinux">> /root/provscript

      echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root">> /root/provscript

      echo "./bmilinux PROV_SOCKET_APP_SERVER_IP ??MAC_ADDRESS??" >> /root/provscript

      echo "rm -f /root/bmilinux" >> /root/provscript

      echo "rm -f /root/bmilinux.tar" >> /root/provscript

      echo "rm -f /root/libblssl.so.0.9.8" >> /root/provscript

      echo "rm -f /root/libblcrypto.so.0.9.8" >> /root/provscript

      echo "rm -f /root/random.byt" >> /root/provscript

      cd /root;wget -nc -v -a /root/http.log http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/bmilinux.tar

      cd /root;wget -nc -v -a /root/http.log http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/??RSCD_DIR??/rscd.sh

      cd /tmp;wget -nc -v -a /root/http.log http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/??RSCD_DIR??/nsh-install-defaults; cd /root

      chmod +x /root/bmilinux

      echo "mv /etc/rc.d/rc.local /etc/rc.d/rc.local.tmp" >> /root/provscript

      echo "mv /etc/rc.d/rc.local.bak /etc/rc.d/rc.local" >> /root/provscript

      echo "rm -f /etc/rc.d/rc.local.tmp" >> /root/provscript



      Attached is a screenshot of the error.