Deployment Solution

 View Only

GSS: scripted OS install of redhat/centos  

Apr 04, 2017 12:41 PM

PURPOSE:

to do a scripted OS install you will have to do the following. 

 

RESOLUTION:

 

STEP1

  1. import the netboot.iso to the pxe server. 

  2. In tools then pxe config utility 

  3. Give the Preboot a name (i called it redhat_install)

  4. Under Operating systems choose Linux and x64

  5. Under Image Creation method choose "User Supplied"

  6. Select the manual boot button

User-added image

In the PXE boot files windows browse to the pxeboot folder 
User-added image
select OK button 
select apply and ok in the pxe config utility.

STEP 2

  1. Make changes to the config
  2. browse to the eXpress share\PXE\Images folder
  3. find the pxe folder for what we just imported (example MenuOption 160) is mine
  4. there will be a few files missing that is need to pxe boot
    1. ldlinux.c32
  5. If you have a previous import GSS linux preboot then you can copy that file from the MenuOption130 folder. 
  6. You need to create a folder called pxelinux.cfg
  7. change directory to pxelinux.cfg 
  8. create a file call default

The file and folder structure should look like this:

User-added image
edit the file with notepad or another editor
the default should have the following
=========================================
default redhat
label redhat
kernel vmlinuz
append initrd=initrd.img rw ramdisk_size=100000 ksdevice=eth0 ip=dhcp text ks=(ftp|http)://<ip|hostname>/centos/6
say"Installing redhat scripted OS install"
============================================
Save the default file

STEP3:  HTTP|FTP|NFS

  1. setup a ftp, http, or nfs to pull down the install files
  2. I used filezilla server on a windows server and setup anonymous logging, you can also install IIS and do the same thing
  3. you will have to also include a ks.cfg file and save it to the location in the default file. 


STEP4:  Boot the box you want to execute the scripted OS

  1. have it boot to the Redhat_Install pxe menu or what you called it under step 1
  2. Once the installer starts if the ks.cfg is configured right it should install the os according to that answer file. 


5. After you are done I would make a backup of this folder.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.