Re: drac ilo install via virtual cdrom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 30, 2007 at 08:14:03AM -0600, Matt Sturtz wrote:
> Hi Brian--
> 
> >> I am trying to perform a kickstart install of RHEL4U4 exclusively
> >> via the drac (Dell Remote Access Card) interface onto a PE 2950
> >> without utilizing the systems other embedded nics.
> 
> Although I haven't tried it, you should be able to do this, as long as
> it's a media-based install (meaning you're using CD's, even though they're
> virtual -- the virtual drive shows up as a USB device, so Linux should be
> happy to deal with it).
> 
> Note that Linux can NOT see the NIC in the DRAC -- if you're trying to do
> a PXE or other Net-based install, you will need to have one of the main
> system NIC's connected.

Hi Matt:

No booting from pxe.  Only virtual cdrom.

> 
> Have you actually tried it?  If so, what problem(s) did you have (sorry, I
> missed the original post -- just got a reply)...

http://www.redhat.com/archives/kickstart-list/2007-April/date.html

Attached is my ks.cfg.

I configured the bios to boot from "virtual cdrom."  The kickstart
proceeeds to load vmlinuz and initrd.img where /sbin/loader gets
ks.cfg from.  Embedding the ks.cfg in the initrd.img is the only
way I can get the first step loader to find the ks.cfg.

Emedding the ks.cfg is known to /sbin/loader via this statement in
isolinux.cfg:

isolinux/isolinux.cfg
  append initrd=initrd.img ramdisk_size=8192 ks=file:/ks.cfg

Anaconda loads the megaraid and usb-storage driver, then asks for
a RHEL Linux CD.

tty0 shows "CD Not Found..."

tty2 shows:

getting kickstart file
setting up kickstrt
KickstartFromCD
going to set lang to en_US.UTF-8
settting lang..
starting to STEP_URL
trying to mount CD device scd0

tty3 shows:
Initialized USB Mass Storage driver...
sci4 : SCSI emulation for USB Mass Store decives
 Vendor: Dell	 Model: Viurtal CDROM ..
 Typel CD-ROM
sr0: scsi4-mmc drive: 24x/24x/cd/rw/xa/form2 caddy
Attached scsi CD-ROM sr0 at scsi3, channel 0, id 0, lun 0

USB Mass Storeage support registered.
ISO 9660 Extensions: Microsfot Jolet Level 3
Unable to load NLS charset utf8
Unable to load NLS charset utf8
ISO 9660 Extensions: RRIP_1991A

I am giving the command cdrom in ks.cfg

I tried messing around with the bootloader parameters to change how
anaconda looks for the cdrom.  Maybe I am on the right track here.
Anaconda needs to look at sr0 instead of scd0 for the cdrom.

#bootloader --location=mbr --append="hdd=ide-scsi" 
bootloader --location=mbr --append="sdd=ide-scsi"
#bootloader --location=mbr --append="sr0=ide-scsi"   
#bootloader --location=mbr --append="sr0=ide-scsi" --driveorder=sr0
#bootloader --location=mbr --append="scd0=ide-scsi" --driveorder=scd0,sr0
#bootloader --location=mbr --append="scd0=ide-scsi"

Thanks for your help.
Darryl Wisneski
-dkw

#System  language
lang en_US
#Language modules to install
langsupport --default=en_US
#System keyboard
keyboard us
#System mouse
mouse none
#Sytem timezone
timezone America/New_York
#Root password
rootpw --iscrypted  ...
#Reboot after installation
reboot
#Use text mode install
text
#Install Red Hat Linux instead of upgrade
install
#System bootloader configuration
#url --url http://10.21.11.92/kickstart
cdrom

################################################################################
# Setup the disk drives. Two SAS drives sda and sdb.
# Partition two drives the same way.
# Root partition can't do LVM so leave it alone
#
#  SDA
#	sda1 - 1G - half of md0 device for /boot
#	sda2 - 4G - swap - not much point to RAID swap
#	sda3 - Remainder - half of md1 device for LVM
#  SDB
#	sdb1 - 1G - half of md0 device for /boot
#	sdb2 - 4G - swap some more
#	sdb3 - Remainder - half of md1 device for LVM
#
# It seems you'll have to setup grub on both drives. I don't think Anaconda
# will do it for some reason. After you boot and get a blank screen just
# boot from the rescue CD and do this
# # chroot /mnt/sysimage
# # grub
# grub>root (hd0,0)
# grub>setup (hd0)
# grub>root (hd1,0)
# grub>setup (hd1)
#
 
# Clear out the Master Boot Record
zerombr yes
# where will be put the boot loader? - test me
#bootloader --location=partition
#bootloader --location=mbr --append="hdd=ide-scsi"
bootloader --location=mbr --append="sdd=ide-scsi" 
#bootloader --location=mbr --append="sr0=ide-scsi"
#bootloader --location=mbr --append="sr0=ide-scsi" --driveorder=sr0
#bootloader --location=mbr --append="scd0=ide-scsi" --driveorder=scd0,sr0
#bootloader --location=mbr --append="scd0=ide-scsi"
# Setup
# hda
part raid.a1 --noformat --size=1024        --ondisk=sda --asprimary
part swap               --size=4096        --ondisk=sda --asprimary
part raid.a3 --noformat --size=1    --grow --ondisk=sda
# hdb
part raid.b1 --noformat --size=1024        --ondisk=sdb --asprimary
part swap               --size=4096        --ondisk=sdb --asprimary
part raid.b3 --noformat --size=1    --grow --ondisk=sdb
#
# /boot on 1G RAID1 mirror
raid /boot --level=1 --fstype=ext3 --device=md0 raid.a1 raid.b1
# LVM RAID1 array on 3rd partition of drives A,B
raid pv.md1 --level=1 --fstype="physical volume (LVM)" --device=md1 raid.a3 raid.b3
# setup LVM for OS partitions
# create volume group from md1
volgroup VGRAID pv.md1
# chop up volume group VGRAID into logical volumes
logvol /          --fstype=ext3 --name=LVRoot  	  --vgname=VGRAID --size=1024
logvol /usr       --fstype=ext3 --name=LVUsr      --vgname=VGRAID --size=8192
logvol /usr/local --fstype=ext3 --name=LVUsrLocal --vgname=VGRAID --size=8192
logvol /home      --fstype=ext3 --name=LVHome     --vgname=VGRAID --size=10240
logvol /tmp       --fstype=ext3 --name=LVTmp      --vgname=VGRAID --size=4096
logvol /var       --fstype=ext3 --name=LVVar      --vgname=VGRAID --size=512 --grow




#bootloader --location=mbr
#Clear the Master Boot Record
#zerombr yes
#Partition clearing information
#clearpart --all --initlabel
#Disk partitioning information
#part /boot --fstype "ext3" --size=256 --asprimary --ondisk=sda
#part / --fstype "ext3" --size=1024 --ondisk=sda
# at least 1x physical memory
#part swap --size=8192  --ondisk=sda
#part /usr --fstype "ext3" --size=8192 --ondisk=sda
#part /usr/local --fstype "ext3" --size=8192 --ondisk=sda
#part /home --fstype "ext3" --size=10240 --ondisk=sda
#part /tmp --fstype "ext3" --size=2048 --ondisk=sda
##part /opt --fstype "ext3" --size=15360 --ondisk=sda
#part /var --fstype "ext3" --grow --size=512 --ondisk=sda

auth  --useshadow  --enablemd5

#network --bootproto=dhcp --device=eth0

firewall --disabled
#Do not configure XWindows
skipx

################################################################################
# pick software to install
# This is a minimal software set for a webserver. It has no GUI nor other cruft
%packages --resolvedeps
@ Development Tools
#@ Kernel Development
kernel
kernel-smp
grub
ntp
zsh
lynx
curl
lvm2
mdadm


################################################################################
# post install commands
%post

/usr/bin/eject /dev/hda
/usr/bin/eject /dev/hdc

# add users
/usr/sbin/useradd -c "my user" -g 100 -d /home/myuser -s /bin/bash -m myuser

# nfs mount on the new minted os a /mnt/temp, so we can put stuff on the machine
/bin/mkdir /mnt/temp
#/bin/mount -o nolock 10.21.11.92:/var/www/html/kickstart /mnt/temp
# for update6 -dkw
#/bin/rpm -i /mnt/temp/httpd-2.0.46-54.ent.i386.rpm
/bin/sh /mnt/temp/sshk
# josh added this for a bios update...  not sure how it applies
# /bin/cp /mnt/temp/4.5_OM_SUU_A00.iso /home/josh/4.5_OM_SUU_A00.iso

/bin/tar xvpf /mnt/temp/fd.tar
/bin/umount /mnt/temp
/bin/rm -rf /mnt/temp
# turn off chkconfig stuff
/sbin/chkconfig --level 2345 xinetd off
/sbin/chkconfig --level 2345 rhnsd off
/sbin/chkconfig --level 2345 gpm off
/sbin/chkconfig --level 2345 kudzu off
/sbin/chkconfig --level 2345 apmd off
/sbin/chkconfig --level 2345 acpid off
/sbin/chkconfig --level 2345 iptables off
/sbin/chkconfig --level 2345 ip6tables off
/sbin/chkconfig --level 2345 pcmcia off
/sbin/chkconfig --level 2345 mdmonitor off
/sbin/chkconfig --level 2345 smartd off

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux