Kickstart Unattended Installation-make a CD file and use kickstart to install it unattended. Step 1 Preparation [plain] # create the rhel6 directory [root @ larrywen opt] # mkdir rhel6 # mount the image [root @ larrywen opt] # mount/home/Wentasy /software/rhel-server-6.1-x86_64-dvd.iso/iso-o loop # copy all files under iso to the current directory, a. Ensure that the permissions remain unchanged. [root @ larrywen opt] # cp/iso /.. /-create ks in step 2 of arvf. cfg file (refer to kickstart one-click Automatic Installation of Linux System) [plain] # connect to the virtual machine and create ks. cfg file (check the MySQL Web Server package), pay attention to the Installation source select CDROM,/boot partition at least 200 M, Post-Installation Scripts write as follows: chkconfig httpd On; chkconfig mysqld on; [root @ larrywen/] # ssh 192.168.1.11-X root@192.168.1.11's password: Last login: Tue Jul 30 16:49:31 2013 from192.168.1.1 [root @ serv01 ~] # System-config-kickstart step 3 copy and edit the file [plain] # copy the ks created under the virtual machine. cfg file to the current directory [root @ larrywen opt] # scp192.168.1.11:/root/ks. cfg. # copy ks. cfg file to the isolinux directory [root @ larrywen opt] # cp ks. cfgrhel6/isolinux/# Go To The isolinux directory [root @ larrywen opt] # cd rhel6/isolinux/[root @ larrywen isolinux] # ll total 40048-r --. 1 root 954 May 11 2011 isolinux. cfg # edit isolinux. cfg file [root @ larrywen isolinux] # vim isolinux. cfg # Edit Row 22 to [root @ larrywen isolinux] # sed "22 p" isolinux. cfg-n append ks = cdrom:/isolinux/ks. cfg initrd = initrd. img # copy iso. sh file to the current directory [root @ larrywen opt] # cp/opt/soft/ule-sa2/iso. sh. # edit iso. sh file. Edit row 14 to [root @ larrywen opt] # sed "14 p" iso. sh-n-o/opt/rhel6.iso/opt/rhel6 Step 4 run the script [plain] # Run iso. sh script to automatically generate the image file [root @ larrywen opt] #. /iso. sh # If the following message appears, the operation is successful. Total translation table size: 2048 Total rockridg E attributes bytes: 403974 Total directory bytes: 622592 Path table size (bytes): 270 Done with: The File (s) Block (s) 1757479 Writing: ending Padblock Start Block 1758031 Done with: Ending Padblock Block (s) 150 Max brk space used 3a1000 1758181 extents written (3433 MB) # file content [root @ larrywen opt] # cat iso. sh #! /Bin/sh # build CDlinux ISO image -- zxh (imzxh@yahoo.com) MKISO = 'which genisoimage 2>/dev/null' | MKISO = 'which mkisofs 2>/dev/null' | {echo "Sorry, you don't have genisoimage or mkisofs installed. "exit 1} $ MKISO-v-R-J-joliet-long-uc-level 3-input-charset utf8 \-publisher" up14 "-p" wgbno27@163.com "-V" rhel6.1 _ x86_64 "\-c boot. cat-hide boot. cat-B isolinux/isolinux. bin \-no-emul-boo T-boot-load-size 4-boot-info-table \-o/opt/rhel6.iso/opt/rhel6 Step 5 install the system [plain] # create a VM, select the just-created image rhel6.iso as the configuration installation source. # Wait for about 60 s after the installation page appears. If no other operations are required, the installation page is automatically displayed. # Finally, log on as the root user and check whether the MySQL & Web Server Service (mysqld & httpd) is running, the script is successfully executed after the installation. [root @ localhost ~] # Service httpd status httpd (pid 1480) is running... [root @ localhost ~] # Service mysqld status mysqld (pid 1369) is running... # You can also use firefox to verify http: // 192.168.1.12/you can see a test page and pay attention to disabling the Firewall