Use a USB flash drive to install rhel5.8 on the HP 380 P/5.10 P gen8 server with a pre-kickstart File)

Source: Internet
Author: User

Preparations:

1. rhel-server-5.8-x86_64.iso image file (also useful for the latest rhel5.10 as needed)

2. Old Mao Tao U disk tool v2014 super installed version

3. kickstart file ks. cfg (based on the Kickstart file you need)

4. A 16 gb usb flash drive

Steps:

1. Insert a USB flash drive

2. Open the old peach, as shown below:

650) This. width = 650; "Title =" 1.jpg" style = "float: none;" alt = "wkiol1rqquzb_nwtaakxpkz3ij0930.jpg" src = "http://s3.51cto.com/wyfs02/M00/4D/67/wKioL1RQquzB_NwtAAKxpkZ3IJ0930.jpg"/>

3. Select the disk drive as a USB flash drive, format it, and write

650) This. width = 650; "Title =" 2.png" style = "float: none;" alt = "wKioL1RQquySkgtSAAGOL--v8HE113.jpg" src = "http://s3.51cto.com/wyfs02/M02/4D/67/wKioL1RQquySkgtSAAGOL--v8HE113.jpg"/>


4. After the USB flash drive is created, copy the KS. cfg file to the USB flash drive.


650) This. width = 650; "Title =" 3.jpg" alt = "wKiom1RQq0yxELcaAAGB-EKEQ-Q839.jpg" src = "http://s3.51cto.com/wyfs02/M00/4D/67/wKiom1RQq0yxELcaAAGB-EKEQ-Q839.jpg"/>

5. Create an ISO folder in the USB flash drive and copy the rhel-server-5.8-x86_64.iso to the ISO folder.


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/69/wKiom1RQzGGA2foeAACkTzrru3M953.jpg "Title =" 4.jpg" alt = "wkiom1rqzgga2foeaacktzrru3m953.jpg"/>


6. Remember to modify the KS. cfg file and the installation media is the ISO image file in the USB flash drive.

The following yellow color part is the modified part: (the original ks. cfg file may be CDRom and changed to harddrive -- partition =/dev/sda4 -- dir =/ISO /)

 

 

Appendix: A ks. cfg file

# Kickstart fileautomatically generated by anaconda.#Install OSinstead of upgradeinstall #Usehard drive installation mediaharddrive--partition=/dev/sda4 --dir=/iso/  #Skip redhatinstallation keykey --skip #System  languagelang en_US.UTF-8 #System keyboardkeyboard us #Sytem timezonetimezoneAsia/Shanghai xconfig --startxonbootnetwork --deviceeth0 --onboot no --bootproto dhcpnetwork --deviceeth1 --onboot no --bootproto dhcp #Root passwordrootpw--iscrypted $1$Sr67m5kn$FDh6nSLdFNnQIxnLqmmNa0 #Reboot afterinstallation#reboot firewall--disabledauthconfig --enableshadow--enablemd5selinux--disabled bootloader--location=mbr --driveorder=cciss/c0d0 --append="rhgb quiet"# The followingis the partition information you requested# Note that anypartitions you deleted are not expressed# here so unlessyou clear all partitions first, this is# not guaranteedto workclearpart --all--drives=cciss/c0d0part /boot--fstype ext3 --size=100 --ondisk=cciss/c0d0part pv.100000--size=100 --grow --ondisk=cciss/c0d0volgroup vg00--pesize=32768 pv.100000logvol swap--fstype swap --name=lv_swap --vgname=vg00 --size=32768logvol /--fstype ext3 --name=lvol0 --vgname=vg00 --size=51200logvol /var--fstype ext3 --name=lvol1 --vgname=vg00 --size=10240logvol /usr--fstype ext3 --name=lvol2 --vgname=vg00 --size=5120logvol /tmp--fstype ext3 --name=lvol3 --vgname=vg00 --size=5120 %packages@admin-tools@base@chinese-support@core@development-libs@development-tools@editors@gnome-desktop@graphical-internet@legacy-software-development@system-tools@text-internet@base-xkexec-toolsiscsi-initiator-utilsfipscheckdevice-mapper-multipathsgpiopython-dmidecodeimakeemacsauditxorg-x11-utilsxorg-x11-server-Xnestxorg-x11-server-Xvfb-nspluginwrapper %post# Changerunlevel configuration of services.chkconfig anacronoffchkconfigarptables_jf offchkconfig atdoffchkconfig autofsoffchkconfig cupsoffchkconfigcups-config-daemon offchkconfigfirstboot offchkconfighaldaemon offchkconfig isdnoffchkconfig kudzuoffchkconfig netfsoffchkconfignfslock offchkconfig pcmciaoffchkconfigportmap offchkconfigrpcgssd offchkconfigrpcidmapd offchkconfigsendmail offchkconfig smartdoffchkconfig snmpdoffchkconfigavahi-daemon off #delete unuseduseruserdel admuserdel lpuserdel syncuserdel shutdownuserdel haltuserdel newsuserdel uucpuserdel operatoruserdel gopher

 

7. Insert a USB flash disk on the HP gen8 Server

After self-check, press F8 for raid1 + 0 (based on your needs, raid1, raid1 + 0, RAID5)

After the raid exits, press F11, press 3, and choose to start from the USB flash disk.


8. On the installation page, enter Linux Ks = HD: sda4:/KS. cfg and press enter, as shown in figure

(If some machines do not have raid and there is only one hard disk, then the hard disk of the machine is SDA, then the U disk is SDB, usually sdb4)


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/6A/wKioL1RQzQOhU1PlAAJDWdfaMnw135.jpg "Title =" 5.jpg" alt = "wkiol1rqzqohu1plaajdwdfamnw135.jpg"/>

Then, wait for the installation.







Technical expansion:

In Linux, how does one use the DD command to create a rhel u disk installation disk.


Built-in notebook: the hard disk is SDA, and the first inserted U disk is SDB, which is generally sdb4 and the second SDC... And so on

(Xxx/XXX/path of the ISO image)

dd if=xxx/xxx/rhel-server-5.8—x86_64.iso  of=/dev/sdb


It takes a while to write data. After writing;

Mount/dev/sdb4/mnt # Mount U disk to/mnt mkdir/mnt/ISO # create ISO directory CP xxx/XXX/rhel-server-5.8-x86_64.iso/mnt/ISO # copy ISO image under U Disk cp yyy/KS under the ISO directory of the USB flash disk. CFG/mnt # copy the Kickstart file to the USB flash drive.


OK. Then you can use a USB flash drive to install the system.





This article from the "Silently Accumulate Small universe" blog, please be sure to keep this source http://tianshoulong.blog.51cto.com/4998102/1569374

Use a USB flash drive to install rhel5.8 () on the HP 380 P/5.10 P gen8 server with a pre-kickstart File)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.