Kickstart unattended installation & mdash; make a CD file and use kickstart to install it unattended. Step 1 preparation [plain] # create the rhel6 Directory [root @ larrywenopt] # mkdirrhel6 # mount the image [ro... 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... # it can also be verified by firefox http://192.168.1.12/ You can see a test page and pay attention to disabling the firewall.
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.