Hello experts!
I planning unattended installation of Redhat distro on remote server using kickstart file ks.cfg. Server has no cd-rom nor usb devices, and has only one hard disk drive. I use grub to load installation kernel and initrd, grub config file below:
--------------------------
----------
----------
----------
----------
----
title Unattended Install from hard drive
root (hd0,0)
kernel /boot/vmlinuz ks=hd:sda1:/boot/ks.cfg
initrd /boot/initrd.img
boot
--------------------------
----------
----------
----------
----------
----
ks.cfg listed below
--------------------------
----------
----------
----------
----------
-------
# Auto-Generated Scripted Install Configuration file.
# Installation Method
harddrive --partition=sda1 --dir=/temp
# root Password
rootpw --iscrypted $*************************
**********
********
# Authconfig
auth --enableshadow --enablemd5
# BootLoader ( The user has to use grub by default )
bootloader --location=mbr
# Timezone
timezone Europe/Madrid
# X windowing System
skipx
# Install or Upgrade
install
# Text Mode
text
# Network install type
network --bootproto static --ip 192.168.xx.yy --netmask 255.255.255.0 --gateway 192.168.xx.yy --nameserver 192.168.xx.yy --hostname remotehost.xyz --addvmportgroup=1 --vlanid=0
# Language
lang en_US
# Langauge Support
langsupport --default en_US
# Keyboard
keyboard us
# Mouse
mouse none
# Reboot after install ?
reboot
# Firewall settings
firewall --disabled
# Clear Partitions
clearpart --all --initlabel --drives=sda
# Partitioning
part /boot --fstype ext3 --size 102 --ondisk sda
part / --fstype ext3 --size 4997 --ondisk sda
part swap --size 544 --ondisk sda
part None --fstype vmfs3 --size 10000 --grow --ondisk sda
part None --fstype vmkcore --size 110 --ondisk sda
part /var/log --fstype ext3 --size 1992 --ondisk sda
%packages
@base
@ everything
%post
--------------------------
----------
----------
----------
----------
-------
As seen above,
# Installation Method
harddrive --partition=sda1 --dir=/temp
This refer to inatallation iso (mydistro.iso) file which is currently placed on sda1 in /temp directory.
I tested it on local server which has two hdd, and that work perfectly when mydistro.iso is placed on second hard disk partition e.g. sdb1. But that not work when installation iso file placed on sda because the first disk consuming to be formatted during installation process.
Because my remote server has only one hdd, i see solution to put mydistro.iso image on ramdisk. Do you know how to do it in grub config file and then how to refer to ramdisk device in ks.cfg ? Any other working solution also appreciated.
Big Thanks!